JetVenusDEPM.cs 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119
  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 JetVenusDEPM : 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 JetVenusDEPM(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 { get; }//_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 => 1.0;
  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(float pressure)
  821. => _pendulumValve.SetPressure(pressure);
  822. public override bool SetSlitDoor(bool open, out string reason)
  823. {
  824. reason = string.Empty;
  825. OP.DoOperation($"{ModuleName.SETM}.SetSlitDoor",Module,open);
  826. return true;
  827. }
  828. public override bool SetWallTCTemperature(float value)
  829. => _WallTC.RampTemp(value);
  830. public override void StopAllGases()
  831. {
  832. foreach (var line in _gasLines)
  833. {
  834. line.Stop();
  835. }
  836. }
  837. public override bool StopGas(int gasNum)
  838. {
  839. if (_gasLines.Length <= gasNum)
  840. return false;
  841. _gasLines[gasNum].Stop();
  842. return true;
  843. }
  844. public override bool StopN2()
  845. {
  846. _gasLineN2.Stop();
  847. return true;
  848. }
  849. public override void SwitchOnBuzzerAndRed()
  850. {
  851. throw new NotImplementedException();
  852. }
  853. public override void TurnDryPump(bool on)
  854. => _MainPump?.SetPumpOnOff(on);
  855. public override bool TurnPendulumValve(bool on)
  856. => _pendulumValve.TurnValve(on);
  857. public override void TurnTurboPump(bool on)
  858. {
  859. _TurboPump?.SetPumpOnOff(on);
  860. }
  861. public override bool PreparePlace()
  862. {
  863. if (!SetSlitDoor(true, out string reason))
  864. {
  865. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Open failed:{reason}");
  866. return false;
  867. }
  868. if (!SetLiftPin(MovementPosition.Down, out reason))
  869. {
  870. LOG.Write(eEvent.ERR_PM, Module, $"Set Lift Pin down failed:{reason}");
  871. return false;
  872. }
  873. return true;
  874. }
  875. public override bool PreparePick()
  876. {
  877. if (!SetSlitDoor(true, out string reason))
  878. {
  879. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Open failed:{reason}");
  880. return false;
  881. }
  882. if (!SetLiftPin(MovementPosition.Up, out reason))
  883. {
  884. LOG.Write(eEvent.ERR_PM, Module, $"Set Lift Pin Up failed:{reason}");
  885. return false;
  886. }
  887. return true;
  888. }
  889. public override bool PreparePlaceIsOK()
  890. {
  891. return CheckSlitDoorOpen() && LiftPinIsDown;
  892. }
  893. public override bool PreparePickIsOK()
  894. {
  895. return CheckSlitDoorOpen() && LiftPinIsUp;
  896. }
  897. public override bool EndPlace()
  898. {
  899. if (!SetLiftPin(MovementPosition.Down, out string reason))
  900. {
  901. LOG.Write(eEvent.ERR_PM, Module, $"Set Lift Pin Down failed:{reason}");
  902. return false;
  903. }
  904. if (!SetSlitDoor(false, out reason))
  905. {
  906. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Close failed:{reason}");
  907. return false;
  908. }
  909. return true;
  910. }
  911. public override bool EndPick()
  912. {
  913. if (!SetSlitDoor(false, out string reason))
  914. {
  915. LOG.Write(eEvent.ERR_PM, Module, $"Set Slit Door Close failed:{reason}");
  916. return false;
  917. }
  918. return true;
  919. }
  920. public override bool EndPlaceIsOK()
  921. {
  922. return CheckSlitDoorClose() && LiftPinIsDown;
  923. }
  924. public override bool EndPickIsOK()
  925. {
  926. return CheckSlitDoorClose();
  927. }
  928. #endregion
  929. protected override void CheckPermanentInterlock()
  930. {
  931. if (ProcessPressure > 100 && _GuageValve.SetPoint)
  932. {
  933. _GuageValve.TurnValve(false, out _);
  934. LOG.Write(eEvent.WARN_DEVICE_INFO, Module, $"Process pressure:{ProcessPressure} exceed 100 mtorr, Guage Valve (DO-31) closed automaticlly.");
  935. }
  936. }
  937. }
  938. }