PMProcessRoutine.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  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.Run(ProcessStep.kPreparePressure, PreparePressure, IsPressureReady)
  245. .Run(ProcessStep.kPrepareTemperature, PrepareTemp, IsTempReady)
  246. .Run(ProcessStep.kRunRecipes, StartNewRecipe, RunRecipes, 5 * 60 * 60 * 1000)
  247. .End(ProcessStep.kEnd, ProcessDone, _delay_1s);
  248. return Runner.Status;
  249. }
  250. private bool PreparePressure()
  251. {
  252. //2023/09/02 tps remove
  253. //if(_chamber.ProcessHighPressure < 5 && _chamber.ProcessLowPressure<BasePressure)
  254. //{
  255. // _needPumpDown = false;
  256. // return true;
  257. //}
  258. //_needPumpDown = true;
  259. return _pumpDownRoutine.Start(BasePressure) == RState.Running;
  260. }
  261. private bool IsPressureReady()
  262. {
  263. //if (_needPumpDown == false)
  264. // return true;
  265. var status = _pumpDownRoutine.Monitor();
  266. if (status == RState.End)
  267. {
  268. return true;
  269. }
  270. else if (status == RState.Failed || status == RState.Timeout)
  271. {
  272. Runner.Stop($"Pump down to {BasePressure} failed.");
  273. EV.PostAlarmLog(Module.ToString(), $"Pump down to {BasePressure} failed.");
  274. return true;
  275. }
  276. return false;
  277. }
  278. private bool PrepareTemp()
  279. {
  280. if (_jetChamber == JetChamber.Venus)
  281. {
  282. return SetCoolantTemp(ChillerTemp, _OffsetTemp);
  283. }
  284. else
  285. {
  286. return true;
  287. }
  288. }
  289. private bool IsTempReady()
  290. {
  291. if (_jetChamber == JetChamber.Venus)
  292. {
  293. return CheckCoolantTemp(ChillerTemp, _tolerance);
  294. }
  295. else
  296. {
  297. return true;
  298. }
  299. }
  300. public RState StartNewStep()
  301. {
  302. ProcessDataRecorder.StepStart(Guidall, _currentRecipe.Steps[_currentStep].StepNo, $"{Module}:{_currentRecipe.Header.Name}:{_currentRecipe.Steps[_currentStep].Description}", _currentRecipe.Steps[_currentStep].Time);
  303. _stepTime.Restart();
  304. var state = _currentRecipe.Steps[_currentStep].Start();
  305. if (state != RState.Running)
  306. return state;
  307. //if (_bLoopMode == true)
  308. //{
  309. //}
  310. if (_currentRecipe.Steps[_currentStep].CycleStart)
  311. {
  312. if (!_bLoopMode)
  313. {
  314. _bLoopMode = true;
  315. _loopStartStep = _currentStep;
  316. _loopCounter = _currentRecipe.Steps[_currentStep].CycleNumber - 1;
  317. currentRecipeResult.RecipeAllCounters = _currentRecipe.Steps[_currentStep].CycleNumber;
  318. currentRecipeResult.RecipeCurrentCounter = _loopCounter == 0 ? 0 : 1;
  319. _processHelper.isLoop = true;
  320. _processHelper.loopsteps = _currentRecipe.Steps[_currentStep].CycleNumber;
  321. }
  322. else
  323. {
  324. _processHelper.currentStepIndex += 1;
  325. }
  326. }
  327. return RState.Running;
  328. }
  329. private bool StartNewRecipe()
  330. {
  331. if (_qeRecipes.Count > 0)
  332. {
  333. _currentStep = 0;
  334. _currentRecipe = _qeRecipes.Dequeue();
  335. CurrentRunningRecipe = _currentRecipe.Header.Name;
  336. if (Guidall == null)
  337. {
  338. Guidall = Guid.NewGuid().ToString();
  339. RecipeStartTime = DateTime.Now;
  340. Processtime.Restart();
  341. }
  342. Notify($"Recipe:{CurrentRunningRecipe} start");
  343. //FaEvent.FaPostInfo(Module.ToString(), $"Recipe:{CurrentRunningRecipe} start");
  344. _chamber.EPDRecipeStart(CurrentRunningRecipe);
  345. return StartNewStep() == RState.Running;
  346. }
  347. return false;
  348. }
  349. private bool RunRecipes()
  350. {
  351. var step = _currentRecipe.Steps[_currentStep];
  352. currentRecipeResult.RecipeStepCount = _currentRecipe.Steps.Count;
  353. currentRecipeResult.RecipeName = _currentRecipe.Header.Name;
  354. currentRecipeResult.RecipeType = _currentRecipe.Header.Type.ToString();
  355. currentRecipeResult.RecipeStepNumber = step.StepNo;
  356. currentRecipeResult.RecipeStepType = step.Type.ToString();
  357. currentRecipeResult.RecipeStepDescription = string.IsNullOrEmpty(step.Description) ? "" : step.Description;
  358. currentRecipeResult.RecipeStepSetTime = step.Time;
  359. currentRecipeResult.RecipeType = _currentRecipe.Header.Type.ToString();
  360. //currentRecipeResult.RecipeStepDuringTime = (int)_stepTime.ElapsedMilliseconds/1000;
  361. currentRecipeResult.RecipeStepDuringTime = new System.TimeSpan(0, 0, System.Convert.ToInt32(_stepTime.ElapsedMilliseconds / 1000));
  362. var result = step.Run();
  363. if (result == RState.Failed)
  364. {
  365. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Completed);
  366. WaferInfo waferInfo = WaferManager.Instance.GetWafer(ModuleHelper.Converter(Module.ToString()), 0);
  367. if (!waferInfo.IsEmpty)
  368. {
  369. WaferId = waferInfo.InnerId.ToString();
  370. SlotID = waferInfo.OriginSlot.ToString();
  371. LotID = waferInfo.ProcessJob == null || string.IsNullOrEmpty(waferInfo.ProcessJob.ControlJobName) ? "" : waferInfo.ProcessJob.ControlJobName;
  372. FullRecipeName = string.Format(@"{0} {1} {2}", ChuckRecipeName, ProcessRecipeName, DechuckRecipeName);
  373. }
  374. Processtime.Stop();
  375. RecipeEndTime = RecipeStartTime + Processtime.Elapsed;
  376. ProcessDataRecorder.RecordPrecess(Guidall, RecipeStartTime, DateTime.Now, FullRecipeName, "Fail", WaferId, _chamber.Name, LotID, SlotID);
  377. Guidall = null;
  378. UpdateWaferStatus(false);
  379. Runner.Stop($"Recipe:{CurrentRunningRecipe}, Step:{_currentStep + 1} Failed");
  380. EV.PostAlarmLog(Module.ToString(), $"Recipe:{CurrentRunningRecipe}, Step:{_currentStep + 1} Failed");
  381. return true;
  382. }
  383. else if (result == RState.End || isMaualEndStep == true)
  384. {
  385. if (_currentRecipe.Steps.Count > _currentStep + 1 && _currentRecipe.Steps[_currentStep + 1].Type != StepType.OverEtch)
  386. {
  387. _currentRecipe.Steps[_currentStep].End();
  388. }
  389. if (_currentRecipe.Steps[_currentStep].CycleEnd)
  390. {
  391. if (_loopCounter > 0)
  392. {
  393. _loopCounter--;
  394. currentRecipeResult.RecipeCurrentCounter += 1;
  395. _currentStep = _loopStartStep;
  396. return StartNewStep() != RState.Running;
  397. }
  398. else
  399. {
  400. _bLoopMode = false;
  401. _loopStartStep = 0;
  402. //_processHelper.loopStep(false, 0, 0);
  403. _processHelper.isLoop = false;
  404. _processHelper.loopsteps = 0;
  405. _processHelper.currentStepIndex = 0;
  406. }
  407. }
  408. if (_currentStep < _currentRecipe.Steps.Count - 1 || isMaualEndStep == true)
  409. {
  410. result = RState.End;
  411. isMaualEndStep = false;
  412. _currentStep++;
  413. return StartNewStep() != RState.Running;
  414. }
  415. else
  416. {
  417. Notify($"Recipe:{CurrentRunningRecipe} finished");
  418. //FaEvent.FaPostInfo(Module.ToString(), $"Recipe:{CurrentRunningRecipe} finished");
  419. UpdateWaferStatus();
  420. if (_currentRecipe.Header.Type == RecipeType.Process)
  421. {
  422. processRecipe = (Recipe)SerializeHelper.Instance.Clone(_currentRecipe);
  423. }
  424. _chamber.EPDRecipeStop();
  425. return !StartNewRecipe();
  426. }
  427. }
  428. return false;
  429. }
  430. private bool ProcessDone()
  431. {
  432. _currentRecipe.Steps[_currentStep].End();
  433. RecipeFileManager.Instance.SaveAsRecipe2(Module.ToString(), _currentRecipe.Header.Type.ToString(), _currentRecipe.Header.Name, RecipeUnity.RecipeToString(_currentRecipe));
  434. _stepTime.Stop();
  435. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Idle);
  436. CloseAllValves();
  437. _chamber.GeneratorSetpower(0);
  438. _chamber.GeneratorBiasSetpower(0);
  439. _chamber.GeneratorBiasPowerOn(false);
  440. _chamber.GeneratorPowerOn(false);
  441. _chamber.OpenValve(ValveType.TurboPumpPumping, true);
  442. _chamber.OpenValve(ValveType.TurboPumpPurge, true);
  443. _chamber.OpenValve(ValveType.Guage, true);
  444. _chamber.SetPVPostion(1000);
  445. if (_jetChamber == JetChamber.Venus && _chamber.IsHVOn == true)
  446. {
  447. _chamber.OnOffSetESCHV(false);
  448. }
  449. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Completed);
  450. WaferInfo waferInfo = WaferManager.Instance.GetWafer(ModuleHelper.Converter(Module.ToString()), 0);
  451. if (!waferInfo.IsEmpty)
  452. {
  453. WaferId = waferInfo.InnerId.ToString();
  454. SlotID = waferInfo.OriginSlot.ToString();
  455. LotID = waferInfo.ProcessJob == null || string.IsNullOrEmpty(waferInfo.ProcessJob.ControlJobName) ? "" : waferInfo.ProcessJob.ControlJobName;
  456. FullRecipeName = string.Format(@"{0} {1} {2}", ChuckRecipeName, ProcessRecipeName, DechuckRecipeName);
  457. }
  458. Processtime.Stop();
  459. RecipeEndTime = RecipeStartTime + Processtime.Elapsed;
  460. ProcessDataRecorder.RecordPrecess(Guidall, RecipeStartTime, RecipeEndTime, FullRecipeName, "Success", WaferId, _chamber.Name, LotID, SlotID);
  461. Guidall = null;
  462. return true;
  463. }
  464. private void UpdateWaferStatus(bool bDone = true)
  465. {
  466. if (bDone == false)
  467. {
  468. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Failed);
  469. if (_currentRecipe.Header.Type == RecipeType.Chuck)
  470. {
  471. // set wafer chucked flag even if the chuck recipe failed.
  472. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Chucked);
  473. }
  474. }
  475. switch (_currentRecipe.Header.Type)
  476. {
  477. case RecipeType.Process:
  478. break;
  479. case RecipeType.Chuck:
  480. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Chucked);
  481. break;
  482. case RecipeType.DeChuck:
  483. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Completed);
  484. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Dechucked);
  485. break;
  486. }
  487. }
  488. public async void Abort()
  489. {
  490. WaferInfo waferInfo = WaferManager.Instance.GetWafer(ModuleHelper.Converter(Module.ToString()), 0);
  491. if (!waferInfo.IsEmpty)
  492. {
  493. WaferId = waferInfo.InnerId.ToString();
  494. SlotID = waferInfo.OriginSlot.ToString();
  495. LotID = waferInfo.ProcessJob == null || string.IsNullOrEmpty(waferInfo.ProcessJob.ControlJobName) ? "" : waferInfo.ProcessJob.ControlJobName;
  496. FullRecipeName = string.Format(@"{0} {1} {2}", ChuckRecipeName, ProcessRecipeName, DechuckRecipeName);
  497. }
  498. Processtime.Stop();
  499. RecipeEndTime = RecipeStartTime + Processtime.Elapsed;
  500. //ProcessDataRecorder.RecordPrecess(Guidall, RecipeStartTime, RecipeEndTime, FullRecipeName, "Fail", WaferId, _chamber.Name, LotID, SlotID);
  501. if (Guidall != null)
  502. {
  503. ProcessDataRecorder.RecordPrecess(Guidall, RecipeStartTime, RecipeEndTime, FullRecipeName, "Abort", WaferId, _chamber.Name, LotID, SlotID);
  504. }
  505. Guidall = null;
  506. _chamber.GeneratorBiasPowerOn(false);
  507. _chamber.GeneratorPowerOn(false);
  508. _chamber.TurnPendulumValve(false);
  509. CloseAllValves();
  510. _chamber.OpenValve(ValveType.TurboPumpPumping, true);
  511. _chamber.OpenValve(ValveType.TurboPumpPurge, true);
  512. if (_chamber.ChamberType == JetChamber.Venus)
  513. {
  514. await Task.Delay(3000);
  515. _chamber.OnOffSetESCHV(false);
  516. }
  517. }
  518. }
  519. }