PMProcessRoutine.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601
  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. using Aitex.Core.RT.Log;
  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 BaseTemperature
  73. {
  74. get
  75. {
  76. if (ProcessRecipeHead != null)
  77. {
  78. if (!string.IsNullOrEmpty(ProcessRecipeHead.Temperature))
  79. {
  80. double setpoint = Convert.ToDouble(ProcessRecipeHead.Temperature);
  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. if (_jetChamber == JetChamber.Venus)
  263. {
  264. _tolerance = SC.GetValue<double>($"System.MaxTemperatureToleranceToTarget");
  265. _OffsetTemp = SC.GetValue<double>($"{Module}.Chiller.ChillerTemperatureOffset");
  266. }
  267. _faCallback.RecipeStart(_chamber.Module.ToString(), recipeName);
  268. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.InProcess);
  269. return Runner.Start(Module, Name);
  270. }
  271. public RState Monitor()
  272. {
  273. Runner
  274. .Run(ProcessStep.PreparePressure, PreparePressure, IsPressureReady)
  275. .Run(ProcessStep.PrepareTemperature, PrepareTemp, IsTempReady)
  276. .RunIf(ProcessStep.RunChuckRecipe, needchuck, StartChuckRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  277. .RunIf(ProcessStep.RunProcessRecipe, needprocess, StartProcessRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  278. .RunIf(ProcessStep.RunDechuckRecipe, needdechuck, StartDechuckRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  279. .RunIf(ProcessStep.RunCleanRecipe, needclean, StartCleanRecipe, CheckRecipeDone, 5 * 60 * 60 * 1000)
  280. .End(ProcessStep.End, ProcessDone, _delay_1s);
  281. return Runner.Status;
  282. }
  283. private bool PreparePressure()
  284. {
  285. //2023/09/02 tps remove
  286. //if (_chamber.ChamberPressure < 5 && _chamber.ProcessPressure < BasePressure)
  287. //{
  288. // _needPumpDown = false;
  289. // return true;
  290. //}
  291. //_needPumpDown = true;
  292. return _pumpDownRoutine.Start(BasePressure) == RState.Running;
  293. }
  294. private bool IsPressureReady()
  295. {
  296. //if (_needPumpDown == false)
  297. // return true;
  298. var status = _pumpDownRoutine.Monitor();
  299. if (status == RState.End)
  300. {
  301. return true;
  302. }
  303. else if (status == RState.Failed || status == RState.Timeout)
  304. {
  305. Runner.Stop($"Pump down to {BasePressure} failed.");
  306. EV.PostAlarmLog(Module.ToString(), $"Pump down to {BasePressure} failed.");
  307. return true;
  308. }
  309. return false;
  310. }
  311. private bool PrepareTemp()
  312. {
  313. if (_jetChamber == JetChamber.Venus)
  314. {
  315. return SetCoolantTemp(BaseTemperature, _OffsetTemp);
  316. }
  317. else
  318. {
  319. return true;
  320. }
  321. }
  322. private bool IsTempReady()
  323. {
  324. if (_jetChamber == JetChamber.Venus)
  325. {
  326. return CheckCoolantTemp(BaseTemperature, _tolerance);
  327. }
  328. else
  329. {
  330. return true;
  331. }
  332. }
  333. public RState StartNewStep()
  334. {
  335. ProcessDataRecorder.StepStart(RecipeId, _currentRecipe.Steps[_currentStep].StepNo, $"{Module}:{_currentRecipe.Header.Name}:{_currentRecipe.Steps[_currentStep].Description}", _currentRecipe.Steps[_currentStep].Time);
  336. _stepTime.Restart();
  337. var state = _currentRecipe.Steps[_currentStep].Start();
  338. LOG.Write(eEvent.INFO_PROCESS, Module, $"Recipe:{CurrentRunningRecipe} Step{_currentStep+1} Start");
  339. if (state != RState.Running)
  340. return state;
  341. //if (_bLoopMode == true)
  342. //{
  343. //}
  344. if (_currentRecipe.Steps[_currentStep].CycleStart)
  345. {
  346. if (!_bLoopMode)
  347. {
  348. _bLoopMode = true;
  349. _loopStartStep = _currentStep;
  350. _loopCounter = _currentRecipe.Steps[_currentStep].CycleNumber - 1;
  351. currentRecipeResult.RecipeAllCounters = _currentRecipe.Steps[_currentStep].CycleNumber;
  352. currentRecipeResult.RecipeCurrentCounter = _loopCounter == 0 ? 0 : 1;
  353. _processHelper.isLoop = true;
  354. _processHelper.loopsteps = _currentRecipe.Steps[_currentStep].CycleNumber;
  355. }
  356. else
  357. {
  358. _processHelper.currentStepIndex += 1;
  359. }
  360. }
  361. return RState.Running;
  362. }
  363. private bool startRecipe(Recipe _recipe)
  364. {
  365. _currentRecipe = _recipe;
  366. if (_currentRecipe != null)
  367. {
  368. _currentStep = 0;
  369. CurrentRunningRecipe = _currentRecipe.Header.Name;
  370. RecipeId = Guid.NewGuid().ToString();
  371. RecipeStartTime = DateTime.Now;
  372. Recipetime.Restart();
  373. Notify($"Recipe:{CurrentRunningRecipe} start");
  374. _chamber.EPDRecipeStart(CurrentRunningRecipe);
  375. return StartNewStep() == RState.Running;
  376. }
  377. else { return false; }
  378. }
  379. private bool StartProcessRecipe()
  380. {
  381. return startRecipe(ProcessRecipe);
  382. }
  383. private bool StartChuckRecipe()
  384. {
  385. return startRecipe(ChuckRecipe);
  386. }
  387. private bool StartDechuckRecipe()
  388. {
  389. return startRecipe(DechuckRecipe);
  390. }
  391. private bool StartCleanRecipe()
  392. {
  393. return startRecipe(CleanRecipe);
  394. }
  395. private bool CheckRecipeDone()
  396. {
  397. var step = _currentRecipe.Steps[_currentStep];
  398. currentRecipeResult.RecipeStepCount = _currentRecipe.Steps.Count;
  399. currentRecipeResult.RecipeName = _currentRecipe.Header.Name;
  400. currentRecipeResult.RecipeType = _currentRecipe.Header.Type.ToString();
  401. currentRecipeResult.RecipeStepNumber = step.StepNo;
  402. currentRecipeResult.RecipeStepType = step.Type.ToString();
  403. currentRecipeResult.RecipeStepDescription = string.IsNullOrEmpty(step.Description) ? "" : step.Description;
  404. currentRecipeResult.RecipeStepSetTime = step.Time;
  405. currentRecipeResult.RecipeType = _currentRecipe.Header.Type.ToString();
  406. currentRecipeResult.RecipeStepDuringTime = new System.TimeSpan(0, 0, System.Convert.ToInt32(_stepTime.ElapsedMilliseconds / 1000));
  407. var result = step.Run();
  408. if (result == RState.Failed)
  409. {
  410. RecipeDone("Fail");
  411. UpdateWaferStatus(false);
  412. Runner.Stop($"Recipe:{CurrentRunningRecipe}, Step:{_currentStep + 1} Failed");
  413. EV.PostAlarmLog(Module.ToString(), $"Recipe:{CurrentRunningRecipe}, Step:{_currentStep + 1} Failed");
  414. return true;
  415. }
  416. else if (result == RState.End || isMaualEndStep == true)
  417. {
  418. if (_currentRecipe.Steps.Count > _currentStep + 1 && _currentRecipe.Steps[_currentStep + 1].Type != StepType.OverEtch)
  419. {
  420. _currentRecipe.Steps[_currentStep].End();
  421. }
  422. if (_currentRecipe.Steps[_currentStep].CycleEnd)
  423. {
  424. if (_loopCounter > 0)
  425. {
  426. _loopCounter--;
  427. currentRecipeResult.RecipeCurrentCounter += 1;
  428. _currentStep = _loopStartStep;
  429. return StartNewStep() != RState.Running;
  430. }
  431. else
  432. {
  433. _bLoopMode = false;
  434. _loopStartStep = 0;
  435. //_processHelper.loopStep(false, 0, 0);
  436. _processHelper.isLoop = false;
  437. _processHelper.loopsteps = 0;
  438. _processHelper.currentStepIndex = 0;
  439. }
  440. }
  441. if (_currentStep < _currentRecipe.Steps.Count - 1 || isMaualEndStep == true)
  442. {
  443. result = RState.End;
  444. isMaualEndStep = false;
  445. _currentStep++;
  446. LOG.Write(eEvent.INFO_PROCESS, Module, $"Recipe:{CurrentRunningRecipe} Step{_currentStep} End");
  447. return StartNewStep() != RState.Running;
  448. }
  449. else
  450. {
  451. LOG.Write(eEvent.INFO_PROCESS, Module, $"Recipe:{CurrentRunningRecipe} Step{_currentStep+1} End");
  452. Notify($"Recipe:{CurrentRunningRecipe} finished");
  453. //FaEvent.FaPostInfo(Module.ToString(), $"Recipe:{CurrentRunningRecipe} finished");
  454. UpdateWaferStatus();
  455. //if (_currentRecipe.Header.Type == RecipeType.Process)
  456. //{
  457. // processRecipe = (Recipe)SerializeHelper.Instance.Clone(_currentRecipe);
  458. //}
  459. _chamber.EPDRecipeStop();
  460. RecipeDone("Success");
  461. return true;
  462. }
  463. }
  464. return false;
  465. }
  466. public void RecipeDone(string result)
  467. {
  468. Recipetime.Stop();
  469. WaferInfo waferInfo = WaferManager.Instance.GetWafer(ModuleHelper.Converter(Module.ToString()), 0);
  470. if (!waferInfo.IsEmpty)
  471. {
  472. WaferId = waferInfo.InnerId.ToString();
  473. SlotID = waferInfo.OriginSlot.ToString();
  474. //LotID = waferInfo.ProcessJob == null || string.IsNullOrEmpty(waferInfo.ProcessJob.ControlJobName) ? "" : waferInfo.ProcessJob.ControlJobName;
  475. }
  476. RecipeEndTime = RecipeStartTime + Recipetime.Elapsed;
  477. switch (_currentRecipe.Header.Type)
  478. {
  479. case RecipeType.Clean:
  480. ProcessDataRecorder.RecordPrecess(RecipeId, RecipeStartTime, RecipeEndTime, _currentRecipe.Header.Name, result, "", _chamber.Name, "", "", _currentRecipe.Header.Type.ToString());
  481. break;
  482. case RecipeType.Chuck:
  483. case RecipeType.DeChuck:
  484. case RecipeType.Process:
  485. ProcessDataRecorder.RecordPrecess(RecipeId, RecipeStartTime, RecipeEndTime, _currentRecipe.Header.Name, result, WaferId, _chamber.Name, LotID, SlotID, _currentRecipe.Header.Type.ToString());
  486. break;
  487. }
  488. }
  489. private bool ProcessDone()
  490. {
  491. _currentRecipe.Steps[_currentStep].End();
  492. RecipeFileManager.Instance.SaveAsRecipe2(Module.ToString(), _currentRecipe.Header.Type.ToString(), _currentRecipe.Header.Name, RecipeUnity.RecipeToString(_currentRecipe));
  493. _stepTime.Stop();
  494. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Idle);
  495. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Completed);
  496. CloseAllValves(500);
  497. _chamber.GeneratorSetpower(0);
  498. _chamber.GeneratorBiasSetpower(0);
  499. _chamber.GeneratorBiasPowerOn(false);
  500. _chamber.GeneratorPowerOn(false);
  501. _chamber.OpenValve(ValveType.TurboPumpPumping, true);
  502. _chamber.OpenValve(ValveType.TurboPumpPurge, true);
  503. _chamber.OpenValve(ValveType.Guage, true);
  504. _chamber.SetPVPostion(1000);
  505. if (_jetChamber == JetChamber.Venus && _chamber.IsHVOn == true)
  506. {
  507. _chamber.OnOffSetESCHV(false);
  508. }
  509. return true;
  510. }
  511. private void UpdateWaferStatus(bool bDone = true)
  512. {
  513. if (bDone == false)
  514. {
  515. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Failed);
  516. if (_currentRecipe.Header.Type == RecipeType.Chuck)
  517. {
  518. // set wafer chucked flag even if the chuck recipe failed.
  519. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Chucked);
  520. }
  521. }
  522. switch (_currentRecipe.Header.Type)
  523. {
  524. case RecipeType.Process:
  525. break;
  526. case RecipeType.Chuck:
  527. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Chucked);
  528. break;
  529. case RecipeType.DeChuck:
  530. WaferManager.Instance.UpdateWaferProcessStatus(Module, 0, EnumWaferProcessStatus.Completed);
  531. WaferManager.Instance.UpdateWaferChuckStatus(Module, 0, EnumWaferChuckStatus.Dechucked);
  532. break;
  533. }
  534. }
  535. public async void Abort()
  536. {
  537. if (_currentRecipe != null)
  538. {
  539. RecipeDone("Abort");
  540. }
  541. _chamber.GeneratorBiasPowerOn(false);
  542. _chamber.GeneratorPowerOn(false);
  543. CloseAllValves();
  544. _chamber.OpenValve(ValveType.TurboPumpPumping, true);
  545. _chamber.OpenValve(ValveType.TurboPumpPurge, true);
  546. if (_chamber.ChamberType == JetChamber.Venus)
  547. {
  548. await Task.Delay(3000);
  549. _chamber.OnOffSetESCHV(false);
  550. }
  551. }
  552. }
  553. }