PM.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Aitex.Core.RT.DataCenter;
  7. using Aitex.Core.RT.Device;
  8. using Aitex.Core.RT.SCCore;
  9. using MECF.Framework.Common.Equipment;
  10. using MECF.Framework.Common.Schedulers;
  11. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.TMs;
  12. namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.PMs
  13. {
  14. public class PM : BaseDevice, IDevice, IPM
  15. {
  16. //如果true,robot采用extend, retract指令
  17. //如果false,robot采用pick,place指令
  18. public bool IsActiveHandoff { get; set; }
  19. //如果true,robot调用收尾PostTransfer
  20. public bool IsNeedPostTransfer { get; set; }
  21. public virtual double ChamberPressure { get; }
  22. public virtual double ChamberPressurePressure { get; }
  23. public virtual bool IsError { get; }
  24. public virtual bool IsIdle { get; }
  25. public bool IsInstalled { get; set; }
  26. public PM(string module) : base(module, module, module, module)
  27. {
  28. IsInstalled = false;
  29. }
  30. public virtual bool Initialize()
  31. {
  32. DATA.Subscribe($"{Name}.IsAtm", () => { return CheckAtm(); });
  33. DATA.Subscribe($"{Name}.IsVacuum", () => { return CheckVacuum(); });
  34. DATA.Subscribe($"{Name}.IsCDAOK", () => { return CheckCDAOK(); });
  35. DATA.Subscribe($"{Name}.IsCoolantInletTCOK", () => { return CheckCoolantInletTCOK(); });
  36. DATA.Subscribe($"{Name}.IsCoolantOutletTCOK", () => { return CheckCoolantOutletTCOK(); });
  37. DATA.Subscribe($"{Name}.IsArmNotExtend", () => { return CheckArmExtendOK(); });
  38. DATA.Subscribe($"{Name}.IsWaterLeak", () => { return CheckWaterLeak(); });
  39. DATA.Subscribe($"{Name}.ChamberPressure", () => ChamberPressure);
  40. IsInstalled = true;
  41. return true;
  42. }
  43. public virtual bool CheckSlitDoorOpen(ModuleName moduleName)
  44. {
  45. return false;
  46. }
  47. public virtual bool CheckSlitDoorClose(ModuleName moduleName)
  48. {
  49. return false;
  50. }
  51. public virtual bool CheckAtm()
  52. {
  53. return false;
  54. }
  55. public virtual bool CheckWaterLeak()
  56. {
  57. return false;
  58. }
  59. public virtual bool CheckCDAOK()
  60. {
  61. return false;
  62. }
  63. public virtual bool CheckCoolantInletTCOK()
  64. {
  65. return false;
  66. }
  67. public virtual bool CheckCoolantOutletTCOK()
  68. {
  69. return false;
  70. }
  71. public virtual bool CheckArmExtendOK()
  72. {
  73. return false;
  74. }
  75. public virtual bool CheckVacuum()
  76. {
  77. return false;
  78. }
  79. public virtual bool CheckHandoff(EnumTransferType type)
  80. {
  81. return false;
  82. }
  83. public virtual bool CheckEnableTransfer(EnumTransferType type)
  84. {
  85. return false;
  86. }
  87. public virtual void Monitor()
  88. {
  89. }
  90. public virtual void Terminate()
  91. {
  92. }
  93. public virtual void Reset()
  94. {
  95. }
  96. public virtual void PrepareTransfer(EnumTransferType type)
  97. {
  98. }
  99. public virtual void Home()
  100. {
  101. }
  102. public virtual void PostTransfer(EnumTransferType type)
  103. {
  104. }
  105. public virtual void TransferHandoff(EnumTransferType type)
  106. {
  107. }
  108. public virtual void StartProcess(string recipeName, string recipeContent)
  109. {
  110. }
  111. }
  112. }