JetTM.cs 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053
  1. using Aitex.Core.Common.DeviceData;
  2. using Aitex.Core.RT.Device;
  3. using Aitex.Core.RT.Device.Unit;
  4. using Aitex.Core.Util;
  5. using Aitex.Core.RT.SCCore;
  6. using Aitex.Core.RT.Log;
  7. using MECF.Framework.Common.Device.Bases;
  8. using MECF.Framework.Common.Equipment;
  9. using System;
  10. using System.Collections.Generic;
  11. using Venus_Core;
  12. using Venus_RT.Modules;
  13. using Venus_RT.Devices.IODevices;
  14. using Aitex.Core.RT.DataCenter;
  15. using Aitex.Core.RT.OperationCenter;
  16. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.TMs;
  17. using IoMfc = Venus_RT.Devices.IODevices.IoMfc;
  18. using MECF.Framework.RT.Core.Equipments;
  19. using System.Windows.Media;
  20. namespace Venus_RT.Devices
  21. {
  22. class JetTM : TM
  23. {
  24. private readonly IoLid _TMLid;
  25. private readonly IoLid _LLALid;
  26. private readonly IoLid _LLBLid;
  27. private readonly IoLid _PMALid;
  28. private readonly IoLid _PMBLid;
  29. private readonly IoLid _PMCLid;
  30. private readonly IoLid _PMDLid;
  31. private readonly IoCylinder _LLATSlitDoor;
  32. private readonly IoCylinder _LLBTSlitDoor;
  33. private readonly IoCylinder _PMASlitDoor;
  34. private readonly IoCylinder _PMBSlitDoor;
  35. private readonly IoCylinder _PMCSlitDoor;
  36. private readonly IoCylinder _PMDSlitDoor;
  37. private readonly IoCylinder _LLAESlitDoor;
  38. private readonly IoCylinder _LLBESlitDoor;
  39. private readonly IoValve _TMN2Valve;
  40. private readonly IoValve _TMSoftPumpValve;
  41. private readonly IoValve _TMFastPumpValve;
  42. private readonly IoValve _TMPurgeValve;
  43. private readonly IoValve _TMVentValve;
  44. //private readonly IoValve _TMSoftVentValve;
  45. //private readonly IoValve _TMFastVentValve;
  46. private readonly IoValve _LLASoftPumpValve;
  47. private readonly IoValve _LLAFastPumpValve;
  48. private readonly IoValve _LLAPurgeValve;
  49. private readonly IoValve _LLAVentValve;
  50. private readonly IoValve _LLASoftVentValve;
  51. private readonly IoValve _LLAFastVentValve;
  52. private readonly IoValve _LLBSoftVentValve;
  53. private readonly IoValve _LLBFastVentValve;
  54. private readonly IoValve _LLBSoftPumpValve;
  55. private readonly IoValve _LLBFastPumpValve;
  56. private readonly IoValve _LLBPurgeValve;
  57. private readonly IoValve _LLBVentValve;
  58. private readonly IoValve _WaferRelayValve;
  59. private readonly IoValve _TMVacAtmMode;
  60. private readonly IoSensor _TMPowerOn;
  61. private readonly IoSensor _TMInSafty;
  62. private readonly IoSensor _WaferLeakSensor;
  63. private readonly IoSensor _EFEMSideDoorClosed;
  64. private readonly IoSensor _TMPCWFlowSwitch;
  65. private readonly IoSensor _LLAPCWFlowSwitch;
  66. private readonly IoSensor _LLBPCWFlowSwitch;
  67. private readonly IoSensor _TMLidClosed;
  68. private readonly IoSensor _CDAPressureSwitch;
  69. private readonly IoSensor _VaccumPressureSwitch;
  70. private readonly IoSensor _N2PressureSwitch;
  71. private readonly IoSensor _TMRobotNotExtendPMA;
  72. private readonly IoSensor _TMRobotNotExtendPMB;
  73. private readonly IoSensor _TMRobotNotExtendPMC;
  74. private readonly IoSensor _TMRobotNotExtendPMD;
  75. private readonly IoSensor _TMRobotNotExtendLLA;
  76. private readonly IoSensor _TMRobotNotExtendLLB;
  77. private readonly IoSensor _EfemRobotNotExtendLLA;
  78. private readonly IoSensor _EfemRobotNotExtendLLB;
  79. private readonly IoSensor _TMVacSwitch;
  80. private readonly IoSensor _LLAVacSwitch;
  81. private readonly IoSensor _LLBVacSwitch;
  82. private readonly IoSensor _TMATMSwitch;
  83. private readonly IoSensor _LLAATMSwitch;
  84. private readonly IoSensor _LLBATMSwitch;
  85. private readonly IoSwitch _LLAWaferSizeCheck;
  86. private readonly IoSwitch _LLBWaferSizeCheck;
  87. private readonly IoSwitch _PMAWaferSizeCheck;
  88. private readonly IoSwitch _PMBWaferSizeCheck;
  89. private readonly IoSwitch _PMCWaferSizeCheck;
  90. private readonly IoSwitch _PMDWaferSizeCheck;
  91. private readonly IoSwitch _TM_PressureMode_Switch;
  92. private readonly IoSwitch _LLA_PressureMode_Switch;
  93. private readonly IoSwitch _LLB_PressureMode_Switch;
  94. private readonly IoMfc _TMMfc;
  95. private readonly IoMfc _LLAMfc;
  96. private readonly IoMfc _LLBMfc;
  97. private readonly PumpBase _TMPump;
  98. private readonly PumpBase _LLPump;
  99. private readonly IoTMPressureCtrl _presureCtrl;
  100. public bool TMLidClosed => _TMLid.OFFFeedback;
  101. public bool LLALidClosed => _LLALid.OFFFeedback;
  102. public bool LLBLidClosed => _LLBLid.OFFFeedback;
  103. public bool PMALidClosed => _PMALid.OFFFeedback;
  104. public bool PMBLidClosed => _PMBLid.OFFFeedback;
  105. public bool PMCLidClosed => _PMCLid.OFFFeedback;
  106. public bool PMDLidClosed => _PMDLid.OFFFeedback;
  107. public bool IsLLASlitDoorClosed => _LLATSlitDoor.State == CylinderState.Close;
  108. public bool IsLLASlitDoorOpen => _LLATSlitDoor.State == CylinderState.Open;
  109. public bool IsLLAESlitDoorClosed => _LLAESlitDoor.State == CylinderState.Close;
  110. public bool IsLLAESlitDoorOpen => _LLAESlitDoor.State == CylinderState.Open;
  111. public bool IsLLBSlitDoorClosed => _LLBTSlitDoor.State == CylinderState.Close;
  112. public bool IsLLBSlitDoorOpen => _LLBTSlitDoor.State == CylinderState.Open;
  113. public bool IsLLBESlitDoorClosed => _LLBESlitDoor.State == CylinderState.Close;
  114. public bool IsLLBESlitDoorOpen => _LLBESlitDoor.State == CylinderState.Open;
  115. public bool IsTMVac => _TMVacSwitch.Value;
  116. public bool IsLLAVac => _LLAVacSwitch.Value;
  117. public bool IsLLBVac => _LLBVacSwitch.Value;
  118. public bool IsTMATM => _TMATMSwitch.Value;
  119. public bool IsLLAATM => _LLAATMSwitch.Value;
  120. public bool IsLLBATM => _LLBATMSwitch.Value;
  121. public bool IsTMPowerOn => _TMPowerOn.Value;
  122. public bool IsTMInSafty => _TMInSafty.Value;
  123. public bool IsLLAFastPumpOpen => _LLAFastPumpValve.Status;
  124. public bool IsLLASoftPumpOpen => _LLASoftPumpValve.Status;
  125. public bool IsLLBFastPumpOpen => _LLBFastPumpValve.Status;
  126. public bool IsLLBSoftPumpOpen => _LLBSoftPumpValve.Status;
  127. public bool IsLLAVentValveOpen => _LLAVentValve.Status;
  128. public bool IsLLAPurgeValveOpen => _LLAPurgeValve.Status;
  129. public bool IsLLBVentValveOpen => _LLBVentValve.Status;
  130. public bool IsLLBPurgeValveOpen => _LLBPurgeValve.Status;
  131. public bool IsTMVentValveOpen => _TMVentValve.Status;
  132. // public bool IsTMFastVentValveOpen => _TMFastVentValve.Status;
  133. public bool IsTMPurgeValveOpen => _TMPurgeValve.Status;
  134. public bool IsTMFastPumpOpen => _TMFastPumpValve.Status;
  135. public bool IsTMSoftPumpOpen => _TMSoftPumpValve.Status;
  136. public bool TMRobotNotExtendToPMA => _TMRobotNotExtendPMA.Value;
  137. public bool TMRobotNotExtendToPMB => _TMRobotNotExtendPMB.Value;
  138. public bool TMRobotNotExtendToPMC => _TMRobotNotExtendPMC.Value;
  139. public bool TMRobotNotExtendToPMD => _TMRobotNotExtendPMD.Value;
  140. public bool TMRobotNotExtendToLLA => _TMRobotNotExtendLLA.Value;
  141. public bool TMRobotNotExtendToLLB => _TMRobotNotExtendLLB.Value;
  142. public bool EfemRobotNotExtendToLLA => _EfemRobotNotExtendLLA.Value;
  143. public bool EfemRobotNotExtendToLLB => _EfemRobotNotExtendLLB.Value;
  144. public override double ChamberPressure => _presureCtrl.TMPressureGauge.Value;
  145. public double LLAPressure => _presureCtrl.LLAPressureGauge.Value;
  146. public double LLBPressure => _presureCtrl.LLBPressureGauge.Value;
  147. public override double ForelinePressure => _presureCtrl.MFForelineGauge.Value;
  148. public double LoadlockForelinePressure => _presureCtrl.LLForelineGauge.Value;
  149. public bool? TMPumpIsRunning => _TMPump?.IsRunning;
  150. public bool? LLPumpIsRunning => _LLPump?.IsRunning;
  151. public double PMAPressure { get { return Singleton<RouteManager>.Instance.PMA.ChamberPressure; } }
  152. //public bool PMAIsVAC { get { return Singleton<RouteManager>.Instance.PMA.IsVac; } }
  153. //public double PMBPressure { get { return Singleton<RouteManager>.Instance.PMB.ChamberPressure; } }
  154. //public bool PMBIsATM { get { return Singleton<RouteManager>.Instance.PMB.IsAtm; } }
  155. //public double PMCPressure { get { return Singleton<RouteManager>.Instance.PMC.ChamberPressure; } }
  156. //public bool PMCIsATM { get { return Singleton<RouteManager>.Instance.PMC.IsAtm; } }
  157. //public double PMDPressure { get { return Singleton<RouteManager>.Instance.PMD.ChamberPressure; } }
  158. //public bool PMDIsATM { get { return Singleton<RouteManager>.Instance.PMD.IsAtm; } }
  159. public enum LLPumpState
  160. {
  161. Idle,
  162. LLAUsing,
  163. LLBUsing,
  164. }
  165. LLPumpState _llPumpingState = LLPumpState.Idle;
  166. public LLPumpState LLPumpStatus { get { return _llPumpingState; } }
  167. public bool PMASlitDoorClosed => _PMASlitDoor.OFFFeedback;
  168. public bool PMASlitDoorOpened => _PMASlitDoor.ONFeedback;
  169. public bool PMBSlitDoorClosed => _PMBSlitDoor.OFFFeedback;
  170. public bool PMBSlitDoorOpened => _PMBSlitDoor.ONFeedback;
  171. public bool PMCSlitDoorClosed => _PMCSlitDoor.OFFFeedback;
  172. public bool PMCSlitDoorOpened => _PMCSlitDoor.ONFeedback;
  173. public bool PMDSlitDoorClosed => _PMDSlitDoor.OFFFeedback;
  174. public bool PMDSlitDoorOpened => _PMDSlitDoor.ONFeedback;
  175. public bool AllPMSlitDoorClosed
  176. {
  177. get
  178. {
  179. if (PMASlitDoorClosed == true && PMBSlitDoorClosed == true && PMCSlitDoorClosed == true && PMDSlitDoorClosed == true)
  180. {
  181. return true;
  182. }
  183. else
  184. {
  185. return false;
  186. }
  187. }
  188. }
  189. public Dictionary<ModuleName, ModuleName> PreRotateModules { get; private set; }
  190. public JetTM() : base("TM")
  191. {
  192. _TMLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.TMLid}");
  193. _LLALid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLALid}");
  194. _LLBLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLBLid}");
  195. _PMALid = DEVICE.GetDevice<IoLid>($"TM.PMALid");
  196. _PMBLid = DEVICE.GetDevice<IoLid>($"TM.PMBLid");
  197. _PMCLid = DEVICE.GetDevice<IoLid>($"TM.PMCLid");
  198. _PMDLid = DEVICE.GetDevice<IoLid>($"TM.PMDLid");
  199. _LLATSlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLATSlitDoor}");
  200. _LLBTSlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLBTSlitDoor}");
  201. _LLAESlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLAESlitDoor}");
  202. _LLBESlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLBESlitDoor}");
  203. _PMASlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMASlitDoor");
  204. _PMBSlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMBSlitDoor");
  205. _PMCSlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMCSlitDoor");
  206. _PMDSlitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.PMDSlitDoor");
  207. _TMN2Valve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMValveN2}");
  208. _TMSoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMSoftPumpValve}");
  209. _TMFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMFastPumpValve}");
  210. _TMPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMPurgeValve}");
  211. _TMVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVentValve}");
  212. //_TMSoftVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMSoftVentValve}");
  213. //_TMFastVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMFastVentValve}");
  214. _LLASoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLASoftPumpValve}");
  215. _LLAFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAFastPumpValve}");
  216. _LLAPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAPurgeValve}");
  217. _LLAVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAVentValve}");
  218. _LLASoftVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLASoftVentValve}");
  219. _LLAFastVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAFastVentValve}");
  220. _LLBSoftVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBSoftVentValve}");
  221. _LLBFastVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBFastVentValve}");
  222. _TMVacAtmMode = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVacAtmMode}");
  223. _LLBSoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBSoftPumpValve}");
  224. _LLBFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBFastPumpValve}");
  225. _LLBPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBPurgeValve}");
  226. _LLBVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBVentValve}");
  227. _WaferRelayValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.ValveWaterRelay}");
  228. _TMPowerOn = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPowerOn}");
  229. _TMInSafty = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMInSafty}");
  230. _WaferLeakSensor = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.WaferLeakSensor}");
  231. _EFEMSideDoorClosed = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EFEMSideDoorClosed}");
  232. _TMPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPCWFlowSwitch}");
  233. _LLAPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAPCWFlowSwitch}");
  234. _LLBPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBPCWFlowSwitch}");
  235. _TMLidClosed = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMLidClosed}");
  236. _CDAPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.CDAPressureSwitch}");
  237. _VaccumPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.VaccumPressureSwitch}");
  238. _N2PressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.N2PressureSwitch}");
  239. _TMRobotNotExtendPMA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMA}");
  240. _TMRobotNotExtendPMB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMB}");
  241. _TMRobotNotExtendPMC = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMC}");
  242. _TMRobotNotExtendPMD = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMD}");
  243. _TMRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLA}");
  244. _TMRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLB}");
  245. _EfemRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLA}");
  246. _EfemRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLB}");
  247. _TMVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMVacSwitch}");
  248. _LLAVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAVacSwitch}");
  249. _LLBVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBVacSwitch}");
  250. _TMATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMATMSwitch}");
  251. _LLAATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAATMSwitch}");
  252. _LLBATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBATMSwitch}");
  253. _LLAWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.LLAWaferSizeCheckSwitch}");
  254. _LLBWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.LLBWaferSizeCheckSwitch}");
  255. _PMAWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMAWaferSizeCheckSwitch}");
  256. _PMBWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMBWaferSizeCheckSwitch}");
  257. _PMCWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMCWaferSizeCheckSwitch}");
  258. _PMDWaferSizeCheck = DEVICE.GetDevice<IoSwitch>($"TM.{VenusDevice.PMDWaferSizeCheckSwitch}");
  259. _TM_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.TMPressureModeSwitch");
  260. _LLA_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.LLAPressureModeSwitch");
  261. _LLB_PressureMode_Switch = DEVICE.GetDevice<IoSwitch>("TM.LLBPressureModeSwitch");
  262. _TMMfc = DEVICE.GetDevice<IoMfc>($"{Module}.TM_MFC1");
  263. _LLAMfc = DEVICE.GetDevice<IoMfc>($"{Module}.LLA_MFC1");
  264. _LLBMfc = DEVICE.GetDevice<IoMfc>($"{Module}.LLB_MFC1");
  265. _presureCtrl = DEVICE.GetDevice<IoTMPressureCtrl>($"TM.{VenusDevice.TMPressureCtrl}");
  266. if (SC.GetValue<int>($"TM.DryPump.CommunicationType") == (int)CommunicationType.RS232)
  267. {
  268. if (SC.GetValue<int>($"TM.DryPump.MFG") == (int)DryPumpMFG.SKY)
  269. {
  270. _TMPump = DEVICE.GetDevice<SkyPump>($"TM.{VenusDevice.MainPump}");
  271. }
  272. else if (SC.GetValue<int>($"TM.DryPump.MFG") == (int)DryPumpMFG.Edwards)
  273. {
  274. _TMPump = DEVICE.GetDevice<EdwardsPump>($"TM.{VenusDevice.MainPump}");
  275. }
  276. }
  277. if (SC.GetValue<int>($"LLA.DryPump.CommunicationType") == (int)CommunicationType.RS232)
  278. {
  279. if (SC.GetValue<int>($"LLA.DryPump.MFG") == (int)DryPumpMFG.SKY)
  280. {
  281. _LLPump = DEVICE.GetDevice<SkyPump>($"LLA.{VenusDevice.MainPump}");
  282. }
  283. else if (SC.GetValue<int>($"LLA.DryPump.MFG") == (int)DryPumpMFG.Edwards)
  284. {
  285. _LLPump = DEVICE.GetDevice<EdwardsPump>($"LLA.{VenusDevice.MainPump}");
  286. }
  287. }
  288. PreRotateModules = new Dictionary<ModuleName, ModuleName>();
  289. foreach (var mod in new List<ModuleName> { ModuleName.LLA, ModuleName.LLB, ModuleName.PMA, ModuleName.PMB, ModuleName.PMC, ModuleName.PMD })
  290. {
  291. string rotateModule = SC.GetStringValue($"TM.PreRotation.{mod}");
  292. if (rotateModule.Length == 3)
  293. {
  294. ModuleName rotModule = ModuleHelper.Converter(rotateModule);
  295. if (ModuleHelper.IsPm(rotModule) || ModuleHelper.IsLoadLock(rotModule))
  296. {
  297. PreRotateModules.Add(mod, rotModule);
  298. }
  299. }
  300. }
  301. DATA.Subscribe("TM.PumpIsRunning", () => TMPumpIsRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  302. DATA.Subscribe("TM.TMLidClosed", () => TMLidClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  303. DATA.Subscribe("TM.LLALidClosed", () => LLALidClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  304. DATA.Subscribe("TM.LLBLidClosed", () => LLBLidClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  305. DATA.Subscribe("LL.PumpIsRunning", () => LLPumpIsRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  306. DATA.Subscribe($"{Name}.LLAPressure", () => LLAPressure);
  307. DATA.Subscribe($"{Name}.LLBPressure", () => LLBPressure);
  308. OP.Subscribe("TM.ControlPump", (cmd, args) =>
  309. {
  310. _TMPump.SetPumpOnOff((bool)args[0]);
  311. return true;
  312. });
  313. OP.Subscribe("LL.ControlPump", (cmd, args) =>
  314. {
  315. _LLPump.SetPumpOnOff((bool)args[0]);
  316. return true;
  317. });
  318. OP.Subscribe("TM.SetChamberPressure", (cmd, args) =>
  319. {
  320. _presureCtrl.SetTMPressure((int)(args[0]));
  321. return true;
  322. });
  323. OP.Subscribe("TM.SetChamberFlow", (cmd, args) =>
  324. {
  325. _TMMfc.SetPoint = (int)(args[0]);
  326. return true;
  327. });
  328. OP.Subscribe($"TM.SetMFSlitDoor", (cmd, args) =>
  329. {
  330. var module = (ModuleName)Enum.Parse(typeof(ModuleName), args[0].ToString());
  331. TurnMFSlitDoor(module, (bool)args[1], out _);
  332. return true;
  333. });
  334. OP.Subscribe($"TM.SetEFEMSlitDoor", (cmd, args) =>
  335. {
  336. var module = (ModuleName)Enum.Parse(typeof(ModuleName), args[0].ToString());
  337. TurnEFEMSlitDoor(module, (bool)args[1], out _);
  338. return true;
  339. });
  340. _TMVacAtmMode.TurnValve(RouteManager.IsATMMode, out string _);
  341. }
  342. public override void Monitor()
  343. {
  344. if (_WaferLeakSensor.Value && _WaferRelayValve.Status == false)
  345. {
  346. _WaferRelayValve.TurnValve(true, out string _);
  347. }
  348. else if (_WaferLeakSensor.Value == false && _WaferRelayValve.Status == true)
  349. {
  350. _WaferRelayValve.TurnValve(false, out string _);
  351. }
  352. }
  353. public void TurnSoftPumpValve(ModuleName mod, bool bOn)
  354. {
  355. switch(mod)
  356. {
  357. case ModuleName.TM:
  358. _TMSoftPumpValve.TurnValve(bOn, out string _);
  359. break;
  360. case ModuleName.LLA:
  361. _LLASoftPumpValve.TurnValve(bOn, out string _);
  362. break;
  363. case ModuleName.LLB:
  364. _LLBSoftPumpValve.TurnValve(bOn, out string _);
  365. break;
  366. }
  367. }
  368. public void TurnFastPumpValve(ModuleName mod, bool bOn)
  369. {
  370. switch(mod)
  371. {
  372. case ModuleName.TM:
  373. _TMFastPumpValve.TurnValve(bOn, out string _);
  374. break;
  375. case ModuleName.LLA:
  376. _LLAFastPumpValve.TurnValve(bOn, out string _);
  377. break;
  378. case ModuleName.LLB:
  379. _LLBFastPumpValve.TurnValve(bOn, out string _);
  380. break;
  381. }
  382. }
  383. public void TurnVentValve(ModuleName mod, bool bOn)
  384. {
  385. switch (mod)
  386. {
  387. case ModuleName.TM:
  388. _TMVentValve.TurnValve(bOn, out string _);
  389. break;
  390. case ModuleName.LLA:
  391. _LLAVentValve.TurnValve(bOn, out string _);
  392. break;
  393. case ModuleName.LLB:
  394. _LLBVentValve.TurnValve(bOn, out string _);
  395. break;
  396. }
  397. }
  398. public void TurnPurgeValve(ModuleName mod, bool bOn)
  399. {
  400. switch(mod)
  401. {
  402. case ModuleName.TM:
  403. _TMPurgeValve.TurnValve(bOn, out string _);
  404. break;
  405. case ModuleName.LLA:
  406. _LLAPurgeValve.TurnValve(bOn, out string _);
  407. break;
  408. case ModuleName.LLB:
  409. _LLBPurgeValve.TurnValve(bOn, out string _);
  410. break;
  411. }
  412. }
  413. public void TurnN2Valve(bool bOn)
  414. {
  415. _TMN2Valve.TurnValve(bOn, out string _);
  416. }
  417. public void CloseModuleAllValves(ModuleName mod)
  418. {
  419. TurnFastPumpValve(mod, false);
  420. TurnSoftPumpValve(mod, false);
  421. TurnVentValve(mod, false);
  422. TurnPurgeValve(mod, false);
  423. if (mod == ModuleName.TM)
  424. TurnN2Valve(false);
  425. }
  426. public double GetModulePressure(ModuleName mod)
  427. {
  428. switch (mod)
  429. {
  430. case ModuleName.TM:
  431. return ChamberPressure;
  432. case ModuleName.LLA:
  433. return LLAPressure;
  434. case ModuleName.LLB:
  435. return LLBPressure;
  436. }
  437. return 0;
  438. }
  439. public bool IsModuleATM(ModuleName mod)
  440. {
  441. switch (mod)
  442. {
  443. case ModuleName.TM:
  444. return IsTMATM;
  445. case ModuleName.LLA:
  446. return IsLLAATM;
  447. case ModuleName.LLB:
  448. return IsLLBATM;
  449. case ModuleName.PMA:
  450. return Singleton<RouteManager>.Instance.PMA.IsAtm;
  451. case ModuleName.PMB:
  452. return Singleton<RouteManager>.Instance.PMB.IsAtm;
  453. case ModuleName.PMC:
  454. return Singleton<RouteManager>.Instance.PMC.IsAtm;
  455. case ModuleName.PMD:
  456. return Singleton<RouteManager>.Instance.PMD.IsAtm;
  457. }
  458. return false;
  459. }
  460. public bool IsModuleVaccum(ModuleName mod)
  461. {
  462. switch (mod)
  463. {
  464. case ModuleName.TM:
  465. return IsTMVac;
  466. case ModuleName.LLA:
  467. return IsLLAVac;
  468. case ModuleName.LLB:
  469. return IsLLBVac;
  470. case ModuleName.PMA:
  471. return Singleton<RouteManager>.Instance.PMA.IsVac;
  472. case ModuleName.PMB:
  473. return Singleton<RouteManager>.Instance.PMB.IsVac;
  474. case ModuleName.PMC:
  475. return Singleton<RouteManager>.Instance.PMC.IsVac;
  476. case ModuleName.PMD:
  477. return Singleton<RouteManager>.Instance.PMD.IsVac;
  478. }
  479. return false;
  480. }
  481. public bool IsPMSlitdoorOpened(ModuleName mod)
  482. {
  483. switch (mod)
  484. {
  485. case ModuleName.PMA:
  486. return PMASlitDoorOpened;
  487. case ModuleName.PMB:
  488. return PMBSlitDoorOpened;
  489. case ModuleName.PMC:
  490. return PMCSlitDoorOpened;
  491. case ModuleName.PMD:
  492. return PMDSlitDoorOpened;
  493. }
  494. return false;
  495. }
  496. public bool IsPMSlitdoorClosed(ModuleName mod)
  497. {
  498. switch (mod)
  499. {
  500. case ModuleName.PMA:
  501. return PMASlitDoorClosed;
  502. case ModuleName.PMB:
  503. return PMBSlitDoorClosed;
  504. case ModuleName.PMC:
  505. return PMCSlitDoorClosed;
  506. case ModuleName.PMD:
  507. return PMDSlitDoorClosed;
  508. }
  509. return false;
  510. }
  511. public bool CheckLidClosed(ModuleName mod)
  512. {
  513. switch (mod)
  514. {
  515. case ModuleName.TM:
  516. if(!TMLidClosed)
  517. {
  518. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Lid not closed");
  519. return false;
  520. }
  521. break;
  522. case ModuleName.LLA:
  523. if(!LLALidClosed)
  524. {
  525. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Lid not closed");
  526. return false;
  527. }
  528. break;
  529. case ModuleName.LLB:
  530. if (!LLBLidClosed)
  531. {
  532. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Lid not closed");
  533. return false;
  534. }
  535. break;
  536. case ModuleName.PMA:
  537. if (!PMALidClosed)
  538. {
  539. LOG.Write(eEvent.ERR_TM, ModuleName.PMA, "PMA Lid not closed");
  540. return false;
  541. }
  542. break;
  543. case ModuleName.PMB:
  544. if (!PMBLidClosed)
  545. {
  546. LOG.Write(eEvent.ERR_TM, ModuleName.PMB, "PMB Lid not closed");
  547. return false;
  548. }
  549. break;
  550. case ModuleName.PMC:
  551. if (!PMCLidClosed)
  552. {
  553. LOG.Write(eEvent.ERR_TM, ModuleName.PMC, "PMC Lid not closed");
  554. return false;
  555. }
  556. break;
  557. case ModuleName.PMD:
  558. if (!PMDLidClosed)
  559. {
  560. LOG.Write(eEvent.ERR_TM, ModuleName.PMD, "PMD Lid not closed");
  561. return false;
  562. }
  563. break;
  564. }
  565. return true;
  566. }
  567. public bool CheckVentValveClosed(ModuleName mod)
  568. {
  569. switch (mod)
  570. {
  571. case ModuleName.TM:
  572. if (IsTMVentValveOpen)
  573. {
  574. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Vent Valve not closed");
  575. return false;
  576. }
  577. break;
  578. case ModuleName.LLA:
  579. if (IsLLAVentValveOpen)
  580. {
  581. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Vent Valve not closed");
  582. return false;
  583. }
  584. break;
  585. case ModuleName.LLB:
  586. if (IsLLBVentValveOpen)
  587. {
  588. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Vent Valve not closed");
  589. return false;
  590. }
  591. break;
  592. }
  593. return true;
  594. }
  595. public bool CheckPurgeValveClosed(ModuleName mod)
  596. {
  597. switch (mod)
  598. {
  599. case ModuleName.TM:
  600. if (IsTMPurgeValveOpen)
  601. {
  602. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Purge Valve not closed");
  603. return false;
  604. }
  605. break;
  606. case ModuleName.LLA:
  607. if (IsLLAPurgeValveOpen)
  608. {
  609. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Purge Valve not closed");
  610. return false;
  611. }
  612. break;
  613. case ModuleName.LLB:
  614. if (IsLLBPurgeValveOpen)
  615. {
  616. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Purge Valve not closed");
  617. return false;
  618. }
  619. break;
  620. }
  621. return true;
  622. }
  623. public bool CheckPumpValveClosed(ModuleName mod)
  624. {
  625. switch (mod)
  626. {
  627. case ModuleName.TM:
  628. if (IsTMFastPumpOpen)
  629. {
  630. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Fast Pump Valve not closed");
  631. return false;
  632. }
  633. else if(IsTMSoftPumpOpen)
  634. {
  635. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Soft Pump Valve not closed");
  636. return false;
  637. }
  638. break;
  639. case ModuleName.LLA:
  640. if (IsLLAFastPumpOpen)
  641. {
  642. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Fast Pump Valve not closed");
  643. return false;
  644. }
  645. else if(IsLLASoftPumpOpen)
  646. {
  647. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Soft Pump Valve not closed");
  648. return false;
  649. }
  650. break;
  651. case ModuleName.LLB:
  652. if (IsLLBFastPumpOpen)
  653. {
  654. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Fast Pump Valve not closed");
  655. return false;
  656. }
  657. else if(IsLLBSoftPumpOpen)
  658. {
  659. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Soft Pump Valve not closed");
  660. return false;
  661. }
  662. break;
  663. }
  664. return true;
  665. }
  666. //private bool CheckRobotNotExtendSensor(ModuleName ll, bool open, bool bTMDoor, out string reason)
  667. //{
  668. // string action = open ? "Open" : "Close";
  669. // string doorName = bTMDoor ? "TM" : "EFEM";
  670. // if (ll == ModuleName.LLA)
  671. // {
  672. // if (!_TMRobotNotExtendLLA.Value)
  673. // {
  674. // reason = $"TM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  675. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  676. // return false;
  677. // }
  678. // if (!_EfemRobotNotExtendLLA.Value)
  679. // {
  680. // reason = $"EFEM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  681. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  682. // return false;
  683. // }
  684. // }
  685. // else
  686. // {
  687. // if (!_TMRobotNotExtendLLB.Value)
  688. // {
  689. // reason = $"TM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  690. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  691. // return false;
  692. // }
  693. // if (!_EfemRobotNotExtendLLB.Value)
  694. // {
  695. // reason = $"EFEM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  696. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  697. // return false;
  698. // }
  699. // }
  700. // reason = "";
  701. // return true;
  702. //}
  703. public bool TurnMFSlitDoor(ModuleName moduleName, bool open, out string reason)
  704. {
  705. //if (!CheckRobotNotExtendSensor(loadlock, open, true, out reason))
  706. // return false;
  707. if (open)
  708. {
  709. if (RouteManager.IsATMMode)
  710. {
  711. if (!IsTMATM)
  712. {
  713. reason = $"TM is not ATM, can not open slit door";
  714. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  715. return false;
  716. }
  717. if (!IsModuleATM(moduleName))
  718. {
  719. reason = $"{moduleName} is not ATM, can not open slit door";
  720. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  721. return false;
  722. }
  723. }
  724. else
  725. {
  726. if(!IsModuleVaccum(moduleName))
  727. {
  728. reason = $"{moduleName} is notVacuum, can not open slit door";
  729. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  730. return false;
  731. }
  732. double maxPressureDifference = SC.GetValue<double>("System.TMLLMaxPressureDifference");
  733. if (Math.Abs(GetModulePressure(moduleName) - GetModulePressure(ModuleName.TM)) > maxPressureDifference)
  734. {
  735. reason = $"{moduleName}:{GetModulePressure(moduleName)} and TM : {GetModulePressure(ModuleName.TM)} pressure difference exceeds the max limit {maxPressureDifference}";
  736. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  737. return false;
  738. }
  739. }
  740. }
  741. switch(moduleName)
  742. {
  743. case ModuleName.LLA:
  744. return _LLATSlitDoor.SetCylinder(open, out reason);
  745. case ModuleName.LLB:
  746. return _LLBTSlitDoor.SetCylinder(open, out reason);
  747. case ModuleName.PMA:
  748. return _PMASlitDoor.SetCylinder(open, out reason);
  749. case ModuleName.PMB:
  750. return _PMBSlitDoor.SetCylinder(open, out reason);
  751. case ModuleName.PMC:
  752. return _PMCSlitDoor.SetCylinder(open, out reason);
  753. case ModuleName.PMD:
  754. return _PMDSlitDoor.SetCylinder(open, out reason);
  755. }
  756. reason = $"Invalid module {moduleName}";
  757. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  758. return false;
  759. }
  760. public bool TurnEFEMSlitDoor(ModuleName loadlock, bool open, out string reason)
  761. {
  762. //if (!CheckRobotNotExtendSensor(loadlock, open, false, out reason))
  763. // return false;
  764. if (open && !IsModuleATM(loadlock))
  765. {
  766. reason = $"{loadlock} is not ATM, can not open EFEM side slit door";
  767. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  768. return false;
  769. }
  770. switch (loadlock)
  771. {
  772. case ModuleName.LLA:
  773. return _LLAESlitDoor.SetCylinder(open, out reason);
  774. case ModuleName.LLB:
  775. return _LLBESlitDoor.SetCylinder(open, out reason);
  776. }
  777. reason = $"Invalid module {loadlock}";
  778. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  779. return false;
  780. }
  781. //public bool ControlTMPump(bool ison)
  782. //{
  783. // _TMPump.SetPumpOnOff(ison);
  784. // return true;
  785. //}
  786. public void SwitchTMPressureMode(bool isPressureMode)
  787. {
  788. if (isPressureMode==true)
  789. {
  790. _TM_PressureMode_Switch.TurnOn();
  791. }
  792. else
  793. {
  794. _TM_PressureMode_Switch.TurnOff();
  795. }
  796. }
  797. public void SwitchLLAPressureMode(bool isPressureMode)
  798. {
  799. if (isPressureMode == true)
  800. {
  801. _LLA_PressureMode_Switch.TurnOn();
  802. }
  803. else
  804. {
  805. _LLA_PressureMode_Switch.TurnOff();
  806. }
  807. }
  808. public void SwitchLLBPressureMode(bool isPressureMode)
  809. {
  810. if (isPressureMode == true)
  811. {
  812. _LLB_PressureMode_Switch.TurnOn();
  813. }
  814. else
  815. {
  816. _LLB_PressureMode_Switch.TurnOff();
  817. }
  818. }
  819. public void SetTMPressure(int pressureValue)
  820. {
  821. _presureCtrl.SetTMPressure(pressureValue);
  822. }
  823. public void SetLLAPressure(int pressureValue)
  824. {
  825. _presureCtrl.SetLLAPressure(pressureValue);
  826. }
  827. public void SetLLBPressure(int pressureValue)
  828. {
  829. _presureCtrl.SetLLBPressure(pressureValue);
  830. }
  831. public void SetTMFlow(int flowValue)
  832. {
  833. _TMMfc.SetPoint = (flowValue);
  834. }
  835. public void SetLLAFlow(int flowValue)
  836. {
  837. _LLAMfc.SetPoint = (flowValue);
  838. }
  839. public void SetLLBFlow(int flowValue)
  840. {
  841. _LLBMfc.SetPoint = (flowValue);
  842. }
  843. public bool CloseAllSlitDoor()
  844. {
  845. TurnMFSlitDoor(ModuleName.LLA, false, out _);
  846. TurnMFSlitDoor(ModuleName.LLB, false, out _);
  847. TurnMFSlitDoor(ModuleName.PMA, false, out _);
  848. TurnMFSlitDoor(ModuleName.PMB, false, out _);
  849. TurnMFSlitDoor(ModuleName.PMC, false, out _);
  850. TurnMFSlitDoor(ModuleName.PMD, false, out _);
  851. return true;
  852. }
  853. public bool TurnTMPump(bool ison)
  854. {
  855. _TMPump.SetPumpOnOff(ison);
  856. return true;
  857. }
  858. public bool TryGetLLPump(ModuleName LLname)
  859. {
  860. //Self
  861. if ((LLname == ModuleName.LLA && _llPumpingState == LLPumpState.LLAUsing) || (LLname == ModuleName.LLB && _llPumpingState == LLPumpState.LLBUsing))
  862. return true;
  863. //Idle
  864. if (LLname == ModuleName.LLA && !IsLLBFastPumpOpen && !IsLLBSoftPumpOpen && _llPumpingState == LLPumpState.Idle)
  865. {
  866. _llPumpingState = LLPumpState.LLAUsing;
  867. return true;
  868. }
  869. if (LLname == ModuleName.LLB && !IsLLAFastPumpOpen && !IsLLASoftPumpOpen && _llPumpingState == LLPumpState.Idle)
  870. {
  871. _llPumpingState = LLPumpState.LLBUsing;
  872. return true;
  873. }
  874. //LOG.Write(eEvent.WARN_DEFAULT_WARN, LLname, "无法打开,另一个泵正在用!");
  875. //locked
  876. return false;
  877. }
  878. public void ReleasePump(ModuleName Module)
  879. {
  880. //release pump (must do it by user)
  881. if ((Module == ModuleName.LLA && _llPumpingState == LLPumpState.LLAUsing) || (Module == ModuleName.LLB && _llPumpingState == LLPumpState.LLBUsing))
  882. _llPumpingState = LLPumpState.Idle;
  883. }
  884. public void HomeSlitDoor()
  885. {
  886. if (IsLLASlitDoorClosed == true)
  887. {
  888. _LLATSlitDoor.SetCylinder(false, out _);
  889. }
  890. else if(IsLLASlitDoorOpen == true)
  891. {
  892. _LLATSlitDoor.SetCylinder(true, out _);
  893. }
  894. if (IsLLBSlitDoorClosed == true)
  895. {
  896. _LLBTSlitDoor.SetCylinder(false, out _);
  897. }
  898. else if (IsLLBSlitDoorOpen == true)
  899. {
  900. _LLBTSlitDoor.SetCylinder(true, out _);
  901. }
  902. if (IsLLAESlitDoorClosed == true)
  903. {
  904. _LLAESlitDoor.SetCylinder(false, out _);
  905. }
  906. else if (IsLLAESlitDoorOpen == true)
  907. {
  908. _LLAESlitDoor.SetCylinder(true, out _);
  909. }
  910. if (IsLLBESlitDoorClosed == true)
  911. {
  912. _LLBESlitDoor.SetCylinder(false, out _);
  913. }
  914. else if (IsLLBESlitDoorOpen == true)
  915. {
  916. _LLBESlitDoor.SetCylinder(true, out _);
  917. }
  918. }
  919. }
  920. }