JetTM.cs 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061
  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. case ModuleName.PMA:
  437. return PMAPressure;
  438. case ModuleName.PMB:
  439. return PMBPressure;
  440. case ModuleName.PMC:
  441. return PMCPressure;
  442. case ModuleName.PMD:
  443. return PMDPressure;
  444. }
  445. return 0;
  446. }
  447. public bool IsModuleATM(ModuleName mod)
  448. {
  449. switch (mod)
  450. {
  451. case ModuleName.TM:
  452. return IsTMATM;
  453. case ModuleName.LLA:
  454. return IsLLAATM;
  455. case ModuleName.LLB:
  456. return IsLLBATM;
  457. case ModuleName.PMA:
  458. return Singleton<RouteManager>.Instance.PMA.IsAtm;
  459. case ModuleName.PMB:
  460. return Singleton<RouteManager>.Instance.PMB.IsAtm;
  461. case ModuleName.PMC:
  462. return Singleton<RouteManager>.Instance.PMC.IsAtm;
  463. case ModuleName.PMD:
  464. return Singleton<RouteManager>.Instance.PMD.IsAtm;
  465. }
  466. return false;
  467. }
  468. public bool IsModuleVaccum(ModuleName mod)
  469. {
  470. switch (mod)
  471. {
  472. case ModuleName.TM:
  473. return IsTMVac;
  474. case ModuleName.LLA:
  475. return IsLLAVac;
  476. case ModuleName.LLB:
  477. return IsLLBVac;
  478. case ModuleName.PMA:
  479. return Singleton<RouteManager>.Instance.PMA.IsVac;
  480. case ModuleName.PMB:
  481. return Singleton<RouteManager>.Instance.PMB.IsVac;
  482. case ModuleName.PMC:
  483. return Singleton<RouteManager>.Instance.PMC.IsVac;
  484. case ModuleName.PMD:
  485. return Singleton<RouteManager>.Instance.PMD.IsVac;
  486. }
  487. return false;
  488. }
  489. public bool IsPMSlitdoorOpened(ModuleName mod)
  490. {
  491. switch (mod)
  492. {
  493. case ModuleName.PMA:
  494. return PMASlitDoorOpened;
  495. case ModuleName.PMB:
  496. return PMBSlitDoorOpened;
  497. case ModuleName.PMC:
  498. return PMCSlitDoorOpened;
  499. case ModuleName.PMD:
  500. return PMDSlitDoorOpened;
  501. }
  502. return false;
  503. }
  504. public bool IsPMSlitdoorClosed(ModuleName mod)
  505. {
  506. switch (mod)
  507. {
  508. case ModuleName.PMA:
  509. return PMASlitDoorClosed;
  510. case ModuleName.PMB:
  511. return PMBSlitDoorClosed;
  512. case ModuleName.PMC:
  513. return PMCSlitDoorClosed;
  514. case ModuleName.PMD:
  515. return PMDSlitDoorClosed;
  516. }
  517. return false;
  518. }
  519. public bool CheckLidClosed(ModuleName mod)
  520. {
  521. switch (mod)
  522. {
  523. case ModuleName.TM:
  524. if(!TMLidClosed)
  525. {
  526. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Lid not closed");
  527. return false;
  528. }
  529. break;
  530. case ModuleName.LLA:
  531. if(!LLALidClosed)
  532. {
  533. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Lid not closed");
  534. return false;
  535. }
  536. break;
  537. case ModuleName.LLB:
  538. if (!LLBLidClosed)
  539. {
  540. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Lid not closed");
  541. return false;
  542. }
  543. break;
  544. case ModuleName.PMA:
  545. if (!PMALidClosed)
  546. {
  547. LOG.Write(eEvent.ERR_TM, ModuleName.PMA, "PMA Lid not closed");
  548. return false;
  549. }
  550. break;
  551. case ModuleName.PMB:
  552. if (!PMBLidClosed)
  553. {
  554. LOG.Write(eEvent.ERR_TM, ModuleName.PMB, "PMB Lid not closed");
  555. return false;
  556. }
  557. break;
  558. case ModuleName.PMC:
  559. if (!PMCLidClosed)
  560. {
  561. LOG.Write(eEvent.ERR_TM, ModuleName.PMC, "PMC Lid not closed");
  562. return false;
  563. }
  564. break;
  565. case ModuleName.PMD:
  566. if (!PMDLidClosed)
  567. {
  568. LOG.Write(eEvent.ERR_TM, ModuleName.PMD, "PMD Lid not closed");
  569. return false;
  570. }
  571. break;
  572. }
  573. return true;
  574. }
  575. public bool CheckVentValveClosed(ModuleName mod)
  576. {
  577. switch (mod)
  578. {
  579. case ModuleName.TM:
  580. if (IsTMVentValveOpen)
  581. {
  582. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Vent Valve not closed");
  583. return false;
  584. }
  585. break;
  586. case ModuleName.LLA:
  587. if (IsLLAVentValveOpen)
  588. {
  589. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Vent Valve not closed");
  590. return false;
  591. }
  592. break;
  593. case ModuleName.LLB:
  594. if (IsLLBVentValveOpen)
  595. {
  596. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Vent Valve not closed");
  597. return false;
  598. }
  599. break;
  600. }
  601. return true;
  602. }
  603. public bool CheckPurgeValveClosed(ModuleName mod)
  604. {
  605. switch (mod)
  606. {
  607. case ModuleName.TM:
  608. if (IsTMPurgeValveOpen)
  609. {
  610. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Purge Valve not closed");
  611. return false;
  612. }
  613. break;
  614. case ModuleName.LLA:
  615. if (IsLLAPurgeValveOpen)
  616. {
  617. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Purge Valve not closed");
  618. return false;
  619. }
  620. break;
  621. case ModuleName.LLB:
  622. if (IsLLBPurgeValveOpen)
  623. {
  624. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Purge Valve not closed");
  625. return false;
  626. }
  627. break;
  628. }
  629. return true;
  630. }
  631. public bool CheckPumpValveClosed(ModuleName mod)
  632. {
  633. switch (mod)
  634. {
  635. case ModuleName.TM:
  636. if (IsTMFastPumpOpen)
  637. {
  638. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Fast Pump Valve not closed");
  639. return false;
  640. }
  641. else if(IsTMSoftPumpOpen)
  642. {
  643. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Soft Pump Valve not closed");
  644. return false;
  645. }
  646. break;
  647. case ModuleName.LLA:
  648. if (IsLLAFastPumpOpen)
  649. {
  650. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Fast Pump Valve not closed");
  651. return false;
  652. }
  653. else if(IsLLASoftPumpOpen)
  654. {
  655. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Soft Pump Valve not closed");
  656. return false;
  657. }
  658. break;
  659. case ModuleName.LLB:
  660. if (IsLLBFastPumpOpen)
  661. {
  662. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Fast Pump Valve not closed");
  663. return false;
  664. }
  665. else if(IsLLBSoftPumpOpen)
  666. {
  667. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Soft Pump Valve not closed");
  668. return false;
  669. }
  670. break;
  671. }
  672. return true;
  673. }
  674. //private bool CheckRobotNotExtendSensor(ModuleName ll, bool open, bool bTMDoor, out string reason)
  675. //{
  676. // string action = open ? "Open" : "Close";
  677. // string doorName = bTMDoor ? "TM" : "EFEM";
  678. // if (ll == ModuleName.LLA)
  679. // {
  680. // if (!_TMRobotNotExtendLLA.Value)
  681. // {
  682. // reason = $"TM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  683. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  684. // return false;
  685. // }
  686. // if (!_EfemRobotNotExtendLLA.Value)
  687. // {
  688. // reason = $"EFEM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  689. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  690. // return false;
  691. // }
  692. // }
  693. // else
  694. // {
  695. // if (!_TMRobotNotExtendLLB.Value)
  696. // {
  697. // reason = $"TM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  698. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  699. // return false;
  700. // }
  701. // if (!_EfemRobotNotExtendLLB.Value)
  702. // {
  703. // reason = $"EFEM Robot Not Extend to {ll} is false, can not {action} {doorName} slit door";
  704. // LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  705. // return false;
  706. // }
  707. // }
  708. // reason = "";
  709. // return true;
  710. //}
  711. public bool TurnMFSlitDoor(ModuleName moduleName, bool open, out string reason)
  712. {
  713. //if (!CheckRobotNotExtendSensor(loadlock, open, true, out reason))
  714. // return false;
  715. if (open)
  716. {
  717. if (RouteManager.IsATMMode)
  718. {
  719. if (!IsTMATM)
  720. {
  721. reason = $"TM is not ATM, can not open slit door";
  722. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  723. return false;
  724. }
  725. if (!IsModuleATM(moduleName))
  726. {
  727. reason = $"{moduleName} is not ATM, can not open slit door";
  728. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  729. return false;
  730. }
  731. }
  732. else
  733. {
  734. if(!IsModuleVaccum(moduleName))
  735. {
  736. reason = $"{moduleName} is notVacuum, can not open slit door";
  737. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  738. return false;
  739. }
  740. double maxPressureDifference = SC.GetValue<double>("System.TMLLMaxPressureDifference");
  741. if (Math.Abs(GetModulePressure(moduleName) - GetModulePressure(ModuleName.TM)) > maxPressureDifference)
  742. {
  743. reason = $"{moduleName}:{GetModulePressure(moduleName)} and TM : {GetModulePressure(ModuleName.TM)} pressure difference exceeds the max limit {maxPressureDifference}";
  744. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  745. return false;
  746. }
  747. }
  748. }
  749. switch(moduleName)
  750. {
  751. case ModuleName.LLA:
  752. return _LLATSlitDoor.SetCylinder(open, out reason);
  753. case ModuleName.LLB:
  754. return _LLBTSlitDoor.SetCylinder(open, out reason);
  755. case ModuleName.PMA:
  756. return _PMASlitDoor.SetCylinder(open, out reason);
  757. case ModuleName.PMB:
  758. return _PMBSlitDoor.SetCylinder(open, out reason);
  759. case ModuleName.PMC:
  760. return _PMCSlitDoor.SetCylinder(open, out reason);
  761. case ModuleName.PMD:
  762. return _PMDSlitDoor.SetCylinder(open, out reason);
  763. }
  764. reason = $"Invalid module {moduleName}";
  765. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  766. return false;
  767. }
  768. public bool TurnEFEMSlitDoor(ModuleName loadlock, bool open, out string reason)
  769. {
  770. //if (!CheckRobotNotExtendSensor(loadlock, open, false, out reason))
  771. // return false;
  772. if (open && !IsModuleATM(loadlock))
  773. {
  774. reason = $"{loadlock} is not ATM, can not open EFEM side slit door";
  775. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  776. return false;
  777. }
  778. switch (loadlock)
  779. {
  780. case ModuleName.LLA:
  781. return _LLAESlitDoor.SetCylinder(open, out reason);
  782. case ModuleName.LLB:
  783. return _LLBESlitDoor.SetCylinder(open, out reason);
  784. }
  785. reason = $"Invalid module {loadlock}";
  786. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  787. return false;
  788. }
  789. //public bool ControlTMPump(bool ison)
  790. //{
  791. // _TMPump.SetPumpOnOff(ison);
  792. // return true;
  793. //}
  794. public void SwitchTMPressureMode(bool isPressureMode)
  795. {
  796. if (isPressureMode==true)
  797. {
  798. _TM_PressureMode_Switch.TurnOn();
  799. }
  800. else
  801. {
  802. _TM_PressureMode_Switch.TurnOff();
  803. }
  804. }
  805. public void SwitchLLAPressureMode(bool isPressureMode)
  806. {
  807. if (isPressureMode == true)
  808. {
  809. _LLA_PressureMode_Switch.TurnOn();
  810. }
  811. else
  812. {
  813. _LLA_PressureMode_Switch.TurnOff();
  814. }
  815. }
  816. public void SwitchLLBPressureMode(bool isPressureMode)
  817. {
  818. if (isPressureMode == true)
  819. {
  820. _LLB_PressureMode_Switch.TurnOn();
  821. }
  822. else
  823. {
  824. _LLB_PressureMode_Switch.TurnOff();
  825. }
  826. }
  827. public void SetTMPressure(int pressureValue)
  828. {
  829. _presureCtrl.SetTMPressure(pressureValue);
  830. }
  831. public void SetLLAPressure(int pressureValue)
  832. {
  833. _presureCtrl.SetLLAPressure(pressureValue);
  834. }
  835. public void SetLLBPressure(int pressureValue)
  836. {
  837. _presureCtrl.SetLLBPressure(pressureValue);
  838. }
  839. public void SetTMFlow(int flowValue)
  840. {
  841. _TMMfc.SetPoint = (flowValue);
  842. }
  843. public void SetLLAFlow(int flowValue)
  844. {
  845. _LLAMfc.SetPoint = (flowValue);
  846. }
  847. public void SetLLBFlow(int flowValue)
  848. {
  849. _LLBMfc.SetPoint = (flowValue);
  850. }
  851. public bool CloseAllSlitDoor()
  852. {
  853. TurnMFSlitDoor(ModuleName.LLA, false, out _);
  854. TurnMFSlitDoor(ModuleName.LLB, false, out _);
  855. TurnMFSlitDoor(ModuleName.PMA, false, out _);
  856. TurnMFSlitDoor(ModuleName.PMB, false, out _);
  857. TurnMFSlitDoor(ModuleName.PMC, false, out _);
  858. TurnMFSlitDoor(ModuleName.PMD, false, out _);
  859. return true;
  860. }
  861. public bool TurnTMPump(bool ison)
  862. {
  863. _TMPump.SetPumpOnOff(ison);
  864. return true;
  865. }
  866. public bool TryGetLLPump(ModuleName LLname)
  867. {
  868. //Self
  869. if ((LLname == ModuleName.LLA && _llPumpingState == LLPumpState.LLAUsing) || (LLname == ModuleName.LLB && _llPumpingState == LLPumpState.LLBUsing))
  870. return true;
  871. //Idle
  872. if (LLname == ModuleName.LLA && !IsLLBFastPumpOpen && !IsLLBSoftPumpOpen && _llPumpingState == LLPumpState.Idle)
  873. {
  874. _llPumpingState = LLPumpState.LLAUsing;
  875. return true;
  876. }
  877. if (LLname == ModuleName.LLB && !IsLLAFastPumpOpen && !IsLLASoftPumpOpen && _llPumpingState == LLPumpState.Idle)
  878. {
  879. _llPumpingState = LLPumpState.LLBUsing;
  880. return true;
  881. }
  882. //LOG.Write(eEvent.WARN_DEFAULT_WARN, LLname, "无法打开,另一个泵正在用!");
  883. //locked
  884. return false;
  885. }
  886. public void ReleasePump(ModuleName Module)
  887. {
  888. //release pump (must do it by user)
  889. if ((Module == ModuleName.LLA && _llPumpingState == LLPumpState.LLAUsing) || (Module == ModuleName.LLB && _llPumpingState == LLPumpState.LLBUsing))
  890. _llPumpingState = LLPumpState.Idle;
  891. }
  892. public void HomeSlitDoor()
  893. {
  894. if (IsLLASlitDoorClosed == true)
  895. {
  896. _LLATSlitDoor.SetCylinder(false, out _);
  897. }
  898. else if(IsLLASlitDoorOpen == true)
  899. {
  900. _LLATSlitDoor.SetCylinder(true, out _);
  901. }
  902. if (IsLLBSlitDoorClosed == true)
  903. {
  904. _LLBTSlitDoor.SetCylinder(false, out _);
  905. }
  906. else if (IsLLBSlitDoorOpen == true)
  907. {
  908. _LLBTSlitDoor.SetCylinder(true, out _);
  909. }
  910. if (IsLLAESlitDoorClosed == true)
  911. {
  912. _LLAESlitDoor.SetCylinder(false, out _);
  913. }
  914. else if (IsLLAESlitDoorOpen == true)
  915. {
  916. _LLAESlitDoor.SetCylinder(true, out _);
  917. }
  918. if (IsLLBESlitDoorClosed == true)
  919. {
  920. _LLBESlitDoor.SetCylinder(false, out _);
  921. }
  922. else if (IsLLBESlitDoorOpen == true)
  923. {
  924. _LLBESlitDoor.SetCylinder(true, out _);
  925. }
  926. }
  927. }
  928. }