GetThicknessTask.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Aitex.Core.RT.SCCore;
  2. using athosRT.Devices.EFEM.ABS;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace athosRT.Devices.EFEM.Task
  9. {
  10. public class GetThicknessTask : CheckImp, ITask
  11. {
  12. public bool Execute(out string result, params string[] args)
  13. {
  14. string device = this.Args2Unit(args.Length != 0 ? args[0] : string.Empty);
  15. if (device == null)
  16. {
  17. result = "PARAM_NG";
  18. return false;
  19. }
  20. if (!this.Check<NoReadyPolicy>(device, out result) || !this.Check<NoInitCompletedPolicy>(device, out result))
  21. return false;
  22. if (this.CheckIsPort(device))
  23. return true;
  24. result = "PARAM_NG";
  25. return false;
  26. }
  27. public bool? Monitor(out string result, params string[] args)
  28. {
  29. result = string.Empty;
  30. string str = this.Args2Unit(args.Length != 0 ? args[0] : string.Empty);
  31. result = SC.GetStringValue("CarrierInfo." + str + "ThicknessType");
  32. return new bool?(true);
  33. }
  34. }
  35. }