JetPMBase.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. using Aitex.Core.RT.DataCenter;
  2. using Aitex.Core.RT.Device;
  3. using Aitex.Core.RT.OperationCenter;
  4. using Aitex.Core.Util;
  5. using MECF.Framework.Common.Equipment;
  6. using System.Collections.Generic;
  7. using Venus_Core;
  8. using Venus_RT.Modules;
  9. using System;
  10. using Aitex.Core.RT.SCCore;
  11. using System.Threading.Tasks;
  12. using Aitex.Core.RT.Log;
  13. namespace Venus_RT.Devices
  14. {
  15. abstract class JetPMBase : BaseDevice, IDevice
  16. {
  17. // 盖子的状态
  18. public abstract bool IsLidClosed { get; }
  19. public virtual bool IsLidLoadlockClosed { get; }
  20. public abstract bool IsSlitDoorClosed { get; }
  21. public virtual bool IsLinerDoorClosed { get; }
  22. public virtual bool IsISOOpen { get; }
  23. public virtual bool IsPenVOpen { get; }
  24. public abstract bool IsPumpRunning { get; }
  25. public abstract bool IsTurboPumpRunning { get; }
  26. public abstract bool IsTurboPumpAtSpeed { get; }
  27. public abstract float TurboPumpSpeed { get; }
  28. public abstract bool HasPumpError { get; }
  29. public abstract bool HasTurboPumpError { get; }
  30. public abstract bool IsCDA_OK { get; }
  31. public abstract bool IsFastPumpOpened { get; }
  32. public abstract bool IsSoftPumpOpened { get; }
  33. public abstract bool IsMfc1ValveOpened { get; }
  34. public abstract bool IsMfc2ValveOpened { get; }
  35. public abstract bool IsMfc3ValveOpened { get; }
  36. public abstract bool IsMfc4ValveOpened { get; }
  37. public abstract bool IsMfc5ValveOpened { get; }
  38. public abstract bool IsMfc6ValveOpened { get; }
  39. public abstract bool IsMfc7ValveOpened { get; }
  40. public abstract bool IsMfc8ValveOpened { get; }
  41. public abstract bool IsGuageValveOpened { get; }
  42. public abstract bool IsATM { get; }
  43. public abstract bool PVN22ValveIsOpen { get; }
  44. public virtual bool LiftPinIsDown { get; }
  45. public virtual bool LiftPinIsUp { get; }
  46. public abstract bool IsATMLoadlock { get; }
  47. public abstract bool IsVACLoadLock { get; }
  48. public abstract bool IsVAC { get; }
  49. public abstract bool IsWaterFlowOk { get; }
  50. public abstract bool IsWLK { get; }
  51. public abstract bool IsRFGInterlockOn { get; }
  52. public abstract bool PMLidClosed { get; }
  53. public abstract bool TurboPumpInterlock { get; }
  54. public virtual bool SourceRFFanInterlock { get; }
  55. public virtual bool SourceRFMatchInterlock { get; }
  56. public abstract bool SlitDoorClosed { get; }
  57. public virtual bool LinerDoorClosed { get; }
  58. //public virtual double ProcessLowPressure { get; }
  59. //public virtual double ProcessHighPressure { get; }
  60. public abstract double ProcessPressure { get; }
  61. public abstract double ChamberPressure { get; }
  62. public virtual double CalculationPressure { get; }
  63. public abstract double ForelinePressure { get; }
  64. public abstract double TargetPressure { get; }
  65. public virtual double ESCHePressure { get; }
  66. public virtual int ESCOutputVoltage { get; }
  67. public virtual double ESCPositiveOutputCurrent { get; }//R+
  68. public virtual double ESCNegativeOutputCurrent { get; }//R-
  69. public virtual bool IsHVOn { get; }
  70. public virtual float CoolantInletTempFB { get; }
  71. public virtual float CoolantOutletTempFB { get; }
  72. public virtual bool ChillerIsRunning { get; }
  73. //Loadlock_Arm
  74. public virtual bool IsLoadlockArmRetract { get; }
  75. public virtual bool IsLoadlockArmExtend { get; }
  76. //Loadlock_Arm DO
  77. public virtual bool LoadlockArmRetract { get; }
  78. public virtual bool LoadlockArmExtend { get; }
  79. public abstract float ReflectPower { get; }
  80. public virtual float BiasReflectPower { get; }
  81. public virtual float ForwardPower { get; }
  82. public virtual float BiasForwardPower { get; }
  83. public virtual bool BackSideHeOutOfRange { get; }
  84. public abstract float RFMatchC1 { get; }
  85. public abstract float RFMatchC2 { get; }
  86. public virtual float BiasRFMatchC1 { get; }
  87. public virtual float BiasRFMatchC2 { get; }
  88. public virtual float RFBoxC1 { get; }
  89. public new ModuleName Module;
  90. public virtual MovementPosition LiftPinPosition { get; }
  91. public virtual float ChamberTemperature { get; }
  92. //public virtual float WallTemperature { get; }
  93. //public virtual float ESCTemperature { get; }
  94. public virtual float HighTemperatureHeaterTemperature { get; }
  95. public abstract bool CheckAtm();
  96. public virtual bool CheckSlitDoorOpen()
  97. {
  98. return false;
  99. }
  100. public virtual bool CheckSlitDoorClose()
  101. {
  102. return true;
  103. }
  104. public virtual bool CheckLinerDoorOpen()
  105. {
  106. return true;
  107. }
  108. public virtual bool CheckLinerDoorClose()
  109. {
  110. return true;
  111. }
  112. public virtual bool CheckLiftUp()
  113. {
  114. return false;
  115. }
  116. public virtual bool CheckLiftDown()
  117. {
  118. return false;
  119. }
  120. public abstract double TotalGasSetpoint { get; }
  121. public abstract bool HasGasOutOfRange { get; }
  122. public abstract bool PendulumValveIsOpen();
  123. public virtual double LoadlockPressure { get; }
  124. public virtual double MFC1FeedBack { get; }
  125. public virtual double MFC2FeedBack { get; }
  126. public virtual double MFC3FeedBack { get; }
  127. public virtual double MFC4FeedBack { get; }
  128. public virtual double MFC5FeedBack { get; }
  129. public virtual double MFC6FeedBack { get; }
  130. public virtual double MFC7FeedBack { get; }
  131. public virtual double MFC8FeedBack { get; }
  132. public virtual double MFC9FeedBack { get; }
  133. public virtual double MFC10FeedBack { get; }
  134. public virtual double MFC11FeedBack { get; }
  135. public virtual double MFC12FeedBack { get; }
  136. public virtual double HeliumFeedBack { get; }
  137. public virtual float PendulumPressure { get; }
  138. public virtual float PendulumPosition { get; }
  139. public double TMPressure { get { return Singleton<RouteManager>.Instance.TM.TMPressure; } }
  140. public bool IsTMATM
  141. {
  142. get
  143. {
  144. if (Singleton<RouteManager>.Instance.TM != null)
  145. {
  146. return Singleton<RouteManager>.Instance.TM.IsTMATM;
  147. }
  148. else
  149. {
  150. return Singleton<RouteManager>.Instance.seTM.TMIsATM;
  151. }
  152. }
  153. }
  154. public bool IsTMVAC
  155. {
  156. get
  157. {
  158. if (Singleton<RouteManager>.Instance.TM != null)
  159. {
  160. return Singleton<RouteManager>.Instance.TM.IsTMVac;
  161. }
  162. else
  163. {
  164. return Singleton<RouteManager>.Instance.seTM.TMIsVAC;
  165. }
  166. }
  167. }
  168. // EndPoint
  169. private readonly JetEPDBase _epdClient;
  170. public List<string> EPDCfgList => _epdClient?.CFGFileList;
  171. //public List<string> EPDCfgList=new List<string>() { "1","2"};
  172. public bool EPDCaptured => _epdClient.Captured;
  173. public bool EPDConnected => _epdClient.IsEPDConnected;
  174. public JetChamber ChamberType = JetChamber.None;
  175. public JetPMBase(ModuleName module) : base(module.ToString(), module.ToString(), module.ToString(), module.ToString())
  176. {
  177. Module = module;
  178. _epdClient = DEVICE.GetDevice<JetEPDBase>($"{Module}.{VenusDevice.EndPoint}");
  179. ChamberType = (JetChamber)SC.GetValue<int>($"{Module}.ChamberType");
  180. DATA.Subscribe($"{Name}.ForelinePressure", () => ForelinePressure);
  181. //DATA.Subscribe($"{Name}.ProcessHighPressure", () => ProcessHighPressure, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  182. //DATA.Subscribe($"{Name}.ProcessLowPressure", () => ProcessLowPressure,SubscriptionAttribute.FLAG.IgnoreSaveDB);
  183. DATA.Subscribe($"{Name}.CalculationPressure", () => CalculationPressure, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  184. DATA.Subscribe($"{Name}.ChamberPressure", () => ChamberPressure);
  185. DATA.Subscribe($"{Name}.ProcessPressure", () => ProcessPressure);
  186. DATA.Subscribe($"{Name}.ESCHePressure", () => ESCHePressure);
  187. DATA.Subscribe($"{Name}.LoadlockPressure", () => LoadlockPressure);
  188. DATA.Subscribe($"{Name}.IsATM", () => IsATM, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  189. DATA.Subscribe($"{Name}.IsVAC", () => IsVAC, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  190. DATA.Subscribe($"{Name}.LiftPinIsUp", () => LiftPinIsUp, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  191. DATA.Subscribe($"{Name}.LiftPinIsDown", () => LiftPinIsDown, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  192. DATA.Subscribe($"{Name}.PumpIsRunning", () => IsPumpRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  193. DATA.Subscribe($"{Name}.TurboPumpIsRunning", () => IsTurboPumpRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  194. DATA.Subscribe($"{Name}.IsSlitDoorClosed", () => IsSlitDoorClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  195. DATA.Subscribe($"{Name}.IsLinerDoorClosed", () => IsLinerDoorClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  196. DATA.Subscribe($"{Name}.IsLidClosed", () => IsLidClosed, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  197. DATA.Subscribe($"{Name}.TurboPumpRotationalSpeed", () => TurboPumpSpeed);
  198. DATA.Subscribe($"{Name}.IsWaterFlowOk", () => IsWaterFlowOk, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  199. DATA.Subscribe($"{Name}.IsWLK", () => IsWLK, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  200. DATA.Subscribe($"{Name}.IsCDA_OK", () => IsCDA_OK, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  201. DATA.Subscribe($"{Name}.SourceRFFanInterlock", () => SourceRFFanInterlock, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  202. DATA.Subscribe($"{Name}.SourceRFMatchInterlock", () => SourceRFMatchInterlock, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  203. DATA.Subscribe($"{Name}.IsTurboPumpInterlock", () => TurboPumpInterlock, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  204. DATA.Subscribe($"{Name}.IsATMLoadlock", () => IsATMLoadlock, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  205. DATA.Subscribe($"{Name}.IsVACLoadlock", () => IsVACLoadLock, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  206. DATA.Subscribe($"{Name}.GetPVPosition", () => GetPVPosition());
  207. DATA.Subscribe($"{Name}.ESCHV.Temp", () => CoolantOutletTempFB);
  208. DATA.Subscribe($"{Name}.Chiller.Temp", () => CoolantInletTempFB);
  209. //DATA.Subscribe($"{Name}.Chiller.IsOn", () => ChillerIsRunning, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  210. DATA.Subscribe($"{Name}.IsTurboPumpAtSpeed", () => IsTurboPumpAtSpeed);
  211. DATA.Subscribe($"{Name}.EPDCfgList", () => EPDCfgList, SubscriptionAttribute.FLAG.IgnoreSaveDB);
  212. OP.Subscribe($"{Module}.SetLiftPin", (cmd, args) =>
  213. {
  214. if ((bool)args[0] == true)
  215. {
  216. return SetLiftPin(MovementPosition.Up, out _);
  217. }
  218. else
  219. {
  220. return SetLiftPin(MovementPosition.Down, out _);
  221. }
  222. });
  223. OP.Subscribe($"{Module}.SetSRf", (cmd, args) =>
  224. {
  225. var ison = (bool)args[1];
  226. if (ison == true)
  227. {
  228. GeneratorPowerOn(true);
  229. GeneratorSetpower((float)args[0]);
  230. }
  231. else
  232. {
  233. GeneratorPowerOn(false);
  234. }
  235. return true;
  236. });
  237. OP.Subscribe($"{Module}.SetBRf", (cmd, args) =>
  238. {
  239. var ison = (bool)args[1];
  240. if (ison == true)
  241. {
  242. GeneratorBiasPowerOn(true);
  243. GeneratorBiasSetpower((float)args[0]);
  244. }
  245. else
  246. {
  247. GeneratorBiasPowerOn(false);
  248. }
  249. return true;
  250. });
  251. OP.Subscribe($"{Module}.SetMagnet", (cmd, args) =>
  252. {
  253. var ison = (bool)args[1];
  254. if (ison == true)
  255. {
  256. MagnetPowerOn(true);
  257. MagnetSetpower((float)args[0]);
  258. }
  259. else
  260. {
  261. MagnetPowerOn(false);
  262. }
  263. return true;
  264. });
  265. OP.Subscribe($"{Module}.SetSlitDoor", (cmd, args) =>
  266. {
  267. SetSlitDoor((bool)args[0], out _);
  268. return true;
  269. });
  270. OP.Subscribe($"{Module}.SetLinerDoor", (cmd, args) =>
  271. {
  272. SetLinerDoor((bool)args[0], out _);
  273. return true;
  274. });
  275. OP.Subscribe($"{Module}.SetESCHVIsOn", (cmd, args) =>
  276. {
  277. OnOffSetESCHV((bool)args[0]);
  278. return true;
  279. });
  280. OP.Subscribe($"{Module}.SetESCHV", (cmd, args) =>
  281. {
  282. SetESCClampVoltage((int)args[0]);
  283. return true;
  284. });
  285. OP.Subscribe($"{Module}.SetPVPostion", (cmd, args) =>
  286. {
  287. SetPVPostion(Convert.ToSingle(args[0]));
  288. return true;
  289. });
  290. OP.Subscribe($"{Module}.SetPVPressure", (cmd, args) =>
  291. {
  292. SetPVPressure(Convert.ToSingle(args[0]));
  293. return true;
  294. });
  295. OP.Subscribe($"{Module}.ClosePump", (cmd, args) =>
  296. {
  297. TurnDryPump(false);
  298. return true;
  299. });
  300. OP.Subscribe($"{Module}.CloseTurboPump", (cmd, args) =>
  301. {
  302. TurnTurboPump(false);
  303. return true;
  304. });
  305. OP.Subscribe($"{Module}.ControlValve", (cmd, args) =>
  306. {
  307. if (ChamberType == JetChamber.VenusSE || ChamberType == JetChamber.VenusDE)
  308. {
  309. if (Enum.TryParse(args[0].ToString(), out ValveType targetvalve))
  310. {
  311. if (targetvalve == ValveType.TurboPumpPurge && (bool)args[1] == true)
  312. {
  313. if (IsISOOpen)
  314. {
  315. OpenValve(targetvalve, (bool)args[1]);
  316. }
  317. else
  318. {
  319. LOG.Write(eEvent.WARN_DEFAULT_WARN, Module, $"Chamber TurboPumpPumping valve is not open, can not turn on TurboPumpPurge valve.");
  320. }
  321. }
  322. else if (targetvalve == ValveType.TurboPumpPumping && (bool)args[1] == false)
  323. {
  324. if (IsTurboPumpRunning)
  325. {
  326. if (!IsPenVOpen)
  327. {
  328. OpenValve(targetvalve, (bool)args[1]);
  329. }
  330. else if (IsPenVOpen)
  331. {
  332. LOG.Write(eEvent.WARN_DEFAULT_WARN, Module, $"Chamber TurboPump is open but Pendulum Valve is open, can not turn off TurboPumpPumping valve.");
  333. }
  334. }
  335. else
  336. {
  337. OpenValve(targetvalve, (bool)args[1]);
  338. }
  339. }
  340. else
  341. {
  342. OpenValve(targetvalve, (bool)args[1]);
  343. }
  344. }
  345. }
  346. else
  347. {
  348. OpenValve((ValveType)((int)args[0]), (bool)args[1]);
  349. }
  350. return true;
  351. });
  352. OP.Subscribe($"{Module}.TurnPendulumValve", (cmd, args) =>
  353. {
  354. TurnPendulumValve((bool)args[0]);
  355. return true;
  356. });
  357. OP.Subscribe($"{Module}.HeatChiller", (cmd, args) =>
  358. {
  359. var chillerType = (ChillerType)Enum.Parse(typeof(ChillerType), args[0].ToString());
  360. HeatChiller(chillerType, (float)args[1], (float)args[2]);
  361. return true;
  362. });
  363. OP.Subscribe($"{Module}.OnOffChiller", (cmd, args) =>
  364. {
  365. var chillerType = (ChillerType)Enum.Parse(typeof(ChillerType), args[0].ToString());
  366. var ison = Convert.ToBoolean(args[1]);
  367. OnOffChiller(chillerType, ison);
  368. return true;
  369. });
  370. OP.Subscribe($"{Module}.WallChiller", (cmd, args) =>
  371. {
  372. float value;
  373. float.TryParse(args[0].ToString(), out value);
  374. SetWallTCTemperature(value);
  375. return true;
  376. });
  377. OP.Subscribe($"{Module}.SetBacksideHeFlow", (cmd, args) =>
  378. {
  379. double value;
  380. double.TryParse(args[0].ToString(), out value);
  381. SetBacksideHeFlow(value);
  382. return true;
  383. });
  384. OP.Subscribe($"{Module}.SetBacksideHePressure", (cmd, args) =>
  385. {
  386. float value;
  387. float.TryParse(args[0].ToString(), out value);
  388. SetBacksideHePressure(value);
  389. return true;
  390. });
  391. OP.Subscribe($"{Module}.EndPoint.SearchCfg", (cmd, args) =>
  392. {
  393. _epdClient?.QueryConfigList();
  394. return true;
  395. });
  396. }
  397. public abstract void CloseValves(int? delayTime = null);
  398. public abstract void TurnDryPump(bool on);
  399. public abstract void TurnTurboPump(bool on);
  400. public abstract void OpenValve(ValveType vlvType, bool on);
  401. public virtual void Monitor()
  402. {
  403. }
  404. public virtual bool Initialize()
  405. {
  406. return true;
  407. }
  408. public virtual void Terminate()
  409. {
  410. }
  411. public virtual void Reset()
  412. {
  413. }
  414. public virtual bool OnOffSetESCHV(bool on)
  415. {
  416. return false;
  417. }
  418. public abstract bool SetWallTCTemperature(float value);
  419. protected abstract void CheckPermanentInterlock();
  420. public abstract void CheckIdleInterlock();
  421. public virtual void BuzzerBlinking(double time)
  422. {
  423. }
  424. public virtual void SwitchOnBuzzerAndRed()
  425. {
  426. }
  427. public abstract void Home();
  428. public virtual bool SetLiftPin(MovementPosition dirt, out string reason)
  429. {
  430. reason = "";
  431. return false;
  432. }
  433. public virtual bool SetSlitDoor(bool open, out string reason)
  434. {
  435. reason = "";
  436. return false;
  437. }
  438. public virtual bool SetLinerDoor(bool open, out string reason)
  439. {
  440. reason = "";
  441. return false;
  442. }
  443. public virtual bool RetractWafer()
  444. {
  445. return false;
  446. }
  447. public virtual bool ExtendWafer()
  448. {
  449. return false;
  450. }
  451. public abstract bool FlowGas(int gasNum, double val);
  452. public abstract bool StopGas(int gasNum);
  453. public abstract bool FlowN2(double val);
  454. public abstract bool StopN2();
  455. public abstract void StopAllGases();
  456. public abstract bool TurnPendulumValve(bool on);
  457. public abstract bool SetPVPressure(float pressure);
  458. public abstract bool SetPVPostion(float position);
  459. public abstract float GetPVPosition();
  460. public virtual void HeatChiller(ChillerType chillerType, double value, double offset)
  461. {
  462. }
  463. public virtual void OnOffChiller(ChillerType chillerType, bool onoff)
  464. {
  465. }
  466. public virtual bool CheckChillerStatus()
  467. {
  468. return false;
  469. }
  470. public abstract void SetGeneratorCommunicationMode(int mode);
  471. public abstract bool GeneratorPowerOn(bool on);
  472. public abstract bool GeneratorSetpower(float val);
  473. public virtual bool GeneratorBiasPowerOn(bool on)
  474. { return false; }
  475. public virtual bool MagnetPowerOn(bool on)
  476. { return false; }
  477. public virtual bool MagnetSetpower(float val)
  478. { return false; }
  479. public virtual bool GeneratorBiasSetpower(float val)
  480. { return false; }
  481. public virtual bool GeneratorBiasSetMatchMode(bool val)
  482. { return false; }
  483. public abstract bool SetMatchPosition(float c1, float c2);
  484. public virtual bool SetBiasMatchPosition(float c1, float c2)
  485. { return false; }
  486. public virtual bool SetMatchWorkMode(MatchWorkMode matchWorkMode)
  487. {
  488. return false;
  489. }
  490. public virtual bool SetBiasMatchWorkMode(MatchWorkMode matchWorkMode)
  491. {
  492. return false;
  493. }
  494. //public virtual async Task<bool> SetBiasMatchWorkMode2(MatchWorkMode matchWorkMode)
  495. //{
  496. // await Task.Delay(1200);
  497. // return false;
  498. //}
  499. public virtual bool SetMatchC1Position(float c1)
  500. {
  501. return false;
  502. }
  503. public virtual bool SetBiasPulseMode(bool on)
  504. { return false; }
  505. public virtual bool SetBiasPulseRateFreq(int nFreq)
  506. {
  507. return false;
  508. }
  509. public virtual bool SetRFBoxC1Position(float c1)
  510. {
  511. return false;
  512. }
  513. public virtual bool SetDiasPulseDutyCycle(int percentage)
  514. {
  515. return false;
  516. }
  517. public virtual bool SetESCClampVoltage(int nVoltage)
  518. {
  519. return false;
  520. }
  521. public abstract bool CheckGeneratorAndHVInterlock(VenusDevice device);
  522. #region EndPoint
  523. public void EPDRecipeStart(string recipe)
  524. {
  525. try
  526. {
  527. _epdClient?.RecipeStart(recipe);
  528. }
  529. catch
  530. {
  531. }
  532. }
  533. public void EPDRecipeStop()
  534. {
  535. try
  536. {
  537. _epdClient?.RecipeStop();
  538. }
  539. catch
  540. {
  541. }
  542. }
  543. public void EPDStepStart(string cfgName, int step)
  544. {
  545. try
  546. {
  547. _epdClient?.StepStart(cfgName, step);
  548. }
  549. catch
  550. {
  551. }
  552. }
  553. public void EPDStepStop()
  554. {
  555. try
  556. {
  557. _epdClient?.StepStop();
  558. }
  559. catch
  560. {
  561. }
  562. }
  563. #endregion
  564. public virtual void SetBacksideHeFlow(double flow)
  565. {
  566. }
  567. public virtual bool SetBacksideHePressure(float mTorr)
  568. {
  569. return false;
  570. }
  571. public virtual bool SetBacksideHeThreshold(float nMin, float nMax)
  572. {
  573. return true;
  574. }
  575. //public virtual bool SESetBacksideHeThreshold(float nMin, float nMax)
  576. //{
  577. // return true;
  578. //}
  579. public virtual bool HighTemperatureHeaterGotoPosition(HighTemperatureHeaterPosition highTemperatureHeaterPosition)
  580. {
  581. return false;
  582. }
  583. public virtual bool SetHighTemperatureHeaterTemperature(int temperature)
  584. {
  585. return false;
  586. }
  587. public virtual bool SetHighTemperatureHeaterRatio(int ratio)
  588. {
  589. return false;
  590. }
  591. public virtual bool SetHighTemperatureHeaterRate(int rate)
  592. {
  593. return false;
  594. }
  595. public virtual bool StartControlPressure(int pressureSetpoint, int flowSetpoint)
  596. {
  597. return false;
  598. }
  599. public virtual async Task<bool> AbortControlPressure()
  600. {
  601. await Task.Delay(0);
  602. return false;
  603. }
  604. public virtual bool PreparePlace()
  605. {
  606. return false;
  607. }
  608. public virtual bool PreparePlaceIsOK()
  609. {
  610. return false;
  611. }
  612. public virtual bool PreparePick()
  613. {
  614. return false;
  615. }
  616. public virtual bool PreparePickIsOK()
  617. {
  618. return false;
  619. }
  620. public virtual bool EndPlace()
  621. {
  622. return false;
  623. }
  624. public virtual bool EndPlaceIsOK()
  625. {
  626. return false;
  627. }
  628. public virtual bool EndPick()
  629. {
  630. return false;
  631. }
  632. public virtual bool EndPickIsOK()
  633. {
  634. return false;
  635. }
  636. public virtual void RTCloseEvent()
  637. {
  638. }
  639. public virtual bool RFInterlock(VenusDevice device)
  640. {
  641. return true;
  642. }
  643. public abstract void PMInError();
  644. }
  645. }