JetVenusSEPM.cs 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120
  1. using Aitex.Core.Common.DeviceData;
  2. using Aitex.Core.RT.Device;
  3. using Aitex.Core.RT.Device.Unit;
  4. using Aitex.Core.RT.Log;
  5. using Aitex.Core.RT.OperationCenter;
  6. using Aitex.Core.RT.SCCore;
  7. using Aitex.Core.UI.Control;
  8. using Aitex.Core.Util;
  9. using MECF.Framework.Common.Device.Bases;
  10. using MECF.Framework.Common.Equipment;
  11. using MECF.Framework.Common.SubstrateTrackings;
  12. using System;
  13. using System.Collections.Generic;
  14. using System.Linq;
  15. using System.Text;
  16. using System.Threading.Tasks;
  17. using Venus_Core;
  18. using Venus_RT.Devices.IODevices;
  19. using Venus_RT.Modules;
  20. using IoMfc = Venus_RT.Devices.IODevices.IoMfc;
  21. namespace Venus_RT.Devices
  22. {
  23. class JetVenusSEPM : JetPMBase
  24. {
  25. #region io变量定义
  26. private readonly IoLid _Lid;
  27. //private readonly IoCylinder _slitDoor;
  28. private readonly IoCylinder _LiftPin;
  29. private readonly IoValve _PVN21Valve;
  30. private readonly IoValve _PVN22Valve;
  31. private readonly IoValve _PV11Valve;
  32. private readonly IoValve _PV12Valve;
  33. private readonly IoValve _PV21Valve;
  34. private readonly IoValve _PV22Valve;
  35. private readonly IoValve _PV31Valve;
  36. private readonly IoValve _PV32Valve;
  37. private readonly IoValve _PV41Valve;
  38. private readonly IoValve _PV42Valve;
  39. private readonly IoValve _PV51Valve;//新增
  40. private readonly IoValve _PV52Valve;//新增
  41. private readonly IoValve _PV61Valve;//新增
  42. private readonly IoValve _PV62Valve;//新增
  43. private readonly IoValve _PV71Valve;//新增
  44. private readonly IoValve _PV72Valve;//新增
  45. private readonly IoValve _PV81Valve;//新增
  46. private readonly IoValve _PV82Valve;//新增
  47. private readonly IoValve _PV91Valve;//新增
  48. private readonly IoValve _PV92Valve;//新增
  49. private readonly IoValve _PVA1Valve;//新增
  50. private readonly IoValve _PVA2Valve;//新增
  51. private readonly IoValve _PVB1Valve;//新增
  52. private readonly IoValve _PVB2Valve;//新增
  53. private readonly IoValve _PVC1Valve;//新增
  54. private readonly IoValve _PVC2Valve;//新增
  55. private readonly IoValve _N2Valve;
  56. private readonly IoValve _Mfc1Valve;
  57. private readonly IoValve _Mfc2Valve;
  58. private readonly IoValve _Mfc3Valve;
  59. private readonly IoValve _Mfc4Valve;
  60. private readonly IoValve _Mfc5Valve;
  61. private readonly IoValve _Mfc6Valve;
  62. private readonly IoValve _Mfc7Valve;
  63. private readonly IoValve _Mfc8Valve;
  64. private readonly IoValve _Mfc9Valve; //新增
  65. private readonly IoValve _Mfc10Valve;//新增
  66. private readonly IoValve _Mfc11Valve;//新增 空的
  67. private readonly IoValve _Mfc12Valve;//新增
  68. private readonly IoValve _PVHe1Valve;
  69. private readonly IoValve _PVHe2Valve;
  70. private readonly IoValve _GasFinalValve;
  71. private readonly IoValve _SoftPumpValve;
  72. private readonly IoValve _FastPumpValve;
  73. private readonly IoValve _TurboPumpPumpingValve;
  74. private readonly IoValve _TurboPumpPurgeValve;
  75. private readonly IoValve _GuageValve;
  76. private readonly IoValve _PVHe3Valve;
  77. private readonly IoValve _HeISOValve;
  78. //private readonly IoValve _MainPurgeValve;//新增
  79. private readonly IoSensor _ATM_sw;
  80. private readonly IoSensor _CDAPressure;
  81. private readonly IoSensor _N2Pressure_sw;
  82. private readonly IoSensor _VAC_sw;
  83. private readonly IoSensor _WLK_sw;
  84. private readonly IoSensor _Water_Flow;
  85. private readonly IoSensor _RFG_Interlock;
  86. private readonly IoSensor _PM_Lid_Closed;
  87. private readonly IoSensor _Source_RF_Fan;
  88. private readonly IoSensor _TurboPumpInterlock;
  89. private readonly IoSensor _GasBoxDoor;
  90. private readonly IoSensor _GasBoxPressure;
  91. private readonly PumpBase _MainPump;
  92. private readonly ESC5HighVoltage _ESCHV;
  93. private readonly AdixenTurboPump _TurboPump;
  94. private readonly PendulumValve _pendulumValve;
  95. private readonly ChillerBase _Chiller;
  96. private readonly RfPowerBase _Generator;//srf=>AdTecGenerator
  97. private readonly RfPowerBase _GeneratorBias;//brf=>CometRF
  98. private readonly RfMatchBase _Match;
  99. private readonly RfMatchBase _BiasMatch;
  100. private readonly IoHeater _ForelineTC;
  101. private readonly IoHeater _WallTC;
  102. private readonly IoPressureControl _pressureController;
  103. private readonly IoGasStick[] _gasLines;
  104. private readonly IoGasStick _gasLineN2;
  105. private readonly IoBacksideHe _backsideHe;
  106. //private readonly IoMfc _heMfc;
  107. private readonly double _foreline_interlock_pressure = 750;
  108. private readonly Dictionary<ValveType, IoValve> Valve2IO;
  109. #endregion
  110. #region 构造函数
  111. public JetVenusSEPM(ModuleName moduleName) : base(moduleName)
  112. {
  113. Module = moduleName;
  114. _Lid = DEVICE.GetDevice<IoLid>($"{Module}.{VenusDevice.Lid}");
  115. _LiftPin = DEVICE.GetDevice<IoCylinder>($"{Module}.{VenusDevice.LiftPin}");
  116. _PVN21Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVN21}");
  117. _PVN22Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVN22}");
  118. _PV11Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV11}");
  119. _PV12Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV12}");
  120. _PV21Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV21}");
  121. _PV22Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV22}");
  122. _PV31Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV31}");
  123. _PV32Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV32}");
  124. _PV41Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV41}");
  125. _PV42Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV42}");
  126. _PV51Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV51}");
  127. _PV52Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV52}");
  128. _PV61Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV61}");
  129. _PV62Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV62}");
  130. _PV71Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV71}");
  131. _PV72Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV72}");
  132. _PV81Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV81}");
  133. _PV82Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV82}");
  134. _PV91Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV91}");
  135. _PV92Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePV92}");
  136. _PVA1Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVA1}");
  137. _PVA2Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVA2}");
  138. _PVB1Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVB1}");
  139. _PVB2Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVB2}");
  140. _PVC1Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVC1}");
  141. _PVC2Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVC2}");
  142. _N2Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveN2}");
  143. _Mfc1Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc1}");
  144. _Mfc2Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc2}");
  145. _Mfc3Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc3}");
  146. _Mfc4Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc4}");
  147. _Mfc5Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc5}");
  148. _Mfc6Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc6}");
  149. _Mfc7Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc7}");
  150. _Mfc8Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc8}");
  151. _Mfc9Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc9}");
  152. _Mfc10Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc10}");
  153. _Mfc11Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc11}");
  154. _Mfc12Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveMfc12}");
  155. _PVHe1Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVHe1}");
  156. _PVHe2Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVHe2}");
  157. _GasFinalValve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveGasFinal}");
  158. _SoftPumpValve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveSoftPump}");
  159. _FastPumpValve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveFastPump}");
  160. _TurboPumpPumpingValve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveTurboPumpPumping}");
  161. _TurboPumpPurgeValve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveTurboPumpPurge}");
  162. _GuageValve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveGuage}");
  163. _PVHe3Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValvePVHe3}");
  164. _HeISOValve = DEVICE.GetDevice<IoValve>($"{Module}.{VenusDevice.ValveHeISO}");
  165. _ATM_sw = DEVICE.GetDevice<IoSensor>($"{Module}.SensorATMSwitch");
  166. _N2Pressure_sw = DEVICE.GetDevice<IoSensor>($"{Module}.N2PressureOk");
  167. _VAC_sw = DEVICE.GetDevice<IoSensor>($"{Module}.SensorVacSwitch");
  168. _Water_Flow = DEVICE.GetDevice<IoSensor>($"{Module}.SensorWaterFlowOk");
  169. _WLK_sw = DEVICE.GetDevice<IoSensor>($"{Module}.SensorWaterLeakOk");
  170. _CDAPressure = DEVICE.GetDevice<IoSensor>($"{Module}.SensorCDAPressureOk");
  171. _RFG_Interlock = DEVICE.GetDevice<IoSensor>($"{Module}.GeneratorInterlock");
  172. _PM_Lid_Closed = DEVICE.GetDevice<IoSensor>($"{Module}.SensorPMLidClosed");
  173. _Source_RF_Fan = DEVICE.GetDevice<IoSensor>($"{Module}.SensorSourceRFFan");
  174. _TurboPumpInterlock = DEVICE.GetDevice<IoSensor>($"{Module}.TurboPumpInterlock");
  175. _GasBoxDoor = DEVICE.GetDevice<IoSensor>($"{Module}.GasBoxDoorSW");
  176. _GasBoxPressure = DEVICE.GetDevice<IoSensor>($"{Module}.GasBoxPressureSW");
  177. _ForelineTC = DEVICE.GetDevice<IoHeater>($"{Module}.ForelineHeater");
  178. _WallTC = DEVICE.GetDevice<IoHeater>($"{Module}.WallHeater");
  179. _CDAPressure = DEVICE.GetDevice<IoSensor>($"{Module}.SensorCDAPressureOk");
  180. _pressureController = DEVICE.GetDevice<IoPressureControl>($"{Module}.{VenusDevice.PressureControl}");
  181. _gasLines = new IoGasStick[12];
  182. for (int index = 0; index < 12; index++)
  183. {
  184. _gasLines[index] = DEVICE.GetDevice<IoGasStick>($"{Module}.GasStick{index + 1}");
  185. }
  186. _gasLineN2 = DEVICE.GetDevice<IoGasStick>($"{Module}.GasStickN2");
  187. _backsideHe = DEVICE.GetDevice<IoBacksideHe>($"{Module}.BacksideHelium");
  188. _MainPump = DEVICE.GetDevice<PumpBase>($"{Module}.{VenusDevice.MainPump}");
  189. // RS232 Dry pump, SKY
  190. if (SC.GetValue<int>($"{Module}.DryPump.CommunicationType") == (int)CommunicationType.RS232)
  191. {
  192. if (SC.GetValue<int>($"{Module}.DryPump.MFG") == (int)DryPumpMFG.SKY)
  193. {
  194. _MainPump = DEVICE.GetDevice<SkyPump>($"{Module}.{VenusDevice.MainPump}");
  195. }
  196. else if (SC.GetValue<int>($"{Module}.DryPump.MFG") == (int)DryPumpMFG.Edwards)
  197. {
  198. _MainPump = DEVICE.GetDevice<EdwardsPump>($"{Module}.{VenusDevice.MainPump}");
  199. }
  200. }
  201. _ESCHV = DEVICE.GetDevice<ESC5HighVoltage>($"{Module}.{VenusDevice.ESCHV}");
  202. _TurboPump = DEVICE.GetDevice<AdixenTurboPump>($"{Module}.{VenusDevice.TurboPump}");
  203. _pendulumValve = DEVICE.GetDevice<PendulumValve>($"{Module}.{VenusDevice.PendulumValve}");
  204. if (SC.GetValue<bool>($"{Module}.Chiller.EnableChiller") &&
  205. SC.GetValue<int>($"{Module}.Chiller.CommunicationType") == (int)CommunicationType.RS232)
  206. {
  207. if (SC.GetValue<int>($"{Module}.Chiller.MFG") == (int)ChillerMFG.SMC)
  208. {
  209. _Chiller = DEVICE.GetDevice<SMCChiller>($"{Module}.{VenusDevice.Chiller}");
  210. }
  211. else if (SC.GetValue<int>($"{Module}.Chiller.MFG") == (int)ChillerMFG.AIRSYS)
  212. {
  213. _Chiller = DEVICE.GetDevice<AIRSYSChiller>($"{Module}.{VenusDevice.Chiller}");
  214. }
  215. }
  216. // RS232 AdTec Generator
  217. if (SC.GetValue<int>($"{Module}.Rf.CommunicationType") == (int)CommunicationType.RS232 &&
  218. SC.GetValue<int>($"{Module}.Rf.MFG") == (int)GeneratorMFG.AdTec)
  219. {
  220. _Generator = DEVICE.GetDevice<AdTecGenerator>($"{Module}.{VenusDevice.Rf}");
  221. }
  222. // Ethernet Comet Generator Bias
  223. if (SC.GetValue<bool>($"{Module}.BiasRf.EnableBiasRF"))
  224. {
  225. if (SC.GetValue<int>($"{Module}.BiasRf.CommunicationType") == (int)CommunicationType.Ethernet &&
  226. SC.GetValue<int>($"{Module}.BiasRf.MFG") == (int)GeneratorMFG.Comet)
  227. {
  228. _GeneratorBias = DEVICE.GetDevice<CometRF>($"{Module}.{VenusDevice.BiasRf}");
  229. }
  230. else if (SC.GetValue<int>($"{Module}.BiasRf.MFG") == (int)GeneratorMFG.AdTec)
  231. {
  232. _GeneratorBias = DEVICE.GetDevice<AdTecGenerator>($"{Module}.{VenusDevice.BiasRf}");
  233. }
  234. }
  235. // RS232 AdTec match
  236. if (SC.GetValue<int>($"{Module}.Match.CommunicationType") == (int)CommunicationType.RS232 &&
  237. SC.GetValue<int>($"{Module}.Match.MFG") == (int)MatchMFG.AdTec)
  238. {
  239. _Match = DEVICE.GetDevice<AdTecMatch>($"{Module}.{VenusDevice.Match}");
  240. }
  241. // Bias Match
  242. if (SC.GetValue<bool>($"{Module}.BiasMatch.EnableBiasMatch") &&
  243. SC.GetValue<int>($"{Module}.BiasMatch.CommunicationType") == (int)CommunicationType.RS232 &&
  244. SC.GetValue<int>($"{Module}.BiasMatch.MFG") == (int)MatchMFG.AdTec)
  245. {
  246. _BiasMatch = DEVICE.GetDevice<AdTecMatch>($"{Module}.{VenusDevice.BiasMatch}");
  247. }
  248. _foreline_interlock_pressure = SC.GetValue<double>($"{Module}.ForelineInterlockPressure");
  249. Valve2IO = new Dictionary<ValveType, IoValve>()
  250. {
  251. { ValveType.PVN21, _PVN21Valve },
  252. { ValveType.PVN22, _PVN22Valve },
  253. { ValveType.PV11, _PV11Valve },
  254. { ValveType.PV12, _PV12Valve },
  255. { ValveType.PV21, _PV21Valve },
  256. { ValveType.PV22, _PV22Valve },
  257. { ValveType.PV31, _PV31Valve },
  258. { ValveType.PV32, _PV32Valve },
  259. { ValveType.PV41, _PV41Valve },
  260. { ValveType.PV42, _PV42Valve },
  261. { ValveType.PV51, _PV51Valve },
  262. { ValveType.PV52, _PV52Valve },
  263. { ValveType.PV61, _PV61Valve },
  264. { ValveType.PV62, _PV62Valve },
  265. { ValveType.PV71, _PV71Valve },
  266. { ValveType.PV72, _PV72Valve },
  267. { ValveType.PV81, _PV81Valve },
  268. { ValveType.PV82, _PV82Valve },
  269. { ValveType.PV91, _PV91Valve },
  270. { ValveType.PV92, _PV92Valve },
  271. { ValveType.PVA1, _PVA1Valve },
  272. { ValveType.PVA2, _PVA2Valve },
  273. { ValveType.PVB1, _PVB1Valve },
  274. { ValveType.PVB2, _PVB2Valve },
  275. { ValveType.PVC1, _PVC1Valve },
  276. { ValveType.PVC2, _PVC2Valve },
  277. { ValveType.N2, _N2Valve },
  278. { ValveType.Mfc1, _Mfc1Valve },
  279. { ValveType.Mfc2, _Mfc2Valve },
  280. { ValveType.Mfc3, _Mfc3Valve },
  281. { ValveType.Mfc4, _Mfc4Valve },
  282. { ValveType.Mfc5, _Mfc5Valve },
  283. { ValveType.Mfc6, _Mfc6Valve },
  284. { ValveType.Mfc7, _Mfc7Valve },
  285. { ValveType.Mfc8, _Mfc8Valve },
  286. { ValveType.Mfc9, _Mfc9Valve },
  287. { ValveType.Mfc10, _Mfc10Valve },
  288. { ValveType.Mfc11, _Mfc11Valve },
  289. { ValveType.Mfc12, _Mfc12Valve },
  290. { ValveType.PVHe1, _PVHe1Valve },
  291. { ValveType.PVHe3, _PVHe3Valve },
  292. { ValveType.PVHe2, _PVHe2Valve },
  293. { ValveType.GasFinal, _GasFinalValve},
  294. { ValveType.SoftPump, _SoftPumpValve},
  295. { ValveType.FastPump, _FastPumpValve},
  296. { ValveType.TurboPumpPumping, _TurboPumpPumpingValve},
  297. { ValveType.TurboPumpPurge, _TurboPumpPurgeValve},
  298. { ValveType.Guage, _GuageValve},
  299. { ValveType.HeISO, _HeISOValve},
  300. //{ ValveType.MainPurge,_MainPurgeValve}
  301. };
  302. }
  303. #endregion
  304. #region 暴露变量
  305. public override bool IsLidClosed => _Lid.OFFFeedback;
  306. public override bool IsSlitDoorClosed
  307. {
  308. get
  309. {
  310. if (Singleton<RouteManager>.Instance.seTM!=null)
  311. {
  312. switch (Module)
  313. {
  314. case ModuleName.PMA:
  315. return Singleton<RouteManager>.Instance.seTM.IsPMASlitDoorClosed;
  316. case ModuleName.PMB:
  317. return Singleton<RouteManager>.Instance.seTM.IsPMBSlitDoorClosed;
  318. case ModuleName.PMC:
  319. return Singleton<RouteManager>.Instance.seTM.IsPMCSlitDoorClosed;
  320. default:
  321. return false;
  322. }
  323. }
  324. else
  325. return false;
  326. }
  327. }
  328. public override bool IsPumpRunning => _MainPump.IsRunning;
  329. public override bool IsTurboPumpRunning => _TurboPump.IsRunning;
  330. public override bool IsTurboPumpAtSpeed => _TurboPump.AtSpeed;
  331. public override float TurboPumpSpeed => _TurboPump.Speed;
  332. public override bool HasPumpError => _MainPump.IsError || !_MainPump.IsRunning;
  333. public override bool HasTurboPumpError => _TurboPump.IsError || !_TurboPump.IsRunning;
  334. public override bool IsCDA_OK => _CDAPressure.Value;
  335. public override bool IsFastPumpOpened => _FastPumpValve.Status;
  336. public override bool IsSoftPumpOpened => _SoftPumpValve.Status;
  337. public override bool IsMfc1ValveOpened => _Mfc1Valve.Status;
  338. public override bool IsMfc2ValveOpened => _Mfc2Valve.Status;
  339. public override bool IsMfc3ValveOpened => _Mfc3Valve.Status;
  340. public override bool IsMfc4ValveOpened => _Mfc4Valve.Status;
  341. public override bool IsMfc5ValveOpened => _Mfc5Valve.Status;
  342. public override bool IsMfc6ValveOpened => _Mfc6Valve.Status;
  343. public override bool IsMfc7ValveOpened => _Mfc7Valve.Status;
  344. public override bool IsMfc8ValveOpened => _Mfc8Valve.Status;
  345. public bool IsMfc9ValveOpened => _Mfc9Valve.Status;
  346. public bool IsMfc10ValveOpened => _Mfc10Valve.Status;
  347. public bool IsMfc11ValveOpened => _Mfc11Valve.Status;
  348. public bool IsMfc12ValveOpened => _Mfc12Valve.Status;
  349. public override bool IsGuageValveOpened => _GuageValve.Status;
  350. public override bool IsATM => _ATM_sw.Value;
  351. public override bool PVN22ValveIsOpen => _PVN22Valve.Status;
  352. public override bool LiftPinIsDown => _LiftPin.OFFFeedback;
  353. public override bool LiftPinIsUp => _LiftPin.ONFeedback;
  354. public override bool IsVAC => _VAC_sw.Value;
  355. //public override bool IsWaterFlowOk => _Water_Flow.Value;
  356. public override bool IsWaterFlowOk => false;
  357. public override bool IsWLK => _WLK_sw.Value;
  358. public override bool IsRFGInterlockOn => _RFG_Interlock.Value;
  359. public override bool PMLidClosed => _PM_Lid_Closed.Value;
  360. public override bool TurboPumpInterlock => _TurboPumpInterlock.Value;
  361. public override bool SourceRFFanInterlock => _Source_RF_Fan.Value;
  362. public override bool SlitDoorClosed
  363. {
  364. get
  365. {
  366. switch (Module)
  367. {
  368. case ModuleName.PMA:
  369. return Singleton<RouteManager>.Instance.seTM.IsPMASlitDoorClosed;
  370. case ModuleName.PMB:
  371. return Singleton<RouteManager>.Instance.seTM.IsPMBSlitDoorClosed;
  372. case ModuleName.PMC:
  373. return Singleton<RouteManager>.Instance.seTM.IsPMCSlitDoorClosed;
  374. default:
  375. return true;
  376. }
  377. }
  378. }
  379. public override double ProcessLowPressure => _pressureController.ProcessLow.Value;
  380. public override double ProcessHighPressure => _pressureController.ProcessHigh.Value;
  381. public override double ProcessPressure => _pressureController.ProcessGauge.Value;
  382. public override double ChamberPressure => _pressureController.PressureGauge.Value;
  383. public override double ForelinePressure => _pressureController.ForelineGauge.Value;
  384. public override double TargetPressure => _pressureController.TargetPressure;
  385. public override double ESCHePressure => _pressureController.ESCHeGauge.Value;
  386. public override int ESCOutputVoltage => _ESCHV.OutputVoltage;
  387. public override double ESCPositiveOutputCurrent => _ESCHV.PositiveOutputCurrent;
  388. public override double ESCNegativeOutputCurrent => _ESCHV.NegativeOutputCurrent;
  389. public override bool IsHVOn => _ESCHV.IsOn;
  390. public override float CoolantInletTempFB => _Chiller.CoolantInletTcFeedback;
  391. public override float CoolantOutletTempFB => _Chiller.CoolantOutletTcFeedback;
  392. public override bool ChillerIsRunning => _Chiller.IsRunning;
  393. public override float ReflectPower => _Generator.ReflectPower;
  394. public override float BiasReflectPower => _GeneratorBias.ReflectPower;
  395. public override bool BackSideHeOutOfRange => _backsideHe.OutOfRange;
  396. public override MovementPosition LiftPinPosition
  397. {
  398. get
  399. {
  400. MovementPosition pos = MovementPosition.Unknown;
  401. if (_LiftPin.ONFeedback && !_LiftPin.OFFFeedback)
  402. {
  403. pos = MovementPosition.Up;
  404. }
  405. else if (!_LiftPin.ONFeedback && _LiftPin.OFFFeedback)
  406. {
  407. pos = MovementPosition.Down;
  408. }
  409. return pos;
  410. }
  411. }
  412. public override double TotalGasSetpoint
  413. {
  414. get
  415. {
  416. double sum = 0;
  417. foreach (var gas in _gasLines)
  418. {
  419. sum += gas.FlowSP;
  420. }
  421. return sum;
  422. }
  423. }
  424. public override bool HasGasOutOfRange
  425. {
  426. get
  427. {
  428. foreach (var gas in _gasLines)
  429. {
  430. if (!gas.IsOutOfRange)
  431. return false;
  432. }
  433. return true;
  434. }
  435. }
  436. public override bool IsLidLoadlockClosed
  437. {
  438. get
  439. {
  440. //LOG.Write(eEvent.ERR_PM,Module,"VenusSE PM is not exist Loadlock!");
  441. return false;
  442. }
  443. }
  444. public override bool IsATMLoadlock
  445. {
  446. get
  447. {
  448. //LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist Loadlock!");
  449. return false;
  450. }
  451. }
  452. public override bool IsVACLoadLock
  453. {
  454. get
  455. {
  456. //LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist Loadlock!");
  457. return false;
  458. }
  459. }
  460. public override bool IsLoadlockArmRetract
  461. {
  462. get
  463. {
  464. //LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist Loadlock!");
  465. return false;
  466. }
  467. }
  468. public override bool IsLoadlockArmExtend
  469. {
  470. get
  471. {
  472. //LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist Loadlock!");
  473. return false;
  474. }
  475. }
  476. public override bool LoadlockArmRetract
  477. {
  478. get
  479. {
  480. //LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist Loadlock!");
  481. return false;
  482. }
  483. }
  484. public override bool LoadlockArmExtend
  485. {
  486. get
  487. {
  488. //LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist Loadlock!");
  489. return false;
  490. }
  491. }
  492. public override float RFMatchC1 => _Match!=null? _Match.TunePosition1 : 0;
  493. public override float RFMatchC2 => _Match != null ? _Match.TunePosition1 : 0;
  494. public override float BiasRFMatchC1 => _BiasMatch != null ? _BiasMatch.TunePosition1 : 0;
  495. public override float BiasRFMatchC2 => _BiasMatch != null ? _BiasMatch.TunePosition1 : 0;
  496. public override double LoadlockPressure
  497. {
  498. get
  499. {
  500. //LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist Loadlock!");
  501. return -100;
  502. }
  503. }
  504. public override void BuzzerBlinking(double time)
  505. {
  506. LOG.Write(eEvent.ERR_PM, Module, "VenusSE PM is not exist SignalTower!");
  507. }
  508. #endregion
  509. #region 公共方法
  510. public override bool CheckAtm()
  511. {
  512. //检查是否是ATM模式
  513. return _ATM_sw.Value && ChamberPressure > 700000;
  514. }
  515. public override bool CheckChillerStatus()
  516. {
  517. return _Chiller != null /*&& _Chiller.IsRunning*/ && !_Chiller.IsError;
  518. }
  519. public override bool CheckGeneratorAndHVInterlock(VenusDevice device)
  520. {
  521. eEvent evt = device == VenusDevice.Rf ? eEvent.ERR_RF : eEvent.ERR_ESC_HV;
  522. if (!PMLidClosed)
  523. {
  524. LOG.Write(evt, Module, $"Cannot Power ON {device} as PM Lid is Open.");
  525. return false;
  526. }
  527. if (!IsVAC)
  528. {
  529. LOG.Write(evt, Module, $"Cannot Power ON {device} as PM is not Vacuum.");
  530. return false;
  531. }
  532. //if (!IsWaterFlowOk)
  533. //{
  534. // LOG.Write(evt, Module, $"Cannot Power ON {device} as Water Flow is OFF.");
  535. // return false;
  536. //}
  537. if (!IsRFGInterlockOn)
  538. {
  539. LOG.Write(evt, Module, $"Cannot Power ON {device} as Generator Interlock is OFF.");
  540. return false;
  541. }
  542. if (!SourceRFFanInterlock)
  543. {
  544. LOG.Write(evt, Module, $"Cannot Power ON {device} as Source RF Fan is OFF.");
  545. return false;
  546. }
  547. if (!SlitDoorClosed)
  548. {
  549. LOG.Write(evt, Module, $"Cannot Power ON {device} as Slit Door is open.");
  550. return false;
  551. }
  552. if ((device == VenusDevice.ESCHV || device == VenusDevice.BiasRf) && WaferManager.Instance.CheckNoWafer(Module, 0))
  553. {
  554. LOG.Write(evt, Module, $"Cannot Power ON {device} as {Module} has no wafer");
  555. return false;
  556. }
  557. return true;
  558. }
  559. public override void CheckIdleInterlock()
  560. {
  561. if (ForelinePressure > _foreline_interlock_pressure)
  562. {
  563. if (_TurboPumpPumpingValve.SetPoint || _TurboPumpPurgeValve.SetPoint || _pendulumValve.IsOpen)
  564. {
  565. _pendulumValve.TurnValve(false);
  566. _TurboPumpPurgeValve.TurnValve(false, out _);
  567. _TurboPumpPumpingValve.TurnValve(false, out _);
  568. LOG.Write(eEvent.WARN_DEVICE_INFO, Module, $"Foreline pressure:{ForelinePressure} exceed {_foreline_interlock_pressure} mtorr, Pendulum valve & PV6 & PV7 closed automaticlly.");
  569. }
  570. }
  571. }
  572. public override bool CheckLiftDown()
  573. {
  574. return _LiftPin.State == CylinderState.Close;
  575. }
  576. public override bool CheckLiftUp()
  577. {
  578. return _LiftPin.State == CylinderState.Open;
  579. }
  580. public override bool CheckSlitDoorClose()
  581. => IsSlitDoorClosed;
  582. public override bool CheckSlitDoorOpen()
  583. => !IsSlitDoorClosed;
  584. public override void CloseValves(int? delayTime = null)
  585. {
  586. _PVN21Valve.TurnValve(false, out _);
  587. //_PVN22Valve.TurnValve(false, out _);
  588. _PV11Valve.TurnValve(false, out _);
  589. _PV12Valve.TurnValve(false, out _);
  590. _PV21Valve.TurnValve(false, out _);
  591. _PV22Valve.TurnValve(false, out _);
  592. _PV31Valve.TurnValve(false, out _);
  593. _PV32Valve.TurnValve(false, out _);
  594. _PV41Valve.TurnValve(false, out _);
  595. _PV42Valve.TurnValve(false, out _);
  596. _PVHe1Valve.TurnValve(false, out _);
  597. _PVHe2Valve.TurnValve(false, out _);
  598. _GasFinalValve.TurnValve(false, out _);
  599. _SoftPumpValve.TurnValve(false, out _);
  600. _FastPumpValve.TurnValve(false, out _);
  601. _TurboPumpPumpingValve.TurnValve(false, out _);
  602. _TurboPumpPurgeValve.TurnValve(false, out _);
  603. _GuageValve.TurnValve(false, out _);
  604. _N2Valve.TurnValve(false, out _);
  605. _FastPumpValve.TurnValve(false, out _);
  606. _PVHe3Valve.TurnValve(false, out _);
  607. _HeISOValve.TurnValve(false, out _);
  608. //新增
  609. _Mfc1Valve.TurnValve(false, out _);
  610. _Mfc2Valve.TurnValve(false, out _);
  611. _Mfc3Valve.TurnValve(false, out _);
  612. _Mfc4Valve.TurnValve(false, out _);
  613. _Mfc5Valve.TurnValve(false, out _);
  614. _Mfc6Valve.TurnValve(false, out _);
  615. _Mfc7Valve.TurnValve(false, out _);
  616. _Mfc8Valve.TurnValve(false, out _);
  617. _Mfc9Valve.TurnValve(false, out _);
  618. _Mfc10Valve.TurnValve(false, out _);
  619. _Mfc11Valve.TurnValve(false, out _);
  620. _Mfc12Valve.TurnValve(false, out _);
  621. _PV51Valve.TurnValve(false, out _);
  622. _PV52Valve.TurnValve(false, out _);
  623. _PV61Valve.TurnValve(false, out _);
  624. _PV62Valve.TurnValve(false, out _);
  625. _PV71Valve.TurnValve(false, out _);
  626. _PV72Valve.TurnValve(false, out _);
  627. _PV81Valve.TurnValve(false, out _);
  628. _PV82Valve.TurnValve(false, out _);
  629. _PV91Valve.TurnValve(false, out _);
  630. _PV92Valve.TurnValve(false, out _);
  631. _PVA1Valve.TurnValve(false, out _);
  632. _PVA2Valve.TurnValve(false, out _);
  633. _PVB1Valve.TurnValve(false, out _);
  634. _PVB2Valve.TurnValve(false, out _);
  635. _PVC1Valve.TurnValve(false, out _);
  636. _PVC2Valve.TurnValve(false, out _);
  637. foreach (var stick in _gasLines)
  638. {
  639. stick.Stop();
  640. }
  641. }
  642. public override bool ExtendWafer()
  643. {
  644. throw new NotImplementedException();
  645. }
  646. public override bool FlowGas(int gasNum, double val)
  647. {
  648. if (_gasLines.Length <= gasNum)
  649. return false;
  650. _gasLines[gasNum].Flow(val);
  651. return true;
  652. }
  653. public override bool FlowN2(double val)
  654. {
  655. _gasLineN2.Flow(val);
  656. return true;
  657. }
  658. public override bool GeneratorBiasPowerOn(bool on)
  659. {
  660. if (_GeneratorBias == null) return false;
  661. if (on && !IsRFGInterlockOn)
  662. {
  663. LOG.Write(eEvent.ERR_RF, Module, "Bias射频电源 Interlock条件不满足");
  664. return false;
  665. }
  666. return _GeneratorBias.SetPowerOnOff(on, out _);
  667. }
  668. public override bool GeneratorBiasSetMatchMode(bool val)
  669. {
  670. if (_GeneratorBias == null) return false;
  671. string reason = string.Empty;
  672. _GeneratorBias.SetMatchingAutoMode(val, out reason);
  673. return true;
  674. }
  675. public override bool GeneratorBiasSetpower(float val)
  676. {
  677. if (_GeneratorBias == null) return false;
  678. if (Math.Abs(val) > 0.01)
  679. _GeneratorBias.SetPower((ushort)val);
  680. return true;
  681. }
  682. public override bool GeneratorPowerOn(bool on)
  683. {
  684. if (_Generator == null) return false;
  685. if (on && !IsRFGInterlockOn)
  686. {
  687. LOG.Write(eEvent.ERR_RF, Module, "射频电源 Interlock条件不满足");
  688. return false;
  689. }
  690. return _Generator.SetPowerOnOff(on, out _);
  691. }
  692. public override bool GeneratorSetpower(float val)
  693. {
  694. if (_Generator == null) return false;
  695. if (Math.Abs(val) > 0.01)
  696. _Generator.SetPower((ushort)val);
  697. return true;
  698. }
  699. public override int GetPVPosition()
  700. {
  701. return _pendulumValve.Position;
  702. }
  703. public override async void HeatChiller(ChillerType chillerType, double value, double offset)
  704. {
  705. _Chiller?.SetChillerTemp((float)value, (float)offset);
  706. await Task.Delay(1000);
  707. _Chiller?.SetChillerOnOff(true);
  708. }
  709. public override void Home()
  710. {
  711. SetLiftPin(MovementPosition.Down, out _);
  712. //转交TM
  713. if (!IsSlitDoorClosed)
  714. {
  715. SetSlitDoor(true, out _);
  716. }
  717. else
  718. {
  719. SetSlitDoor(false, out _);
  720. }
  721. //SetSlitDoor(false, out _);
  722. OpenValve(ValveType.PVN22, true);
  723. }
  724. public override void OnOffChiller(ChillerType chillerType, bool onoff)
  725. => _Chiller?.SetChillerOnOff(onoff);
  726. public override bool OnOffSetESCHV(bool on)
  727. => _ESCHV.SetPowerOnOff(on);
  728. public override void OpenValve(ValveType vlvType, bool on)
  729. {
  730. if (Valve2IO.ContainsKey(vlvType))
  731. {
  732. Valve2IO[vlvType].TurnValve(on, out _);
  733. LOG.Write(eEvent.EV_DEVICE_INFO, Module, $"{(on ? "打开" : "关闭")} 阀 {vlvType.ToString()}");
  734. }
  735. else
  736. {
  737. throw new ArgumentOutOfRangeException($"Argument error {vlvType}-{on}");
  738. }
  739. }
  740. public override bool PendulumValveIsOpen()
  741. {
  742. return _pendulumValve.IsOpen;
  743. }
  744. public override bool RetractWafer()
  745. {
  746. throw new NotImplementedException();
  747. }
  748. public override void SetBacksideHeFlow(double flow)
  749. {
  750. if (_backsideHe == null) return;
  751. _backsideHe.Flow(flow);
  752. }
  753. public override bool SetBacksideHePressure(float mTorr)
  754. {
  755. if (_backsideHe == null) return false;
  756. return _backsideHe.SetBacksideHelium(mTorr);
  757. }
  758. public override bool SetBacksideHeThreshold(int nMin, int nMax)
  759. {
  760. if (_backsideHe == null) return false;
  761. return _backsideHe.SetFlowThreshold(nMin, nMax);
  762. }
  763. public override bool SetBiasMatchPosition(float c1, float c2)
  764. {
  765. if (_BiasMatch == null) return false;
  766. string reason = string.Empty;
  767. _BiasMatch.SetMatchPosition(c1, c2, out reason);
  768. return true;
  769. }
  770. public override bool SetBiasPulseMode(bool on)
  771. {
  772. if (_GeneratorBias == null) return false;
  773. _GeneratorBias.SetPulseMode(on);
  774. return true;
  775. }
  776. public override bool SetBiasPulseRateFreq(int nFreq)
  777. {
  778. if (_GeneratorBias == null) return false;
  779. _GeneratorBias.SetPulseRateFreq(nFreq);
  780. return true;
  781. }
  782. public override bool SetDiasPulseDutyCycle(int percentage)
  783. {
  784. if (_GeneratorBias == null) return false;
  785. _GeneratorBias.SetPulseDutyCycle(percentage);
  786. return true;
  787. }
  788. public override bool SetESCClampVoltage(int nVoltage)
  789. {
  790. if (_ESCHV == null) return false;
  791. return _ESCHV.SetOutputVoltage(nVoltage);
  792. }
  793. public override void SetGeneratorCommunicationMode(int mode)
  794. => _Generator?.SetCommunicationMode(mode);
  795. public override bool SetLiftPin(MovementPosition dirt, out string reason)
  796. {
  797. reason = string.Empty;
  798. switch (dirt)
  799. {
  800. case MovementPosition.Down:
  801. return _LiftPin.SetCylinder(false, out reason);
  802. case MovementPosition.Up:
  803. return _LiftPin.SetCylinder(true, out reason);
  804. case MovementPosition.Left:
  805. case MovementPosition.Right:
  806. case MovementPosition.Middle:
  807. throw new ArgumentException("Movement argument error");
  808. }
  809. return true;
  810. }
  811. public override bool SetMatchPosition(float c1, float c2)
  812. {
  813. if (_Match == null) return false;
  814. string reason = string.Empty;
  815. _Match.SetMatchPosition(c1, c2, out reason);
  816. return true;
  817. }
  818. public override bool SetPVPostion(int position)
  819. => _pendulumValve.SetPosition(position);
  820. public override bool SetPVPressure(int pressure)
  821. => _pendulumValve.SetPressure(pressure);
  822. public override bool SetSlitDoor(bool open, out string reason)
  823. {
  824. reason = string.Empty;
  825. // 泓浒TM将提供开关门的interlock
  826. OP.DoOperation($"{ModuleName.SETM}.SetSlitDoor",Module,open);
  827. return true;
  828. }
  829. public override bool SetWallTCTemperature(float value)
  830. => _WallTC.RampTemp(value);
  831. public override void StopAllGases()
  832. {
  833. foreach (var line in _gasLines)
  834. {
  835. line.Stop();
  836. }
  837. }
  838. public override bool StopGas(int gasNum)
  839. {
  840. if (_gasLines.Length <= gasNum)
  841. return false;
  842. _gasLines[gasNum].Stop();
  843. return true;
  844. }
  845. public override bool StopN2()
  846. {
  847. _gasLineN2.Stop();
  848. return true;
  849. }
  850. public override void SwitchOnBuzzerAndRed()
  851. {
  852. throw new NotImplementedException();
  853. }
  854. public override void TurnDryPump(bool on)
  855. => _MainPump?.SetPumpOnOff(on);
  856. public override bool TurnPendulumValve(bool on)
  857. => _pendulumValve.TurnValve(on);
  858. public override void TurnTurboPump(bool on)
  859. {
  860. _TurboPump?.SetPumpOnOff(on);
  861. }
  862. public override bool PreparePlace()
  863. {
  864. if (!SetSlitDoor(true, out string reason))
  865. {
  866. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Open failed:{reason}");
  867. return false;
  868. }
  869. if (!SetLiftPin(MovementPosition.Down, out reason))
  870. {
  871. LOG.Write(eEvent.ERR_PM, Module, $"Set Lift Pin down failed:{reason}");
  872. return false;
  873. }
  874. return true;
  875. }
  876. public override bool PreparePick()
  877. {
  878. if (!SetSlitDoor(true, out string reason))
  879. {
  880. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Open failed:{reason}");
  881. return false;
  882. }
  883. if (!SetLiftPin(MovementPosition.Up, out reason))
  884. {
  885. LOG.Write(eEvent.ERR_PM, Module, $"Set Lift Pin Up failed:{reason}");
  886. return false;
  887. }
  888. return true;
  889. }
  890. public override bool PreparePlaceIsOK()
  891. {
  892. return CheckSlitDoorOpen() && LiftPinIsDown;
  893. }
  894. public override bool PreparePickIsOK()
  895. {
  896. return CheckSlitDoorOpen() && LiftPinIsUp;
  897. }
  898. public override bool EndPlace()
  899. {
  900. if (!SetLiftPin(MovementPosition.Down, out string reason))
  901. {
  902. LOG.Write(eEvent.ERR_PM, Module, $"Set Lift Pin Down failed:{reason}");
  903. return false;
  904. }
  905. if (!SetSlitDoor(false, out reason))
  906. {
  907. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Close failed:{reason}");
  908. return false;
  909. }
  910. return true;
  911. }
  912. public override bool EndPick()
  913. {
  914. if (!SetSlitDoor(false, out string reason))
  915. {
  916. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Close failed:{reason}");
  917. return false;
  918. }
  919. return true;
  920. }
  921. public override bool EndPlaceIsOK()
  922. {
  923. return CheckSlitDoorClose() && LiftPinIsDown;
  924. }
  925. public override bool EndPickIsOK()
  926. {
  927. return CheckSlitDoorClose();
  928. }
  929. #endregion
  930. protected override void CheckPermanentInterlock()
  931. {
  932. if (ProcessPressure > 100 && _GuageValve.SetPoint)
  933. {
  934. _GuageValve.TurnValve(false, out _);
  935. LOG.Write(eEvent.WARN_DEVICE_INFO, Module, $"Process pressure:{ProcessPressure} exceed 100 mtorr, Guage Valve (DO-31) closed automaticlly.");
  936. }
  937. }
  938. }
  939. }