PMProcessRoutine.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. using System;
  2. using System.Collections.Generic;
  3. using Aitex.Core.RT.Routine;
  4. using Aitex.Core.RT.SCCore;
  5. using Aitex.Core.Common;
  6. using Aitex.Core.RT.RecipeCenter;
  7. using Venus_RT.Devices;
  8. using MECF.Framework.Common.Equipment;
  9. using MECF.Framework.Common.SubstrateTrackings;
  10. using Venus_Core;
  11. using System.Diagnostics;
  12. using MECF.Framework.Common.DBCore;
  13. using System.Threading.Tasks;
  14. using Aitex.Core.RT.Event;
  15. namespace Venus_RT.Modules.PMs
  16. {
  17. class PMProcessRoutine : PMRoutineBase, IRoutine
  18. {
  19. private enum ProcessStep
  20. {
  21. PreparePressure,
  22. PrepareTemperature,
  23. RunChuckRecipe,
  24. RunProcessRecipe,
  25. RunDechuckRecipe,
  26. RunCleanRecipe,
  27. End,
  28. }
  29. public string CurrentRunningRecipe { get; set; }
  30. public string ProcessRecipeName { get; set; }
  31. public string ChuckRecipeName { get; set; }
  32. public string DechuckRecipeName { get; set; }
  33. public string CleanRecipeName { get; set; }
  34. public RecipeHead ProcessRecipeHead { get; set; }
  35. public DateTime RecipeStartTime { get; private set; }
  36. public DateTime RecipeEndTime { get; private set; }
  37. public string WaferId { get; set; }
  38. public string SlotID { get; set; }
  39. public string LotID { get; set; }
  40. public string RecipeId { get; set; }
  41. //public bool CurrentRecipeType { get; set; }
  42. //int Timeall;
  43. private Stopwatch Recipetime = new Stopwatch();
  44. private readonly PumpDownRoutine _pumpDownRoutine;
  45. private readonly ProcessHelper _processHelper;
  46. private bool _withWafer = true;
  47. //private bool _needPumpDown = false;
  48. public Recipe _currentRecipe = null;
  49. private int _currentStep = 0;
  50. private List<Recipe> Recipelist = new List<Recipe>();
  51. private double _tolerance;
  52. private double _OffsetTemp = 0.0f;
  53. private bool _bLoopMode = false;
  54. private int _loopStartStep = 0;
  55. private int _loopCounter = 0;
  56. private int _recipeRunningMode = 0;
  57. private Stopwatch _stepTime = new Stopwatch();
  58. public RecipeResult currentRecipeResult;
  59. public bool isMaualEndStep;
  60. private RecipeFACallback _faCallback;
  61. private JetChamber _jetChamber;
  62. private RecipeType _recipeType;
  63. private Recipe ProcessRecipe;
  64. private Recipe ChuckRecipe;
  65. private Recipe DechuckRecipe;
  66. private Recipe CleanRecipe;
  67. private bool needprocess;
  68. private bool needdechuck;
  69. private bool needchuck;
  70. private bool needclean;
  71. private double BaseTemperature
  72. {
  73. get
  74. {
  75. if (ProcessRecipeHead != null)
  76. {
  77. if (!string.IsNullOrEmpty(ProcessRecipeHead.BaseTemperature))
  78. {
  79. double setpoint = Convert.ToDouble(ProcessRecipeHead.BaseTemperature);
  80. if (setpoint > 0 && setpoint < 600)
  81. return setpoint;
  82. }
  83. }
  84. return 0;
  85. }
  86. }
  87. private double BasePressure
  88. {
  89. get
  90. {
  91. if (ProcessRecipeHead != null)
  92. {
  93. if (!string.IsNullOrEmpty(ProcessRecipeHead.BasePressure))
  94. {
  95. double setpoint = Convert.ToDouble(ProcessRecipeHead.BasePressure);
  96. if (setpoint > 0 && setpoint < 750000)
  97. return setpoint;
  98. }
  99. }
  100. return SC.GetValue<int>($"{Module}.Pump.PumpBasePressure");
  101. }
  102. }
  103. public double EstimatedTotalLeftTime
  104. {
  105. get;
  106. private set;
  107. }
  108. public PMProcessRoutine(JetPMBase chamber, PumpDownRoutine pdRoutine) : base(chamber)
  109. {
  110. Name = "Process";
  111. _pumpDownRoutine = pdRoutine;
  112. _processHelper = new ProcessHelper(chamber);
  113. _faCallback = new RecipeFACallback();
  114. _jetChamber = (JetChamber)SC.GetValue<int>($"{chamber.Module}.ChamberType");
  115. }
  116. private bool AssignFuns(Recipe recipe)
  117. {
  118. foreach (var step in recipe.Steps)
  119. {
  120. if (_processHelper.LoadStepFuns(step) == false)
  121. return false;
  122. foreach (ProcessUnitBase unit in step.LstUnit)
  123. {
  124. if (_processHelper.LoadMethods(unit) == false)
  125. {
  126. Stop($"Cannot find the process routine for unit:{unit.GetType()}");
  127. return false;
  128. }
  129. }
  130. }
  131. return true;
  132. }
  133. public RState Start(params object[] objs)
  134. {
  135. needprocess = false;
  136. needchuck = false;
  137. needclean = false;
  138. needdechuck = false;
  139. Recipelist.Clear();
  140. string recipeName = (string)objs[0];
  141. if (objs.Length >= 2)
  142. {
  143. _recipeType = (RecipeType)Enum.Parse(typeof(RecipeType), objs[2].ToString());
  144. if (_recipeType == RecipeType.Clean)
  145. {
  146. _withWafer = false;
  147. }
  148. else
  149. {
  150. _withWafer = true;
  151. }
  152. }
  153. if (objs.Length >= 4)
  154. {
  155. LotID = objs[3].ToString();
  156. }
  157. else
  158. {
  159. LotID = "";
  160. }
  161. if (_withWafer && WaferManager.Instance.CheckNoWafer(Module, 0))
  162. {
  163. Stop($"can not run process, no wafer at {Module}");
  164. EV.PostAlarmLog(Module.ToString(), $"can not run process, no wafer at {Module}");
  165. return RState.Failed;
  166. }
  167. else if (!_withWafer && WaferManager.Instance.CheckHasWafer(Module, 0))
  168. {
  169. Stop($"can not run clean recipe{recipeName}, a wafer at {Module}");
  170. EV.PostAlarmLog(Module.ToString(), $"can not run clean recipe, a wafer at {Module}");
  171. return RState.Failed;
  172. }
  173. if (!_chamber.IsRFGInterlockOn)
  174. {
  175. Stop("射频电源 Interlock条件不满足");
  176. EV.PostAlarmLog(Module.ToString(), "射频电源 Interlock条件不满足");
  177. return RState.Failed;
  178. }
  179. if (!CheckSlitDoor() || !CheckDryPump() || !CheckTurboPump())
  180. {
  181. return RState.Failed;
  182. }
  183. currentRecipeResult = new RecipeResult();
  184. currentRecipeResult.RecipeName = recipeName;
  185. string recipeContent = RecipeFileManager.Instance.LoadRecipe(_chamber.Name, recipeName, false, objs[2].ToString());
  186. Recipe recipe = Recipe.Load(recipeContent);
  187. currentRecipeResult.RecipeStepCount = recipe.Steps.Count;
  188. if (recipe == null)
  189. {
  190. Stop($"Load Recipe:{recipeName} failed");
  191. EV.PostAlarmLog(Module.ToString(), $"Load Recipe:{recipeName} failed");
  192. return RState.Failed;
  193. }
  194. _recipeRunningMode = SC.GetValue<int>($"{Module}.RecipeRunningMode");
  195. _processHelper.m_RecipeHead = recipe.Header;
  196. switch (recipe.Header.Type)
  197. {
  198. case RecipeType.Process:
  199. if (_recipeRunningMode == 1 && recipe.Header.ChuckRecipe != null && !string.IsNullOrEmpty(recipe.Header.ChuckRecipe))
  200. {
  201. string chuckcontent = RecipeFileManager.Instance.LoadRecipe(_chamber.Name, recipe.Header.ChuckRecipe, false, RecipeType.Chuck.ToString());
  202. ChuckRecipe = Recipe.Load(chuckcontent);
  203. if (ChuckRecipe != null)
  204. {
  205. ChuckRecipeName = recipe.Header.ChuckRecipe;
  206. needchuck = true;
  207. Recipelist.Add(ChuckRecipe);
  208. }
  209. }
  210. needprocess = true;
  211. ProcessRecipeHead = recipe.Header;
  212. ProcessRecipe = recipe;
  213. ProcessRecipeName = recipeName;
  214. Recipelist.Add(recipe);
  215. if (_recipeRunningMode == 1 && recipe.Header.DechuckRecipe != null && !string.IsNullOrEmpty(recipe.Header.DechuckRecipe))
  216. {
  217. string dechuckcontent = RecipeFileManager.Instance.LoadRecipe(_chamber.Name, recipe.Header.DechuckRecipe, false, RecipeType.DeChuck.ToString());
  218. DechuckRecipe = Recipe.Load(dechuckcontent);
  219. if (DechuckRecipe != null)
  220. {
  221. DechuckRecipeName = recipe.Header.DechuckRecipe;
  222. needdechuck = true;
  223. Recipelist.Add(DechuckRecipe);
  224. }
  225. }
  226. break;
  227. case RecipeType.Chuck:
  228. ChuckRecipeName = recipeName;
  229. ChuckRecipe = recipe;
  230. Recipelist.Add(ChuckRecipe);
  231. needchuck = true;
  232. break;
  233. case RecipeType.DeChuck:
  234. DechuckRecipeName = recipeName;
  235. Recipelist.Add(DechuckRecipe);
  236. DechuckRecipe = recipe;
  237. needdechuck = true;
  238. break;
  239. case RecipeType.Clean:
  240. CleanRecipe = recipe;
  241. CleanRecipeName = recipeName;
  242. Recipelist.Add(CleanRecipe);
  243. needclean = true;
  244. break;
  245. }
  246. foreach (Recipe rcp in Recipelist)
  247. {
  248. if (AssignFuns(rcp) == false)
  249. {
  250. Stop($"Associate process alogrithm with recipe:{rcp.Header.Name} failed");
  251. EV.PostAlarmLog(Module.ToString(), $"Associate process alogrithm with recipe:{rcp.Header.Name} failed");
  252. return RState.Failed;
  253. }
  254. }
  255. _bLoopMode = false;
  256. _loopStartStep = 0;
  257. _loopCounter = 0;
  258. _processHelper.isLoop = false;
  259. _processHelper.loopsteps = 0;
  260. _processHelper.currentStepIndex = 0;
  261. if (_jetChamber == JetChamber.Venus)
  262. {
  263. _tolerance = SC.GetValue<double>($"System.MaxTemperatureToleranceToTarget");
  264. _OffsetTemp = SC.GetValue<double>($"{Module}.Chiller.ChillerTemperatureOffset");
  265. }
  266. _faCallback.RecipeStart(_chamber.Module.ToString(), recipeName);
  267. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.InProcess);
  268. return Runner.Start(Module, Name);
  269. }
  270. public RState Monitor()
  271. {
  272. Runner
  273. .Run(ProcessStep.PreparePressure, PreparePressure, IsPressureReady)
  274. .Run(ProcessStep.PrepareTemperature, PrepareTemp, IsTempReady)
  275. .RunIf(ProcessStep.RunChuckRecipe, needchuck, StartChuckRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  276. .RunIf(ProcessStep.RunProcessRecipe, needprocess, StartProcessRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  277. .RunIf(ProcessStep.RunDechuckRecipe, needdechuck, StartDechuckRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  278. .RunIf(ProcessStep.RunCleanRecipe, needclean, StartCleanRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  279. .End(ProcessStep.End, ProcessDone, _delay_1s);
  280. return Runner.Status;
  281. }
  282. private bool PreparePressure()
  283. {
  284. //2023/09/02 tps remove
  285. //if (_chamber.ChamberPressure < 5 && _chamber.ProcessPressure < BasePressure)
  286. //{
  287. // _needPumpDown = false;
  288. // return true;
  289. //}
  290. //_needPumpDown = true;
  291. return _pumpDownRoutine.Start(BasePressure) == RState.Running;
  292. }
  293. private bool IsPressureReady()
  294. {
  295. //if (_needPumpDown == false)
  296. // return true;
  297. var status = _pumpDownRoutine.Monitor();
  298. if (status == RState.End)
  299. {
  300. return true;
  301. }
  302. else if (status == RState.Failed || status == RState.Timeout)
  303. {
  304. Runner.Stop($"Pump down to {BasePressure} failed.");
  305. EV.PostAlarmLog(Module.ToString(), $"Pump down to {BasePressure} failed.");
  306. return true;
  307. }
  308. return false;
  309. }
  310. private bool PrepareTemp()
  311. {
  312. if (_jetChamber == JetChamber.Venus)
  313. {
  314. return SetCoolantTemp(BaseTemperature, _OffsetTemp);
  315. }
  316. else
  317. {
  318. return true;
  319. }
  320. }
  321. private bool IsTempReady()
  322. {
  323. if (_jetChamber == JetChamber.Venus)
  324. {
  325. return CheckCoolantTemp(BaseTemperature, _tolerance);
  326. }
  327. else
  328. {
  329. return true;
  330. }
  331. }
  332. public RState StartNewStep()
  333. {
  334. ProcessDataRecorder.StepStart(RecipeId, _currentRecipe.Steps[_currentStep].StepNo, $"{Module}:{_currentRecipe.Header.Name}:{_currentRecipe.Steps[_currentStep].Description}", _currentRecipe.Steps[_currentStep].Time);
  335. _stepTime.Restart();
  336. var state = _currentRecipe.Steps[_currentStep].Start();
  337. if (state != RState.Running)
  338. return state;
  339. //if (_bLoopMode == true)
  340. //{
  341. //}
  342. if (_currentRecipe.Steps[_currentStep].CycleStart)
  343. {
  344. if (!_bLoopMode)
  345. {
  346. _bLoopMode = true;
  347. _loopStartStep = _currentStep;
  348. _loopCounter = _currentRecipe.Steps[_currentStep].CycleNumber - 1;
  349. currentRecipeResult.RecipeAllCounters = _currentRecipe.Steps[_currentStep].CycleNumber;
  350. currentRecipeResult.RecipeCurrentCounter = _loopCounter == 0 ? 0 : 1;
  351. _processHelper.isLoop = true;
  352. _processHelper.loopsteps = _currentRecipe.Steps[_currentStep].CycleNumber;
  353. }
  354. else
  355. {
  356. _processHelper.currentStepIndex += 1;
  357. }
  358. }
  359. return RState.Running;
  360. }
  361. private bool startRecipe(Recipe _recipe)
  362. {
  363. _currentRecipe = _recipe;
  364. if (_currentRecipe != null)
  365. {
  366. _currentStep = 0;
  367. CurrentRunningRecipe = _currentRecipe.Header.Name;
  368. RecipeId = Guid.NewGuid().ToString();
  369. RecipeStartTime = DateTime.Now;
  370. Recipetime.Restart();
  371. Notify($"Recipe:{CurrentRunningRecipe} start");
  372. _chamber.EPDRecipeStart(CurrentRunningRecipe);
  373. return StartNewStep() == RState.Running;
  374. }
  375. else { return false; }
  376. }
  377. private bool StartProcessRecipe()
  378. {
  379. return startRecipe(ProcessRecipe);
  380. }
  381. private bool StartChuckRecipe()
  382. {
  383. return startRecipe(ChuckRecipe);
  384. }
  385. private bool StartDechuckRecipe()
  386. {
  387. return startRecipe(DechuckRecipe);
  388. }
  389. private bool StartCleanRecipe()
  390. {
  391. return startRecipe(CleanRecipe);
  392. }
  393. private bool CheckRecipeDone()
  394. {
  395. var step = _currentRecipe.Steps[_currentStep];
  396. currentRecipeResult.RecipeStepCount = _currentRecipe.Steps.Count;
  397. currentRecipeResult.RecipeName = _currentRecipe.Header.Name;
  398. currentRecipeResult.RecipeType = _currentRecipe.Header.Type.ToString();
  399. currentRecipeResult.RecipeStepNumber = step.StepNo;
  400. currentRecipeResult.RecipeStepType = step.Type.ToString();
  401. currentRecipeResult.RecipeStepDescription = string.IsNullOrEmpty(step.Description) ? "" : step.Description;
  402. currentRecipeResult.RecipeStepSetTime = step.Time;
  403. currentRecipeResult.RecipeType = _currentRecipe.Header.Type.ToString();
  404. currentRecipeResult.RecipeStepDuringTime = new System.TimeSpan(0, 0, System.Convert.ToInt32(_stepTime.ElapsedMilliseconds / 1000));
  405. var result = step.Run();
  406. if (result == RState.Failed)
  407. {
  408. RecipeDone("Fail");
  409. UpdateWaferStatus(false);
  410. Runner.Stop($"Recipe:{CurrentRunningRecipe}, Step:{_currentStep + 1} Failed");
  411. EV.PostAlarmLog(Module.ToString(), $"Recipe:{CurrentRunningRecipe}, Step:{_currentStep + 1} Failed");
  412. return true;
  413. }
  414. else if (result == RState.End || isMaualEndStep == true)
  415. {
  416. if (_currentRecipe.Steps.Count > _currentStep + 1 && _currentRecipe.Steps[_currentStep + 1].Type != StepType.OverEtch)
  417. {
  418. _currentRecipe.Steps[_currentStep].End();
  419. }
  420. if (_currentRecipe.Steps[_currentStep].CycleEnd)
  421. {
  422. if (_loopCounter > 0)
  423. {
  424. _loopCounter--;
  425. currentRecipeResult.RecipeCurrentCounter += 1;
  426. _currentStep = _loopStartStep;
  427. return StartNewStep() != RState.Running;
  428. }
  429. else
  430. {
  431. _bLoopMode = false;
  432. _loopStartStep = 0;
  433. //_processHelper.loopStep(false, 0, 0);
  434. _processHelper.isLoop = false;
  435. _processHelper.loopsteps = 0;
  436. _processHelper.currentStepIndex = 0;
  437. }
  438. }
  439. if (_currentStep < _currentRecipe.Steps.Count - 1 || isMaualEndStep == true)
  440. {
  441. result = RState.End;
  442. isMaualEndStep = false;
  443. _currentStep++;
  444. return StartNewStep() != RState.Running;
  445. }
  446. else
  447. {
  448. Notify($"Recipe:{CurrentRunningRecipe} finished");
  449. //FaEvent.FaPostInfo(Module.ToString(), $"Recipe:{CurrentRunningRecipe} finished");
  450. UpdateWaferStatus();
  451. //if (_currentRecipe.Header.Type == RecipeType.Process)
  452. //{
  453. // processRecipe = (Recipe)SerializeHelper.Instance.Clone(_currentRecipe);
  454. //}
  455. _chamber.EPDRecipeStop();
  456. RecipeDone("Success");
  457. return true;
  458. }
  459. }
  460. return false;
  461. }
  462. public void RecipeDone(string result)
  463. {
  464. Recipetime.Stop();
  465. WaferInfo waferInfo = WaferManager.Instance.GetWafer(ModuleHelper.Converter(Module.ToString()), 0);
  466. if (!waferInfo.IsEmpty)
  467. {
  468. WaferId = waferInfo.InnerId.ToString();
  469. SlotID = waferInfo.OriginSlot.ToString();
  470. //LotID = waferInfo.ProcessJob == null || string.IsNullOrEmpty(waferInfo.ProcessJob.ControlJobName) ? "" : waferInfo.ProcessJob.ControlJobName;
  471. }
  472. RecipeEndTime = RecipeStartTime + Recipetime.Elapsed;
  473. switch (_currentRecipe.Header.Type)
  474. {
  475. case RecipeType.Clean:
  476. ProcessDataRecorder.RecordPrecess(RecipeId, RecipeStartTime, RecipeEndTime, _currentRecipe.Header.Name, result, "", _chamber.Name, "", "", _currentRecipe.Header.Type.ToString());
  477. break;
  478. case RecipeType.Chuck:
  479. case RecipeType.DeChuck:
  480. case RecipeType.Process:
  481. ProcessDataRecorder.RecordPrecess(RecipeId, RecipeStartTime, RecipeEndTime, _currentRecipe.Header.Name, result, WaferId, _chamber.Name, LotID, SlotID, _currentRecipe.Header.Type.ToString());
  482. break;
  483. }
  484. }
  485. private bool ProcessDone()
  486. {
  487. _currentRecipe.Steps[_currentStep].End();
  488. RecipeFileManager.Instance.SaveAsRecipe2(Module.ToString(), _currentRecipe.Header.Type.ToString(), _currentRecipe.Header.Name, RecipeUnity.RecipeToString(_currentRecipe));
  489. _stepTime.Stop();
  490. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Idle);
  491. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Completed);
  492. CloseAllValves(500);
  493. _chamber.GeneratorSetpower(0);
  494. _chamber.GeneratorBiasSetpower(0);
  495. _chamber.GeneratorBiasPowerOn(false);
  496. _chamber.GeneratorPowerOn(false);
  497. _chamber.OpenValve(ValveType.TurboPumpPumping, true);
  498. _chamber.OpenValve(ValveType.TurboPumpPurge, true);
  499. _chamber.OpenValve(ValveType.Guage, true);
  500. _chamber.SetPVPostion(1000);
  501. if (_jetChamber == JetChamber.Venus && _chamber.IsHVOn == true)
  502. {
  503. _chamber.OnOffSetESCHV(false);
  504. }
  505. return true;
  506. }
  507. private void UpdateWaferStatus(bool bDone = true)
  508. {
  509. if (bDone == false)
  510. {
  511. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Failed);
  512. if (_currentRecipe.Header.Type == RecipeType.Chuck)
  513. {
  514. // set wafer chucked flag even if the chuck recipe failed.
  515. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Chucked);
  516. }
  517. }
  518. switch (_currentRecipe.Header.Type)
  519. {
  520. case RecipeType.Process:
  521. break;
  522. case RecipeType.Chuck:
  523. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Chucked);
  524. break;
  525. case RecipeType.DeChuck:
  526. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Completed);
  527. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Dechucked);
  528. break;
  529. }
  530. }
  531. public async void Abort()
  532. {
  533. if (_currentRecipe != null)
  534. {
  535. RecipeDone("Abort");
  536. }
  537. _chamber.GeneratorBiasPowerOn(false);
  538. _chamber.GeneratorPowerOn(false);
  539. CloseAllValves();
  540. _chamber.OpenValve(ValveType.TurboPumpPumping, true);
  541. _chamber.OpenValve(ValveType.TurboPumpPurge, true);
  542. if (_chamber.ChamberType == JetChamber.Venus)
  543. {
  544. await Task.Delay(3000);
  545. _chamber.OnOffSetESCHV(false);
  546. }
  547. }
  548. }
  549. }