JetPMBase.cs 25 KB

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