PMProcessRoutine.cs 23 KB

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