JetPMBase.cs 24 KB

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