JetKepler2300PM.cs 42 KB

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