PM.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. }
  29. public virtual bool Initialize()
  30. {
  31. DATA.Subscribe($"{Name}.IsAtm", () => { return CheckAtm(); });
  32. DATA.Subscribe($"{Name}.IsVacuum", () => { return CheckVacuum(); });
  33. DATA.Subscribe($"{Name}.IsCDAOK", () => { return CheckCDAOK(); });
  34. DATA.Subscribe($"{Name}.IsCoolantInletTCOK", () => { return CheckCoolantInletTCOK(); });
  35. DATA.Subscribe($"{Name}.IsCoolantOutletTCOK", () => { return CheckCoolantOutletTCOK(); });
  36. DATA.Subscribe($"{Name}.IsArmNotExtend", () => { return CheckArmExtendOK(); });
  37. DATA.Subscribe($"{Name}.IsWaterLeak", () => { return CheckWaterLeak(); });
  38. DATA.Subscribe($"{Name}.ChamberPressure", () => ChamberPressure);
  39. IsInstalled = SC.GetValue<bool>($"System.{Name}IsInstalled");
  40. return true;
  41. }
  42. public virtual bool CheckSlitDoorOpen(ModuleName moduleName)
  43. {
  44. return false;
  45. }
  46. public virtual bool CheckSlitDoorClose(ModuleName moduleName)
  47. {
  48. return false;
  49. }
  50. public virtual bool CheckAtm()
  51. {
  52. return false;
  53. }
  54. public virtual bool CheckWaterLeak()
  55. {
  56. return false;
  57. }
  58. public virtual bool CheckCDAOK()
  59. {
  60. return false;
  61. }
  62. public virtual bool CheckCoolantInletTCOK()
  63. {
  64. return false;
  65. }
  66. public virtual bool CheckCoolantOutletTCOK()
  67. {
  68. return false;
  69. }
  70. public virtual bool CheckArmExtendOK()
  71. {
  72. return false;
  73. }
  74. public virtual bool CheckVacuum()
  75. {
  76. return false;
  77. }
  78. public virtual bool CheckHandoff(EnumTransferType type)
  79. {
  80. return false;
  81. }
  82. public virtual bool CheckEnableTransfer(EnumTransferType type)
  83. {
  84. return false;
  85. }
  86. public virtual void Monitor()
  87. {
  88. }
  89. public virtual void Terminate()
  90. {
  91. }
  92. public virtual void Reset()
  93. {
  94. }
  95. public virtual void PrepareTransfer(EnumTransferType type)
  96. {
  97. }
  98. public virtual void Home()
  99. {
  100. }
  101. public virtual void PostTransfer(EnumTransferType type)
  102. {
  103. }
  104. public virtual void TransferHandoff(EnumTransferType type)
  105. {
  106. }
  107. public virtual void StartProcess(string recipeName, string recipeContent)
  108. {
  109. }
  110. }
  111. }