PMProcessRoutine.cs 23 KB

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