PMProcessRoutine.cs 23 KB

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