JetTM.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  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 Aitex.Sorter.Common;
  8. using MECF.Framework.Common.Device.Bases;
  9. using MECF.Framework.Common.Equipment;
  10. using System;
  11. using System.Collections.Generic;
  12. using Venus_Core;
  13. using Venus_RT.Modules;
  14. using Venus_RT.Modules.PMs;
  15. using Venus_RT.Devices.IODevices;
  16. using Venus_RT.Devices.EPD;
  17. using Aitex.Core.RT.DataCenter;
  18. using Aitex.Core.RT.OperationCenter;
  19. using MECF.Framework.Common.SubstrateTrackings;
  20. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.TMs;
  21. namespace Venus_RT.Devices
  22. {
  23. class JetTM : TM
  24. {
  25. private readonly IoLid _TMLid;
  26. private readonly IoLid _LLALid;
  27. private readonly IoLid _LLBLid;
  28. private readonly IoCylinder _LLATSlitDoor;
  29. private readonly IoCylinder _LLBTSlitDoor;
  30. private readonly IoCylinder _LLAESlitDoor;
  31. private readonly IoCylinder _LLBESlitDoor;
  32. private readonly IoValve _TMN2Valve;
  33. private readonly IoValve _TMSoftPumpValve;
  34. private readonly IoValve _TMFastPumpValve;
  35. private readonly IoValve _TMPurgeValve;
  36. private readonly IoValve _TMVentValve;
  37. private readonly IoValve _LLASoftPumpValve;
  38. private readonly IoValve _LLAFastPumpValve;
  39. private readonly IoValve _LLAPurgeValve;
  40. private readonly IoValve _LLAVentValve;
  41. private readonly IoValve _LLBSoftPumpValve;
  42. private readonly IoValve _LLBFastPumpValve;
  43. private readonly IoValve _LLBPurgeValve;
  44. private readonly IoValve _LLBVentValve;
  45. private readonly IoValve _WaferRelayValve;
  46. private readonly IoSensor _TMPowerOn;
  47. private readonly IoSensor _TMInSafty;
  48. private readonly IoSensor _WaferLeakSensor;
  49. private readonly IoSensor _EFEMSideDoorClosed;
  50. private readonly IoSensor _TMPCWFlowSwitch;
  51. private readonly IoSensor _LLAPCWFlowSwitch;
  52. private readonly IoSensor _LLBPCWFlowSwitch;
  53. private readonly IoSensor _TMLidClosed;
  54. private readonly IoSensor _CDAPressureSwitch;
  55. private readonly IoSensor _VaccumPressureSwitch;
  56. private readonly IoSensor _N2PressureSwitch;
  57. private readonly IoSensor _TMRobotNotExtendPMA;
  58. private readonly IoSensor _TMRobotNotExtendPMB;
  59. private readonly IoSensor _TMRobotNotExtendPMC;
  60. private readonly IoSensor _TMRobotNotExtendPMD;
  61. private readonly IoSensor _TMRobotNotExtendLLA;
  62. private readonly IoSensor _TMRobotNotExtendLLB;
  63. private readonly IoSensor _EfemRobotNotExtendLLA;
  64. private readonly IoSensor _EfemRobotNotExtendLLB;
  65. private readonly IoSensor _TMVacSwitch;
  66. private readonly IoSensor _LLAVacSwitch;
  67. private readonly IoSensor _LLBVacSwitch;
  68. private readonly IoSensor _TMATMSwitch;
  69. private readonly IoSensor _LLAATMSwitch;
  70. private readonly IoSensor _LLBATMSwitch;
  71. private readonly IoTMPressureCtrl _presureCtrl;
  72. public bool TMLidClosed => _TMLid.OFFFeedback;
  73. public bool LLALidClosed => _LLALid.OFFFeedback;
  74. public bool LLBLidClosed => _LLBLid.OFFFeedback;
  75. public bool IsLLASlitDoorClosed => _LLATSlitDoor.State == CylinderState.Close;
  76. public bool IsLLASlitDoorOpen => _LLATSlitDoor.State == CylinderState.Open;
  77. public bool IsELLASlitDoorClosed => _LLAESlitDoor.State == CylinderState.Close;
  78. public bool IsELLASlitDoorOpen => _LLAESlitDoor.State == CylinderState.Open;
  79. public bool IsLLBSlitDoorClosed => _LLBTSlitDoor.State == CylinderState.Close;
  80. public bool IsLLBSlitDoorOpen => _LLBTSlitDoor.State == CylinderState.Open;
  81. public bool IsLLBESlitDoorClosed => _LLBESlitDoor.State == CylinderState.Close;
  82. public bool IsLLBESlitDoorOpen => _LLBESlitDoor.State == CylinderState.Open;
  83. public bool IsTMVac => _TMVacSwitch.Value;
  84. public bool IsLLAVac => _LLAVacSwitch.Value;
  85. public bool IsLLBVac => _LLBVacSwitch.Value;
  86. public bool IsTMATM => _TMATMSwitch.Value;
  87. public bool IsLLAATM => _LLAATMSwitch.Value;
  88. public bool IsLLBATM => _LLBATMSwitch.Value;
  89. public bool IsTMPowerOn => _TMPowerOn.Value;
  90. public bool IsTMInSafty => _TMInSafty.Value;
  91. public bool IsLLAFastPumpOpen => _LLAFastPumpValve.Status;
  92. public bool IsLLASoftPumpOpen => _LLASoftPumpValve.Status;
  93. public bool IsLLBFastPumpOpen => _LLBFastPumpValve.Status;
  94. public bool IsLLBSoftPumpOpen => _LLBSoftPumpValve.Status;
  95. public bool IsLLAVentValveOpen => _LLAVentValve.Status;
  96. public bool IsLLAPurgeValveOpen => _LLAPurgeValve.Status;
  97. public bool IsLLBVentValveOpen => _LLBVentValve.Status;
  98. public bool IsLLBPurgeValveOpen => _LLBPurgeValve.Status;
  99. public bool IsTMVentValveOpen => _TMVentValve.Status;
  100. public bool IsTMPurgeValveOpen => _TMPurgeValve.Status;
  101. public bool IsTMFastPumpOpen => _TMFastPumpValve.Status;
  102. public bool IsTMSoftPumpOpen => _TMSoftPumpValve.Status;
  103. public bool TMRobotNotExtendToPMA => _TMRobotNotExtendPMA.Value;
  104. public bool TMRobotNotExtendToPMB => _TMRobotNotExtendPMB.Value;
  105. public bool TMRobotNotExtendToPMC => _TMRobotNotExtendPMC.Value;
  106. public bool TMRobotNotExtendToPMD => _TMRobotNotExtendPMD.Value;
  107. public bool TMRobotNotExtendToLLA => _TMRobotNotExtendLLA.Value;
  108. public bool TMRobotNotExtendToLLB => _TMRobotNotExtendLLB.Value;
  109. public bool EfemRobotNotExtendToLLA => _EfemRobotNotExtendLLA.Value;
  110. public bool EfemRobotNotExtendToLLB => _EfemRobotNotExtendLLB.Value;
  111. public double TMPressure => _presureCtrl.TMPressureGauge.Value;
  112. public double LLAPressure => _presureCtrl.LLAPressureGauge.Value;
  113. public double LLBPressure => _presureCtrl.LLBPressureGauge.Value;
  114. public double TMForelinePressure => _presureCtrl.MFForelineGauge.Value;
  115. public double LoadlockForelinePressure => _presureCtrl.LLForelineGauge.Value;
  116. public JetTM() : base("TM")
  117. {
  118. _TMLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.TMLid}");
  119. _LLALid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLALid}");
  120. _LLBLid = DEVICE.GetDevice<IoLid>($"TM.{VenusDevice.LLBLid}");
  121. _LLATSlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLATSlitDoor}");
  122. _LLBTSlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLBTSlitDoor}");
  123. _LLAESlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLAESlitDoor}");
  124. _LLBESlitDoor = DEVICE.GetDevice<IoCylinder>($"TM.{VenusDevice.LLBESlitDoor}");
  125. _TMN2Valve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMValveN2}");
  126. _TMSoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMSoftPumpValve}");
  127. _TMFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMFastPumpValve}");
  128. _TMPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMPurgeValve}");
  129. _TMVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.TMVentValve}");
  130. _LLASoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLASoftPumpValve}");
  131. _LLAFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAFastPumpValve}");
  132. _LLAPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAPurgeValve}");
  133. _LLAVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLAVentValve}");
  134. _LLBSoftPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBSoftPumpValve}");
  135. _LLBFastPumpValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBFastPumpValve}");
  136. _LLBPurgeValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBPurgeValve}");
  137. _LLBVentValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.LLBVentValve}");
  138. _WaferRelayValve = DEVICE.GetDevice<IoValve>($"TM.{VenusDevice.ValveWaterRelay}");
  139. _TMPowerOn = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPowerOn}");
  140. _TMInSafty = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMInSafty}");
  141. _WaferLeakSensor = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.WaferLeakSensor}");
  142. _EFEMSideDoorClosed = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EFEMSideDoorClosed}");
  143. _TMPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMPCWFlowSwitch}");
  144. _LLAPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAPCWFlowSwitch}");
  145. _LLBPCWFlowSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBPCWFlowSwitch}");
  146. _TMLidClosed = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMLidClosed}");
  147. _CDAPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.CDAPressureSwitch}");
  148. _VaccumPressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.VaccumPressureSwitch}");
  149. _N2PressureSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.N2PressureSwitch}");
  150. _TMRobotNotExtendPMA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMA}");
  151. _TMRobotNotExtendPMB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMB}");
  152. _TMRobotNotExtendPMC = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMC}");
  153. _TMRobotNotExtendPMD = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendPMD}");
  154. _TMRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLA}");
  155. _TMRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMRobotNotExtendLLB}");
  156. _EfemRobotNotExtendLLA = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLA}");
  157. _EfemRobotNotExtendLLB = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.EfemRobotNotExtendLLB}");
  158. _TMVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMVacSwitch}");
  159. _LLAVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAVacSwitch}");
  160. _LLBVacSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBVacSwitch}");
  161. _TMATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.TMATMSwitch}");
  162. _LLAATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLAATMSwitch}");
  163. _LLBATMSwitch = DEVICE.GetDevice<IoSensor>($"TM.{VenusDevice.LLBATMSwitch}");
  164. _presureCtrl = DEVICE.GetDevice<IoTMPressureCtrl>($"TM.{VenusDevice.TMPressureCtrl}");
  165. }
  166. public override void Monitor()
  167. {
  168. _WaferRelayValve.TurnValve(_WaferLeakSensor.Value, out string _);
  169. }
  170. public void TurnSoftPumpValve(ModuleName mod, bool bOn)
  171. {
  172. switch(mod)
  173. {
  174. case ModuleName.TM:
  175. _TMSoftPumpValve.TurnValve(bOn, out string _);
  176. break;
  177. case ModuleName.LLA:
  178. _LLASoftPumpValve.TurnValve(bOn, out string _);
  179. break;
  180. case ModuleName.LLB:
  181. _LLBSoftPumpValve.TurnValve(bOn, out string _);
  182. break;
  183. }
  184. }
  185. public void TurnFastPumpValve(ModuleName mod, bool bOn)
  186. {
  187. switch(mod)
  188. {
  189. case ModuleName.TM:
  190. _TMFastPumpValve.TurnValve(bOn, out string _);
  191. break;
  192. case ModuleName.LLA:
  193. _LLAFastPumpValve.TurnValve(bOn, out string _);
  194. break;
  195. case ModuleName.LLB:
  196. _LLBFastPumpValve.TurnValve(bOn, out string _);
  197. break;
  198. }
  199. }
  200. public void TurnVentValve(ModuleName mod, bool bOn)
  201. {
  202. switch(mod)
  203. {
  204. case ModuleName.TM:
  205. _TMVentValve.TurnValve(bOn, out string _);
  206. break;
  207. case ModuleName.LLA:
  208. _LLAVentValve.TurnValve(bOn, out string _);
  209. break;
  210. case ModuleName.LLB:
  211. _LLBVentValve.TurnValve(bOn, out string _);
  212. break;
  213. }
  214. }
  215. public void TurnPurgeValve(ModuleName mod, bool bOn)
  216. {
  217. switch(mod)
  218. {
  219. case ModuleName.TM:
  220. _TMPurgeValve.TurnValve(bOn, out string _);
  221. break;
  222. case ModuleName.LLA:
  223. _LLAPurgeValve.TurnValve(bOn, out string _);
  224. break;
  225. case ModuleName.LLB:
  226. _LLBPurgeValve.TurnValve(bOn, out string _);
  227. break;
  228. }
  229. }
  230. public void TurnN2Valve(bool bOn)
  231. {
  232. _TMN2Valve.TurnValve(bOn, out string _);
  233. }
  234. public void CloseModuleAllValves(ModuleName mod)
  235. {
  236. TurnFastPumpValve(mod, false);
  237. TurnSoftPumpValve(mod, false);
  238. TurnVentValve(mod, false);
  239. TurnPurgeValve(mod, false);
  240. if (mod == ModuleName.TM)
  241. TurnN2Valve(false);
  242. }
  243. public double GetModulePressure(ModuleName mod)
  244. {
  245. switch (mod)
  246. {
  247. case ModuleName.TM:
  248. return TMPressure;
  249. case ModuleName.LLA:
  250. return LLAPressure;
  251. case ModuleName.LLB:
  252. return LLBPressure;
  253. }
  254. return 0;
  255. }
  256. public bool IsModuleATM(ModuleName mod)
  257. {
  258. switch (mod)
  259. {
  260. case ModuleName.TM:
  261. return IsTMATM;
  262. case ModuleName.LLA:
  263. return IsLLAATM;
  264. case ModuleName.LLB:
  265. return IsLLBATM;
  266. }
  267. return false;
  268. }
  269. public bool IsModuleVaccum(ModuleName mod)
  270. {
  271. switch (mod)
  272. {
  273. case ModuleName.TM:
  274. return IsTMVac;
  275. case ModuleName.LLA:
  276. return IsLLAVac;
  277. case ModuleName.LLB:
  278. return IsLLBVac;
  279. }
  280. return false;
  281. }
  282. public bool CheckLidClosed(ModuleName mod)
  283. {
  284. switch (mod)
  285. {
  286. case ModuleName.TM:
  287. if(!TMLidClosed)
  288. {
  289. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Lid not closed");
  290. return false;
  291. }
  292. break;
  293. case ModuleName.LLA:
  294. if(!LLALidClosed)
  295. {
  296. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Lid not closed");
  297. return false;
  298. }
  299. break;
  300. case ModuleName.LLB:
  301. if (!LLBLidClosed)
  302. {
  303. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Lid not closed");
  304. return false;
  305. }
  306. break;
  307. }
  308. return true;
  309. }
  310. public bool CheckVentValveClosed(ModuleName mod)
  311. {
  312. switch (mod)
  313. {
  314. case ModuleName.TM:
  315. if (IsTMVentValveOpen)
  316. {
  317. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Vent Valve not closed");
  318. return false;
  319. }
  320. break;
  321. case ModuleName.LLA:
  322. if (IsLLAVentValveOpen)
  323. {
  324. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Vent Valve not closed");
  325. return false;
  326. }
  327. break;
  328. case ModuleName.LLB:
  329. if (IsLLBVentValveOpen)
  330. {
  331. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Vent Valve not closed");
  332. return false;
  333. }
  334. break;
  335. }
  336. return true;
  337. }
  338. public bool CheckPurgeValveClosed(ModuleName mod)
  339. {
  340. switch (mod)
  341. {
  342. case ModuleName.TM:
  343. if (IsTMPurgeValveOpen)
  344. {
  345. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Purge Valve not closed");
  346. return false;
  347. }
  348. break;
  349. case ModuleName.LLA:
  350. if (IsLLAPurgeValveOpen)
  351. {
  352. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Purge Valve not closed");
  353. return false;
  354. }
  355. break;
  356. case ModuleName.LLB:
  357. if (IsLLBPurgeValveOpen)
  358. {
  359. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Purge Valve not closed");
  360. return false;
  361. }
  362. break;
  363. }
  364. return true;
  365. }
  366. public bool CheckPumpValveClosed(ModuleName mod)
  367. {
  368. switch (mod)
  369. {
  370. case ModuleName.TM:
  371. if (IsTMFastPumpOpen)
  372. {
  373. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Fast Pump Valve not closed");
  374. return false;
  375. }
  376. else if(IsTMSoftPumpOpen)
  377. {
  378. LOG.Write(eEvent.ERR_TM, ModuleName.TM, "TM Soft Pump Valve not closed");
  379. return false;
  380. }
  381. break;
  382. case ModuleName.LLA:
  383. if (IsLLAFastPumpOpen)
  384. {
  385. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Fast Pump Valve not closed");
  386. return false;
  387. }
  388. else if(IsLLASoftPumpOpen)
  389. {
  390. LOG.Write(eEvent.ERR_TM, ModuleName.LLA, "LLA Soft Pump Valve not closed");
  391. return false;
  392. }
  393. break;
  394. case ModuleName.LLB:
  395. if (IsLLBFastPumpOpen)
  396. {
  397. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Fast Pump Valve not closed");
  398. return false;
  399. }
  400. else if(IsLLBSoftPumpOpen)
  401. {
  402. LOG.Write(eEvent.ERR_TM, ModuleName.LLB, "LLB Soft Pump Valve not closed");
  403. return false;
  404. }
  405. break;
  406. }
  407. return true;
  408. }
  409. public bool TurnMFSlitDoor(ModuleName loadlock, bool open, out string reason)
  410. {
  411. if (open)
  412. {
  413. bool _isATMMode = SC.GetValue<bool>("System.IsATMMode");
  414. if (_isATMMode)
  415. {
  416. if (!IsTMATM)
  417. {
  418. reason = $"TM is not ATM, can not open slit door";
  419. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  420. return false;
  421. }
  422. if (!IsModuleATM(loadlock))
  423. {
  424. reason = $"{loadlock} is not ATM, can not open slit door";
  425. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  426. return false;
  427. }
  428. }
  429. else
  430. {
  431. double maxPressureDifference = SC.GetValue<double>("System.TMLLMaxPressureDifference");
  432. if (Math.Abs(GetModulePressure(loadlock) - GetModulePressure(ModuleName.TM)) > maxPressureDifference)
  433. {
  434. reason = $"{loadlock} and TM pressure difference exceeds the max limit {maxPressureDifference}";
  435. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  436. return false;
  437. }
  438. }
  439. }
  440. switch(loadlock)
  441. {
  442. case ModuleName.LLA:
  443. return _LLATSlitDoor.SetCylinder(open, out reason);
  444. case ModuleName.LLB:
  445. return _LLBTSlitDoor.SetCylinder(open, out reason);
  446. }
  447. reason = $"Invalid module {loadlock}";
  448. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  449. return false;
  450. }
  451. public bool TurnEFEMSlitDoor(ModuleName loadlock, bool open, out string reason)
  452. {
  453. if(open && !IsModuleATM(loadlock))
  454. {
  455. reason = $"{loadlock} is not ATM, can not open EFEM side slit door";
  456. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  457. return false;
  458. }
  459. switch (loadlock)
  460. {
  461. case ModuleName.LLA:
  462. return _LLAESlitDoor.SetCylinder(open, out reason);
  463. case ModuleName.LLB:
  464. return _LLBESlitDoor.SetCylinder(open, out reason);
  465. }
  466. reason = $"Invalid module {loadlock}";
  467. LOG.Write(eEvent.ERR_DEVICE_INFO, Module, reason);
  468. return false;
  469. }
  470. }
  471. }