PM.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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}.IsWaterLeak", () => { return CheckWaterLeak(); });
  34. DATA.Subscribe($"{Name}.ChamberPressure", () => ChamberPressure);
  35. IsInstalled = SC.GetValue<bool>($"System.{Name}IsInstalled");
  36. return true;
  37. }
  38. public virtual bool CheckSlitDoorOpen(ModuleName moduleName)
  39. {
  40. return false;
  41. }
  42. public virtual bool CheckSlitDoorClose(ModuleName moduleName)
  43. {
  44. return false;
  45. }
  46. public virtual bool CheckAtm()
  47. {
  48. return false;
  49. }
  50. public virtual bool CheckWaterLeak()
  51. {
  52. return false;
  53. }
  54. public virtual bool CheckVacuum()
  55. {
  56. return false;
  57. }
  58. public virtual bool CheckHandoff(EnumTransferType type)
  59. {
  60. return false;
  61. }
  62. public virtual bool CheckEnableTransfer(EnumTransferType type)
  63. {
  64. return false;
  65. }
  66. public virtual void Monitor()
  67. {
  68. }
  69. public virtual void Terminate()
  70. {
  71. }
  72. public virtual void Reset()
  73. {
  74. }
  75. public virtual void PrepareTransfer(EnumTransferType type)
  76. {
  77. }
  78. public virtual void Home()
  79. {
  80. }
  81. public virtual void PostTransfer(EnumTransferType type)
  82. {
  83. }
  84. public virtual void TransferHandoff(EnumTransferType type)
  85. {
  86. }
  87. public virtual void StartProcess(string recipeName, string recipeContent)
  88. {
  89. }
  90. }
  91. }