OverKepler2200AViewModel.cs 79 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063
  1. using Aitex.Core.Common.DeviceData;
  2. using MECF.Framework.Common.DataCenter;
  3. using MECF.Framework.Common.OperationCenter;
  4. using Prism.Commands;
  5. using Prism.Mvvm;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Windows;
  9. using System.Windows.Threading;
  10. using Venus_Core;
  11. using Venus_MainPages.Views;
  12. using System.Linq;
  13. using System.Threading.Tasks;
  14. using System.IO;
  15. using Venus_Themes.CustomControls;
  16. using Venus_MainPages.Unity;
  17. using MECF.Framework.Common.CommonData.DeviceData;
  18. using Path = System.IO.Path;
  19. using System.Windows.Controls;
  20. using Aitex.Core.RT.Log;
  21. using OpenSEMI.ClientBase;
  22. namespace Venus_MainPages.ViewModels
  23. {
  24. internal class OverKepler2200AViewModel : BindableBase
  25. {
  26. #region 私有字段
  27. private double m_TurboN2FlowSetPoint;
  28. private List<string> m_CurrentModuleRecipes = new List<string>();
  29. private bool m_PVN21ValveIsOpen;
  30. private bool m_PVN22ValveIsOpen;
  31. private bool m_N2ValveIsOpen;
  32. private bool m_O2ValveIsOpen;
  33. private bool m_PV11ValveIsOpen;
  34. private bool m_PV12ValveIsOpen;
  35. private bool m_PV21ValveIsOpen;
  36. private bool m_PV22ValveIsOpen;
  37. private bool m_PV31ValveIsOpen;
  38. private bool m_PV32ValveIsOpen;
  39. private bool m_PV41ValveIsOpen;
  40. private bool m_PV42ValveIsOpen;
  41. private bool m_MFC1ValveIsOpen;
  42. private bool m_MFC2ValveIsOpen;
  43. private bool m_MFC3ValveIsOpen;
  44. private bool m_MFC4ValveIsOpen;
  45. private bool m_MFC5ValveIsOpen;
  46. private bool m_MFC6ValveIsOpen;
  47. private bool m_MFC7ValveIsOpen;
  48. private bool m_MFC8ValveIsOpen;
  49. private bool m_GasFinalValveIsOpen;
  50. private bool m_SoftPumpValveIsOpen;
  51. private bool m_FastPumpValveIsOpen;
  52. //private bool m_PVHe1ValveIsOpen;
  53. //private bool m_PVHe2ValveIsOpen;
  54. private bool m_TurboPumpPumpingValveIsOpen;
  55. private bool m_TurboPumpPurgeValveIsOpen;
  56. private bool m_GuageValveIsOpen;
  57. private bool m_PenningGaugeValveIsOpen;
  58. private bool m_PendulumValveIsOpen;
  59. private bool m_PurgeValveIsOpen;
  60. private bool m_N2Purge1ValveIsOpen;
  61. private bool m_N2Purge2ValveIsOpen;
  62. //private double m_HeGasSetpoint;
  63. //private int m_HePressureSetpoint;
  64. private float m_SRFFwdPowerSetpoint;
  65. //private float m_BRFFwdPowerSetpoint;
  66. private float m_SRFMatchC1SetPoint;
  67. private float m_SRFMatchC2SetPoint;
  68. //private float m_BRFMatchC1;
  69. //private float m_BRFMatchC2;
  70. private double m_MFC1SetPoint;
  71. private double m_MFC2SetPoint;
  72. private double m_MFC3SetPoint;
  73. private double m_MFC4SetPoint;
  74. private double m_MFC5SetPoint;
  75. private double m_MFC6SetPoint;
  76. private double m_MFC7SetPoint;
  77. private double m_MFC8SetPoint;
  78. private double m_N2SetPoint;
  79. //private double m_RFBoxC1Setpoint;
  80. private AITMfcData m_MFC1Data;
  81. private AITMfcData m_MFC2Data;
  82. private AITMfcData m_MFC3Data;
  83. private AITMfcData m_MFC4Data;
  84. private AITMfcData m_MFC5Data;
  85. private AITMfcData m_MFC6Data;
  86. private AITMfcData m_MFC7Data;
  87. private AITMfcData m_MFC8Data;
  88. //private AITMfcData m_MFCHeData;
  89. private AITMfcData m_MFCN2Data;
  90. //private AITMatchData m_RFBoxData;
  91. private AITHeaterData m_PendulumHeaterData;
  92. private AITRfData m_SRFData;
  93. //private AITRfData m_BRFData;
  94. private AITPendulumValveData m_PendulumValveData;
  95. //private AITHVData m_ESCHVData;
  96. private PMState m_PMCurrentState;
  97. private bool m_SourceRFMatchInterlock;
  98. private bool m_IsWLK;
  99. private bool m_IsWaterFlowOk;
  100. private bool m_IsTurboPumpInterlock;
  101. private bool m_IsCDAOK;
  102. private bool m_SensorGasBoxDoor;
  103. private bool m_SensorGasBoxPressure;
  104. private bool m_SensorN2PurgePressure;
  105. private bool m_SensorPN2PurgePressure;
  106. private bool m_PumpIsOpen;
  107. private bool m_TurboIsOpen;
  108. private bool m_IsATM;
  109. private bool m_IsVAC;
  110. private List<string> m_RtDataKeys;
  111. private Dictionary<string, object> m_RtDataValues;
  112. //private int m_PositionValue;
  113. //private bool m_IsPositionMode;
  114. //private int m_ESCVoltage;
  115. private bool m_GasIsFlowing;
  116. private bool m_IsProcessing;
  117. private bool m_IsAutoMode;
  118. private int m_SelectedRecipeIndex = -1;
  119. private ComboBoxItem m_SelectedRecipeType;
  120. //private float m_ChillerTempSetpoint;
  121. private float m_WallTempSetpoint;
  122. //private bool m_HeIsPressureMode = true;
  123. //private bool m_ChillerIsOn;
  124. private float m_ChamberPressure;
  125. private float m_ProcessPressure;
  126. private float m_ForelinePressurePressure;
  127. private float m_PenningPressure;
  128. //private float m_ESCHePressure;
  129. ButterflyValveView butterflyValveMessageBox;
  130. HeaterView heaterView;
  131. private int m_TurboPumpRotationalSpeed;
  132. //private bool m_LiftPinIsUp;
  133. private bool m_IsSlitDoorClosed = true;
  134. private bool m_IsLidClosed = true;
  135. //private float m_MatchC1;
  136. //private float m_MatchC2;
  137. //private string m_MatchWorkMode;
  138. private AITMatchData m_MatchData;
  139. //private float m_PendulumValvePosition;
  140. private bool m_IsTurboPumpAtSpeed;
  141. //private bool m_TurboPumpWaterFlowSwitch;
  142. private bool m_IsHasWafer;
  143. private Recipe m_CurrentRecipe = new Recipe();
  144. private RecipeResult m_CurrentRecipeResult = new RecipeResult();
  145. private RecipeStep m_CurrentRecipeStep = new RecipeStep();
  146. private double m_ChamberPressureFeedBack;
  147. private string m_WaferID;
  148. private string m_ModuleName;
  149. //private int? currentRecipeNumber;
  150. private AITHighTemperatureHeaterData m_HighTemperatureHeaterData;
  151. private ComboBoxItem m_SelectedPosition;
  152. private int m_HighTemperatureHeaterTemperatureSetpoint;
  153. private float m_HighTemperatureHeaterRatioSetpoint;
  154. private PressureType m_PressureType;
  155. private bool m_IsInclude;
  156. DispatcherTimer timer;
  157. private bool m_MFC1IsEnable;
  158. private bool m_MFC2IsEnable;
  159. private bool m_MFC3IsEnable;
  160. private bool m_MFC4IsEnable;
  161. private bool m_MFC5IsEnable;
  162. private bool m_MFC6IsEnable;
  163. private bool m_MFC7IsEnable;
  164. private bool m_MFC8IsEnable;
  165. private WaferInfo m_PMWafer;
  166. private bool m_PVHeaterIsEnbale;
  167. //private bool m_IsUpdateChamber;
  168. private ChamberInfo m_ChamberInfo;
  169. private bool m_IsEnablePumpSwitch = false;
  170. private bool m_HeaterIsAutoRatio;
  171. #endregion
  172. #region 属性
  173. public bool HeaterIsAutoRatio
  174. {
  175. get { return m_HeaterIsAutoRatio; }
  176. set { SetProperty(ref m_HeaterIsAutoRatio, value); }
  177. }
  178. public bool IsEnablePumpSwitch
  179. {
  180. get { return m_IsEnablePumpSwitch; }
  181. set { SetProperty(ref m_IsEnablePumpSwitch, value); }
  182. }
  183. public ChamberInfo ChamberInfo
  184. {
  185. get { return m_ChamberInfo; }
  186. set { SetProperty(ref m_ChamberInfo, value); }
  187. }
  188. //public bool IsUpdateChamber
  189. //{
  190. // get { return m_IsUpdateChamber; }
  191. // set { SetProperty(ref m_IsUpdateChamber, value); }
  192. //}
  193. public bool MFC1IsEnable
  194. {
  195. get { return m_MFC1IsEnable; }
  196. set { SetProperty(ref m_MFC1IsEnable, value); }
  197. }
  198. public bool MFC2IsEnable
  199. {
  200. get { return m_MFC2IsEnable; }
  201. set { SetProperty(ref m_MFC2IsEnable, value); }
  202. }
  203. public bool MFC3IsEnable
  204. {
  205. get { return m_MFC3IsEnable; }
  206. set { SetProperty(ref m_MFC3IsEnable, value); }
  207. }
  208. public bool MFC4IsEnable
  209. {
  210. get { return m_MFC4IsEnable; }
  211. set { SetProperty(ref m_MFC4IsEnable, value); }
  212. }
  213. public bool MFC5IsEnable
  214. {
  215. get { return m_MFC5IsEnable; }
  216. set { SetProperty(ref m_MFC5IsEnable, value); }
  217. }
  218. public bool MFC6IsEnable
  219. {
  220. get { return m_MFC6IsEnable; }
  221. set { SetProperty(ref m_MFC6IsEnable, value); }
  222. }
  223. public bool MFC7IsEnable
  224. {
  225. get { return m_MFC7IsEnable; }
  226. set { SetProperty(ref m_MFC7IsEnable, value); }
  227. }
  228. public bool MFC8IsEnable
  229. {
  230. get { return m_MFC8IsEnable; }
  231. set { SetProperty(ref m_MFC8IsEnable, value); }
  232. }
  233. public bool IsInclude
  234. {
  235. get { return m_IsInclude; }
  236. set { SetProperty(ref m_IsInclude, value); }
  237. }
  238. public PressureType PressureType
  239. {
  240. get { return m_PressureType; }
  241. set { SetProperty(ref m_PressureType, value); }
  242. }
  243. public double TurboN2FlowSetPoint
  244. {
  245. get { return m_TurboN2FlowSetPoint; }
  246. set
  247. {
  248. //if (value != m_TurboN2FlowSetPoint)
  249. //{
  250. // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcN2.SetPoint", value);
  251. //}
  252. SetProperty(ref m_TurboN2FlowSetPoint, value);
  253. }
  254. }
  255. public List<string> CurrentModuleRecipes
  256. {
  257. get { return m_CurrentModuleRecipes; }
  258. set { SetProperty(ref m_CurrentModuleRecipes, value); }
  259. }
  260. public Recipe CurrentRecipe
  261. {
  262. get { return m_CurrentRecipe; }
  263. set { SetProperty(ref m_CurrentRecipe, value); }
  264. }
  265. public RecipeResult CurrentRecipeResult
  266. {
  267. get { return m_CurrentRecipeResult; }
  268. set { SetProperty(ref m_CurrentRecipeResult, value); }
  269. }
  270. public RecipeStep CurrentRecipeStep
  271. {
  272. get { return m_CurrentRecipeStep; }
  273. set { SetProperty(ref m_CurrentRecipeStep, value); }
  274. }
  275. public bool IsHasWafer
  276. {
  277. get { return m_IsHasWafer; }
  278. set { SetProperty(ref m_IsHasWafer, value); }
  279. }
  280. public AITMatchData MatchData
  281. {
  282. get { return m_MatchData; }
  283. set { SetProperty(ref m_MatchData, value); }
  284. }
  285. public bool IsTurboPumpAtSpeed
  286. {
  287. get { return m_IsTurboPumpAtSpeed; }
  288. set { SetProperty(ref m_IsTurboPumpAtSpeed, value); }
  289. }
  290. //public bool TurboPumpWaterFlowSwitch
  291. //{
  292. // get { return m_TurboPumpWaterFlowSwitch; }
  293. // set { SetProperty(ref m_TurboPumpWaterFlowSwitch, value); }
  294. //}
  295. //public float PendulumValvePosition
  296. //{
  297. // get { return m_PendulumValvePosition; }
  298. // set { SetProperty(ref m_PendulumValvePosition, value); }
  299. //}
  300. //public float BiasMatchC1
  301. //{
  302. // get { return m_BiasMatchC1; }
  303. // set
  304. // {
  305. // SetProperty(ref m_BiasMatchC1, value);
  306. // }
  307. //}
  308. //public float BiasMatchC2
  309. //{
  310. // get { return m_BiasMatchC2; }
  311. // set
  312. // {
  313. // SetProperty(ref m_BiasMatchC2, value);
  314. // }
  315. //}
  316. //public float MatchC1
  317. //{
  318. // get { return m_MatchC1; }
  319. // set
  320. // {
  321. // SetProperty(ref m_MatchC1, value);
  322. // }
  323. //}
  324. //public float MatchC2
  325. //{
  326. // get { return m_MatchC2; }
  327. // set
  328. // {
  329. // SetProperty(ref m_MatchC2, value);
  330. // }
  331. //}
  332. public AITPendulumValveData PendulumValveData
  333. {
  334. get { return m_PendulumValveData; }
  335. set
  336. {
  337. SetProperty(ref m_PendulumValveData, value);
  338. }
  339. }
  340. //public AITHVData ESCHVData
  341. //{
  342. // get { return m_ESCHVData; }
  343. // set
  344. // {
  345. // SetProperty(ref m_ESCHVData, value);
  346. // }
  347. //}
  348. //public int ESCHVOutputVoltage
  349. //{
  350. // get { return m_ESCHVOutputVoltage; }
  351. // set
  352. // {
  353. // SetProperty(ref m_ESCHVOutputVoltage, value);
  354. // }
  355. //}
  356. //public float ChillerTemperature
  357. //{
  358. // get { return m_ChillerTemperature; }
  359. // set
  360. // {
  361. // SetProperty(ref m_ChillerTemperature, value);
  362. // }
  363. //}
  364. //public float HVTemperature
  365. //{
  366. // get { return m_HVTemperature; }
  367. // set
  368. // {
  369. // SetProperty(ref m_HVTemperature, value);
  370. // }
  371. //}
  372. public bool IsLidClosed
  373. {
  374. get { return m_IsLidClosed; }
  375. set
  376. {
  377. SetProperty(ref m_IsLidClosed, value);
  378. }
  379. }
  380. public bool IsSlitDoorClosed
  381. {
  382. get { return m_IsSlitDoorClosed; }
  383. set
  384. {
  385. SetProperty(ref m_IsSlitDoorClosed, value);
  386. }
  387. }
  388. //public bool LiftPinIsUp
  389. //{
  390. // get { return m_LiftPinIsUp; }
  391. // set
  392. // {
  393. // SetProperty(ref m_LiftPinIsUp, value);
  394. // }
  395. //}
  396. public int TurboPumpRotationalSpeed
  397. {
  398. get { return m_TurboPumpRotationalSpeed; }
  399. set
  400. {
  401. SetProperty(ref m_TurboPumpRotationalSpeed, value);
  402. }
  403. }
  404. //public float ESCHePressure
  405. //{
  406. // get { return m_ESCHePressure; }
  407. // set
  408. // {
  409. // SetProperty(ref m_ESCHePressure, value);
  410. // }
  411. //}
  412. public float ChamberPressure
  413. {
  414. get { return m_ChamberPressure; }
  415. set
  416. {
  417. SetProperty(ref m_ChamberPressure, value);
  418. }
  419. }
  420. public float ProcessPressure
  421. {
  422. get { return m_ProcessPressure; }
  423. set
  424. {
  425. SetProperty(ref m_ProcessPressure, value);
  426. }
  427. }
  428. public float ForelinePressure
  429. {
  430. get { return m_ForelinePressurePressure; }
  431. set
  432. {
  433. SetProperty(ref m_ForelinePressurePressure, value);
  434. }
  435. }
  436. public float PenningPressure
  437. {
  438. get { return m_PenningPressure; }
  439. set
  440. {
  441. SetProperty(ref m_PenningPressure, value);
  442. }
  443. }
  444. public bool SourceRFMatchInterlock
  445. {
  446. get { return m_SourceRFMatchInterlock; }
  447. set
  448. {
  449. SetProperty(ref m_SourceRFMatchInterlock, value);
  450. }
  451. }
  452. public bool IsWLK
  453. {
  454. get { return m_IsWLK; }
  455. set
  456. {
  457. SetProperty(ref m_IsWLK, value);
  458. }
  459. }
  460. public bool IsWaterFlowOk
  461. {
  462. get { return m_IsWaterFlowOk; }
  463. set
  464. {
  465. SetProperty(ref m_IsWaterFlowOk, value);
  466. }
  467. }
  468. public bool IsCDAOK
  469. {
  470. get { return m_IsCDAOK; }
  471. set
  472. {
  473. SetProperty(ref m_IsCDAOK, value);
  474. }
  475. }
  476. public bool SensorGasBoxDoor
  477. {
  478. get { return m_SensorGasBoxDoor; }
  479. set
  480. {
  481. SetProperty(ref m_SensorGasBoxDoor, value);
  482. }
  483. }
  484. public bool SensorGasBoxPressure
  485. {
  486. get { return m_SensorGasBoxPressure; }
  487. set
  488. {
  489. SetProperty(ref m_SensorGasBoxPressure, value);
  490. }
  491. }
  492. public bool SensorN2PurgePressure
  493. {
  494. get { return m_SensorN2PurgePressure; }
  495. set
  496. {
  497. SetProperty(ref m_SensorN2PurgePressure, value);
  498. }
  499. }
  500. public bool SensorPN2PurgePressure
  501. {
  502. get { return m_SensorPN2PurgePressure; }
  503. set
  504. {
  505. SetProperty(ref m_SensorPN2PurgePressure, value);
  506. }
  507. }
  508. public bool IsTurboPumpInterlock
  509. {
  510. get { return m_IsTurboPumpInterlock; }
  511. set
  512. {
  513. SetProperty(ref m_IsTurboPumpInterlock, value);
  514. }
  515. }
  516. public string ModuleName
  517. {
  518. get { return m_ModuleName; }
  519. set
  520. {
  521. SetProperty(ref m_ModuleName, value);
  522. }
  523. }
  524. public double MFC1SetPoint
  525. {
  526. get { return m_MFC1SetPoint; }
  527. set { SetProperty(ref m_MFC1SetPoint, value); }
  528. }
  529. public double MFC2SetPoint
  530. {
  531. get { return m_MFC2SetPoint; }
  532. set { SetProperty(ref m_MFC2SetPoint, value); }
  533. }
  534. public double MFC3SetPoint
  535. {
  536. get { return m_MFC3SetPoint; }
  537. set { SetProperty(ref m_MFC3SetPoint, value); }
  538. }
  539. public double MFC4SetPoint
  540. {
  541. get { return m_MFC4SetPoint; }
  542. set { SetProperty(ref m_MFC4SetPoint, value); }
  543. }
  544. public double MFC5SetPoint
  545. {
  546. get { return m_MFC5SetPoint; }
  547. set { SetProperty(ref m_MFC5SetPoint, value); }
  548. }
  549. public double MFC6SetPoint
  550. {
  551. get { return m_MFC6SetPoint; }
  552. set { SetProperty(ref m_MFC6SetPoint, value); }
  553. }
  554. public double MFC7SetPoint
  555. {
  556. get { return m_MFC7SetPoint; }
  557. set { SetProperty(ref m_MFC7SetPoint, value); }
  558. }
  559. public double MFC8SetPoint
  560. {
  561. get { return m_MFC8SetPoint; }
  562. set { SetProperty(ref m_MFC8SetPoint, value); }
  563. }
  564. public double N2SetPoint
  565. {
  566. get { return m_N2SetPoint; }
  567. set { SetProperty(ref m_N2SetPoint, value); }
  568. }
  569. //public double RFBoxC1Setpoint
  570. //{
  571. // get { return m_RFBoxC1Setpoint; }
  572. // set { SetProperty(ref m_RFBoxC1Setpoint, value); }
  573. //}
  574. public AITMfcData MFC1Data
  575. {
  576. get { return m_MFC1Data; }
  577. set { SetProperty(ref m_MFC1Data, value); }
  578. }
  579. public AITMfcData MFC2Data
  580. {
  581. get { return m_MFC2Data; }
  582. set { SetProperty(ref m_MFC2Data, value); }
  583. }
  584. public AITMfcData MFC3Data
  585. {
  586. get { return m_MFC3Data; }
  587. set { SetProperty(ref m_MFC3Data, value); }
  588. }
  589. public AITMfcData MFC4Data
  590. {
  591. get { return m_MFC4Data; }
  592. set { SetProperty(ref m_MFC4Data, value); }
  593. }
  594. public AITMfcData MFC5Data
  595. {
  596. get { return m_MFC5Data; }
  597. set { SetProperty(ref m_MFC5Data, value); }
  598. }
  599. public AITMfcData MFC6Data
  600. {
  601. get { return m_MFC6Data; }
  602. set { SetProperty(ref m_MFC6Data, value); }
  603. }
  604. public AITMfcData MFC7Data
  605. {
  606. get { return m_MFC7Data; }
  607. set { SetProperty(ref m_MFC7Data, value); }
  608. }
  609. public AITMfcData MFC8Data
  610. {
  611. get { return m_MFC8Data; }
  612. set { SetProperty(ref m_MFC8Data, value); }
  613. }
  614. //public AITMfcData MFCHeData
  615. //{
  616. // get { return m_MFCHeData; }
  617. // set { SetProperty(ref m_MFCHeData, value); }
  618. //}
  619. public AITMfcData MFCN2Data
  620. {
  621. get { return m_MFCN2Data; }
  622. set { SetProperty(ref m_MFCN2Data, value); }
  623. }
  624. //public AITMatchData RFBoxData
  625. //{
  626. // get { return m_RFBoxData; }
  627. // set { SetProperty(ref m_RFBoxData, value); }
  628. //}
  629. //public AITHeaterData ValveHeaterData
  630. //{
  631. // get { return m_ValveHeaterData; }
  632. // set { SetProperty(ref m_ValveHeaterData, value); }
  633. //}
  634. //public AITHeaterData ForelineHeaterData
  635. //{
  636. // get { return m_ForelineHeaterData; }
  637. // set { SetProperty(ref m_ForelineHeaterData, value); }
  638. //}
  639. //public AITHeaterData WallHeaterData
  640. //{
  641. // get { return m_WallHeaterData; }
  642. // set { SetProperty(ref m_WallHeaterData, value); }
  643. //}
  644. public AITRfData SRFData
  645. {
  646. get { return m_SRFData; }
  647. set { SetProperty(ref m_SRFData, value); }
  648. }
  649. //public AITRfData BRFData
  650. //{
  651. // get { return m_BRFData; }
  652. // set { SetProperty(ref m_BRFData, value); }
  653. //}
  654. public PMState PMCurrentState
  655. {
  656. get { return m_PMCurrentState; }
  657. set { SetProperty(ref m_PMCurrentState, value); }
  658. }
  659. #region 阀
  660. public bool GasFinalValveIsOpen
  661. {
  662. get { return m_GasFinalValveIsOpen; }
  663. set { SetProperty(ref m_GasFinalValveIsOpen, value); }
  664. }
  665. public bool PVN21ValveIsOpen
  666. {
  667. get { return m_PVN21ValveIsOpen; }
  668. set { SetProperty(ref m_PVN21ValveIsOpen, value); }
  669. }
  670. public bool PVN22ValveIsOpen
  671. {
  672. get { return m_PVN22ValveIsOpen; }
  673. set { SetProperty(ref m_PVN22ValveIsOpen, value); }
  674. }
  675. public bool N2ValveIsOpen
  676. {
  677. get { return m_N2ValveIsOpen; }
  678. set { SetProperty(ref m_N2ValveIsOpen, value); }
  679. }
  680. public bool O2ValveIsOpen
  681. {
  682. get { return m_O2ValveIsOpen; }
  683. set { SetProperty(ref m_O2ValveIsOpen, value); }
  684. }
  685. public bool PV11ValveIsOpen
  686. {
  687. get { return m_PV11ValveIsOpen; }
  688. set { SetProperty(ref m_PV11ValveIsOpen, value); }
  689. }
  690. public bool PV12ValveIsOpen
  691. {
  692. get { return m_PV12ValveIsOpen; }
  693. set { SetProperty(ref m_PV12ValveIsOpen, value); }
  694. }
  695. public bool MFC1ValveIsOpen
  696. {
  697. get { return m_MFC1ValveIsOpen; }
  698. set { SetProperty(ref m_MFC1ValveIsOpen, value); }
  699. }
  700. public bool PV21ValveIsOpen
  701. {
  702. get { return m_PV21ValveIsOpen; }
  703. set { SetProperty(ref m_PV21ValveIsOpen, value); }
  704. }
  705. public bool PV22ValveIsOpen
  706. {
  707. get { return m_PV22ValveIsOpen; }
  708. set { SetProperty(ref m_PV22ValveIsOpen, value); }
  709. }
  710. public bool MFC2ValveIsOpen
  711. {
  712. get { return m_MFC2ValveIsOpen; }
  713. set { SetProperty(ref m_MFC2ValveIsOpen, value); }
  714. }
  715. public bool PV31ValveIsOpen
  716. {
  717. get { return m_PV31ValveIsOpen; }
  718. set { SetProperty(ref m_PV31ValveIsOpen, value); }
  719. }
  720. public bool PV32ValveIsOpen
  721. {
  722. get { return m_PV32ValveIsOpen; }
  723. set { SetProperty(ref m_PV32ValveIsOpen, value); }
  724. }
  725. public bool MFC3ValveIsOpen
  726. {
  727. get { return m_MFC3ValveIsOpen; }
  728. set { SetProperty(ref m_MFC3ValveIsOpen, value); }
  729. }
  730. public bool PV41ValveIsOpen
  731. {
  732. get { return m_PV41ValveIsOpen; }
  733. set { SetProperty(ref m_PV41ValveIsOpen, value); }
  734. }
  735. public bool PV42ValveIsOpen
  736. {
  737. get { return m_PV42ValveIsOpen; }
  738. set { SetProperty(ref m_PV42ValveIsOpen, value); }
  739. }
  740. public bool MFC4ValveIsOpen
  741. {
  742. get { return m_MFC4ValveIsOpen; }
  743. set { SetProperty(ref m_MFC4ValveIsOpen, value); }
  744. }
  745. public bool MFC5ValveIsOpen
  746. {
  747. get { return m_MFC5ValveIsOpen; }
  748. set { SetProperty(ref m_MFC5ValveIsOpen, value); }
  749. }
  750. public bool MFC6ValveIsOpen
  751. {
  752. get { return m_MFC6ValveIsOpen; }
  753. set { SetProperty(ref m_MFC6ValveIsOpen, value); }
  754. }
  755. public bool MFC7ValveIsOpen
  756. {
  757. get { return m_MFC7ValveIsOpen; }
  758. set { SetProperty(ref m_MFC7ValveIsOpen, value); }
  759. }
  760. public bool MFC8ValveIsOpen
  761. {
  762. get { return m_MFC8ValveIsOpen; }
  763. set { SetProperty(ref m_MFC8ValveIsOpen, value); }
  764. }
  765. //public bool PVHe1ValveIsOpen
  766. //{
  767. // get { return m_PVHe1ValveIsOpen; }
  768. // set { SetProperty(ref m_PVHe1ValveIsOpen, value); }
  769. //}
  770. //public bool PVHe2ValveIsOpen
  771. //{
  772. // get { return m_PVHe2ValveIsOpen; }
  773. // set { SetProperty(ref m_PVHe2ValveIsOpen, value); }
  774. //}
  775. public bool TurboPumpPumpingValveIsOpen
  776. {
  777. get { return m_TurboPumpPumpingValveIsOpen; }
  778. set { SetProperty(ref m_TurboPumpPumpingValveIsOpen, value); }
  779. }
  780. public bool TurboPumpPurgeValveIsOpen
  781. {
  782. get { return m_TurboPumpPurgeValveIsOpen; }
  783. set
  784. {
  785. if (value != m_TurboPumpPurgeValveIsOpen)
  786. {
  787. if (value == true)
  788. {
  789. var setpoint = Convert.ToInt32(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.TurboN2FlowSetPoint"));
  790. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcN2.SetPoint", setpoint);
  791. }
  792. else
  793. {
  794. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.MfcN2.SetPoint", 0);
  795. }
  796. }
  797. SetProperty(ref m_TurboPumpPurgeValveIsOpen, value);
  798. }
  799. }
  800. public bool SoftPumpValveIsOpen
  801. {
  802. get { return m_SoftPumpValveIsOpen; }
  803. set { SetProperty(ref m_SoftPumpValveIsOpen, value); }
  804. }
  805. public bool FastPumpValveIsOpen
  806. {
  807. get { return m_FastPumpValveIsOpen; }
  808. set { SetProperty(ref m_FastPumpValveIsOpen, value); }
  809. }
  810. public bool GuageValveIsOpen
  811. {
  812. get { return m_GuageValveIsOpen; }
  813. set { SetProperty(ref m_GuageValveIsOpen, value); }
  814. }
  815. public bool PenningGaugeValveIsOpen
  816. {
  817. get { return m_PenningGaugeValveIsOpen; }
  818. set { SetProperty(ref m_PenningGaugeValveIsOpen, value); }
  819. }
  820. #endregion
  821. public Dictionary<string, object> RtDataValues
  822. {
  823. get { return m_RtDataValues; }
  824. set { SetProperty(ref m_RtDataValues, value); }
  825. }
  826. public bool PumpIsOpen
  827. {
  828. get { return m_PumpIsOpen; }
  829. set { SetProperty(ref m_PumpIsOpen, value); }
  830. }
  831. public bool PendulumValveIsOpen
  832. {
  833. get { return m_PendulumValveIsOpen; }
  834. set { SetProperty(ref m_PendulumValveIsOpen, value); }
  835. }
  836. public bool PurgeValveIsOpen
  837. {
  838. get { return m_PurgeValveIsOpen; }
  839. set { SetProperty(ref m_PurgeValveIsOpen, value); }
  840. }
  841. public bool N2Purge1ValveIsOpen
  842. {
  843. get { return m_N2Purge1ValveIsOpen; }
  844. set { SetProperty(ref m_N2Purge1ValveIsOpen, value); }
  845. }
  846. public bool N2Purge2ValveIsOpen
  847. {
  848. get { return m_N2Purge2ValveIsOpen; }
  849. set { SetProperty(ref m_N2Purge2ValveIsOpen, value); }
  850. }
  851. public bool TurboIsOpen
  852. {
  853. get { return m_TurboIsOpen; }
  854. set { SetProperty(ref m_TurboIsOpen, value); }
  855. }
  856. public bool IsATM
  857. {
  858. get { return m_IsATM; }
  859. set { SetProperty(ref m_IsATM, value); }
  860. }
  861. public bool IsVAC
  862. {
  863. get { return m_IsVAC; }
  864. set { SetProperty(ref m_IsVAC, value); }
  865. }
  866. //public bool BRFIsOn
  867. //{
  868. // get { return m_BRFIsOn; }
  869. // set { SetProperty(ref m_BRFIsOn, value); }
  870. //}
  871. //public bool SRFIsOn
  872. //{
  873. // get { return m_SRFIsOn; }
  874. // set { SetProperty(ref m_SRFIsOn, value); }
  875. //}
  876. //public int PositionValue
  877. //{
  878. // get { return m_PositionValue; }
  879. // set { SetProperty(ref m_PositionValue, value); }
  880. //}
  881. //public bool IsPositionMode
  882. //{
  883. // get { return m_IsPositionMode; }
  884. // set { SetProperty(ref m_IsPositionMode, value); }
  885. //}
  886. //public double HeGasSetpoint
  887. //{
  888. // get { return m_HeGasSetpoint; }
  889. // set
  890. // {
  891. // SetProperty(ref m_HeGasSetpoint, value);
  892. // }
  893. //}
  894. //public int HePressureSetpoint
  895. //{
  896. // get { return m_HePressureSetpoint; }
  897. // set
  898. // {
  899. // SetProperty(ref m_HePressureSetpoint, value);
  900. // }
  901. //}
  902. public float SRFFwdPowerSetpoint
  903. {
  904. get { return m_SRFFwdPowerSetpoint; }
  905. set { SetProperty(ref m_SRFFwdPowerSetpoint, value); }
  906. }
  907. //public float BRFFwdPowerSetpoint
  908. //{
  909. // get { return m_BRFFwdPowerSetpoint; }
  910. // set { SetProperty(ref m_BRFFwdPowerSetpoint, value); }
  911. //}
  912. //public int ESCVoltage
  913. //{
  914. // get { return m_ESCVoltage; }
  915. // set { SetProperty(ref m_ESCVoltage, value); }
  916. //}
  917. public float SRFMatchC1SetPoint
  918. {
  919. get { return m_SRFMatchC1SetPoint; }
  920. set { SetProperty(ref m_SRFMatchC1SetPoint, value); }
  921. }
  922. public float SRFMatchC2SetPoint
  923. {
  924. get { return m_SRFMatchC2SetPoint; }
  925. set { SetProperty(ref m_SRFMatchC2SetPoint, value); }
  926. }
  927. //public string MatchWorkMode
  928. //{
  929. // get { return m_MatchWorkMode; }
  930. // set
  931. // {
  932. // SetProperty(ref m_MatchWorkMode, value);
  933. // }
  934. //}
  935. //public float BRFMatchC1
  936. //{
  937. // get { return m_BRFMatchC1; }
  938. // set { SetProperty(ref m_BRFMatchC1, value); }
  939. //}
  940. //public float BRFMatchC2
  941. //{
  942. // get { return m_BRFMatchC2; }
  943. // set { SetProperty(ref m_BRFMatchC2, value); }
  944. //}
  945. public bool GasIsFlowing
  946. {
  947. get { return m_GasIsFlowing; }
  948. set { SetProperty(ref m_GasIsFlowing, value); }
  949. }
  950. public bool IsProcessing
  951. {
  952. get { return m_IsProcessing; }
  953. set { SetProperty(ref m_IsProcessing, value); }
  954. }
  955. public bool IsAutoMode
  956. {
  957. get { return m_IsAutoMode; }
  958. set { SetProperty(ref m_IsAutoMode, value); }
  959. }
  960. public int SelectedRecipeIndex
  961. {
  962. get { return m_SelectedRecipeIndex; }
  963. set { SetProperty(ref m_SelectedRecipeIndex, value); }
  964. }
  965. public ComboBoxItem SelectedRecipeType
  966. {
  967. get { return m_SelectedRecipeType; }
  968. set { SetProperty(ref m_SelectedRecipeType, value); }
  969. }
  970. //public float ChillerTempSetpoint
  971. //{
  972. // get { return m_ChillerTempSetpoint; }
  973. // set { SetProperty(ref m_ChillerTempSetpoint, value); }
  974. //}
  975. public float WallTempSetpoint
  976. {
  977. get { return m_WallTempSetpoint; }
  978. set { SetProperty(ref m_WallTempSetpoint, value); }
  979. }
  980. //public bool HeIsPressureMode
  981. //{
  982. // get { return m_HeIsPressureMode; }
  983. // set { SetProperty(ref m_HeIsPressureMode, value); }
  984. //}
  985. //public bool ChillerIsOn
  986. //{
  987. // get { return m_ChillerIsOn; }
  988. // set { SetProperty(ref m_ChillerIsOn, value); }
  989. //}
  990. public double ChamberPressureFeedBack
  991. {
  992. get { return m_ChamberPressureFeedBack; }
  993. set { SetProperty(ref m_ChamberPressureFeedBack, value); }
  994. }
  995. public string WaferID
  996. {
  997. get { return m_WaferID; }
  998. set { SetProperty(ref m_WaferID, value); }
  999. }
  1000. public AITHighTemperatureHeaterData HighTemperatureHeaterData
  1001. {
  1002. get { return m_HighTemperatureHeaterData; }
  1003. set { SetProperty(ref m_HighTemperatureHeaterData, value); }
  1004. }
  1005. public ComboBoxItem SelectedPosition
  1006. {
  1007. get { return m_SelectedPosition; }
  1008. set { SetProperty(ref m_SelectedPosition, value); }
  1009. }
  1010. public int HighTemperatureHeaterTemperatureSetpoint
  1011. {
  1012. get { return m_HighTemperatureHeaterTemperatureSetpoint; }
  1013. set { SetProperty(ref m_HighTemperatureHeaterTemperatureSetpoint, value); }
  1014. }
  1015. public float HighTemperatureHeaterRatioSetpoint
  1016. {
  1017. get { return m_HighTemperatureHeaterRatioSetpoint; }
  1018. set { SetProperty(ref m_HighTemperatureHeaterRatioSetpoint, value); }
  1019. }
  1020. public AITHeaterData PendulumHeaterData
  1021. {
  1022. get { return m_PendulumHeaterData; }
  1023. set { SetProperty(ref m_PendulumHeaterData, value); }
  1024. }
  1025. public WaferInfo PMWafer
  1026. {
  1027. get { return m_PMWafer; }
  1028. set { SetProperty(ref m_PMWafer, value); }
  1029. }
  1030. public bool PVHeaterIsEnbale
  1031. {
  1032. get { return m_PVHeaterIsEnbale; }
  1033. set { SetProperty(ref m_PVHeaterIsEnbale, value); }
  1034. }
  1035. #endregion
  1036. #region 命令
  1037. private DelegateCommand _PMInitCommnad;
  1038. public DelegateCommand PMInitCommnad =>
  1039. _PMInitCommnad ?? (_PMInitCommnad = new DelegateCommand(OnPMInit));
  1040. private DelegateCommand _PMAbortCommnad;
  1041. public DelegateCommand PMAbortCommnad =>
  1042. _PMAbortCommnad ?? (_PMAbortCommnad = new DelegateCommand(OnPMAbort));
  1043. private DelegateCommand _GasCommand;
  1044. public DelegateCommand GasCommand =>
  1045. _GasCommand ?? (_GasCommand = new DelegateCommand(OnGas));
  1046. //private DelegateCommand _HeCommand;
  1047. //public DelegateCommand HeCommand =>
  1048. // _HeCommand ?? (_HeCommand = new DelegateCommand(OnHe));
  1049. //private DelegateCommand _RfCommand;
  1050. //public DelegateCommand RfCommand =>
  1051. // _RfCommand ?? (_RfCommand = new DelegateCommand(OnRf));
  1052. private DelegateCommand _PurgeCommand;
  1053. public DelegateCommand PurgeCommand =>
  1054. _PurgeCommand ?? (_PurgeCommand = new DelegateCommand(OnPurge));
  1055. private DelegateCommand _VentCommand;
  1056. public DelegateCommand VentCommand =>
  1057. _VentCommand ?? (_VentCommand = new DelegateCommand(OnVent));
  1058. private DelegateCommand _PumpCommand;
  1059. public DelegateCommand PumpCommand =>
  1060. _PumpCommand ?? (_PumpCommand = new DelegateCommand(OnPump));
  1061. private DelegateCommand _OpenPumpCommand;
  1062. public DelegateCommand OpenPumpCommand =>
  1063. _OpenPumpCommand ?? (_OpenPumpCommand = new DelegateCommand(OnOpenPump));
  1064. private DelegateCommand _ClosePumpCommand;
  1065. public DelegateCommand ClosePumpCommand =>
  1066. _ClosePumpCommand ?? (_ClosePumpCommand = new DelegateCommand(OnClosePump));
  1067. private DelegateCommand _OpenTurboPumpCommand;
  1068. public DelegateCommand OpenTurboPumpCommand =>
  1069. _OpenTurboPumpCommand ?? (_OpenTurboPumpCommand = new DelegateCommand(OnOpenTurboPump));
  1070. private DelegateCommand _CloseTurboPumpCommand;
  1071. public DelegateCommand CloseTurboPumpCommand =>
  1072. _CloseTurboPumpCommand ?? (_CloseTurboPumpCommand = new DelegateCommand(OnCloseTurboPump));
  1073. private DelegateCommand _OpenPendulumValveCommand;
  1074. public DelegateCommand OpenPendulumValveCommand =>
  1075. _OpenPendulumValveCommand ?? (_OpenPendulumValveCommand = new DelegateCommand(OnOpenPendulumValve));
  1076. private DelegateCommand _ClosePendulumValveCommand;
  1077. public DelegateCommand ClosePendulumValveCommand =>
  1078. _ClosePendulumValveCommand ?? (_ClosePendulumValveCommand = new DelegateCommand(OnClosePendulumValve));
  1079. //private DelegateCommand<object> _PinUpDownCommand;
  1080. //public DelegateCommand<object> PinUpDownCommand =>
  1081. // _PinUpDownCommand ?? (_PinUpDownCommand = new DelegateCommand<object>(OnPinUpDown));
  1082. //private DelegateCommand<object> _LidUpDownCommand;
  1083. //public DelegateCommand<object> LidUpDownCommand =>
  1084. // _LidUpDownCommand ?? (_LidUpDownCommand = new DelegateCommand<object>(OnLidUpDown));
  1085. private DelegateCommand _SetSRfCommand;
  1086. public DelegateCommand SetSRfCommand =>
  1087. _SetSRfCommand ?? (_SetSRfCommand = new DelegateCommand(OnSetSRf));
  1088. //private DelegateCommand _SetBRfCommand;
  1089. //public DelegateCommand SetBRfCommand =>
  1090. // _SetBRfCommand ?? (_SetBRfCommand = new DelegateCommand(OnSetBRf));
  1091. private DelegateCommand _OpenButterflyValveViewCommand;
  1092. public DelegateCommand OpenButterflyValveViewCommand =>
  1093. _OpenButterflyValveViewCommand ?? (_OpenButterflyValveViewCommand = new DelegateCommand(OnOpenButterflyValveView));
  1094. //private DelegateCommand _HVCommand;
  1095. //public DelegateCommand HVCommand =>
  1096. // _HVCommand ?? (_HVCommand = new DelegateCommand(OnHV));
  1097. //private DelegateCommand _HVSetCommand;
  1098. //public DelegateCommand HVSetCommand =>
  1099. // _HVSetCommand ?? (_HVSetCommand = new DelegateCommand(OnHVSet));
  1100. private DelegateCommand _LoadRecipeCommand;
  1101. public DelegateCommand LoadRecipeCommand =>
  1102. _LoadRecipeCommand ?? (_LoadRecipeCommand = new DelegateCommand(OnLoadRecipe));
  1103. private DelegateCommand _SwitchTypeCommand;
  1104. public DelegateCommand SwitchTypeCommand =>
  1105. _SwitchTypeCommand ?? (_SwitchTypeCommand = new DelegateCommand(OnSwitchType));
  1106. private DelegateCommand<object> _ControlValveCommand;
  1107. public DelegateCommand<object> ControlValveCommand =>
  1108. _ControlValveCommand ?? (_ControlValveCommand = new DelegateCommand<object>(OnControlValve));
  1109. private DelegateCommand<object> _RunRecipeCommand;
  1110. public DelegateCommand<object> RunRecipeCommand =>
  1111. _RunRecipeCommand ?? (_RunRecipeCommand = new DelegateCommand<object>(OnRunRecipe));
  1112. private DelegateCommand _SetChillerTempCommand;
  1113. public DelegateCommand SetChillerTempCommand =>
  1114. _SetChillerTempCommand ?? (_SetChillerTempCommand = new DelegateCommand(OnSetChillerTemp));
  1115. private DelegateCommand _SetHeaterRatioCommand;
  1116. public DelegateCommand SetHeaterRatioCommand =>
  1117. _SetHeaterRatioCommand ?? (_SetHeaterRatioCommand = new DelegateCommand(OnSetHeaterRatio));
  1118. //private DelegateCommand _OnOffChillerCommand;
  1119. //public DelegateCommand OnOffChillerCommand =>
  1120. // _OnOffChillerCommand ?? (_OnOffChillerCommand = new DelegateCommand(OnOffChiller));
  1121. private DelegateCommand<object> _HeaterCommand;
  1122. public DelegateCommand<object> HeaterCommand =>
  1123. _HeaterCommand ?? (_HeaterCommand = new DelegateCommand<object>(OnHeater));
  1124. private DelegateCommand _EndStepCommand;
  1125. public DelegateCommand EndStepCommand =>
  1126. _EndStepCommand ?? (_EndStepCommand = new DelegateCommand(OnEndStep));
  1127. private DelegateCommand _GotoPositionCommand;
  1128. public DelegateCommand GotoPositionCommand =>
  1129. _GotoPositionCommand ?? (_GotoPositionCommand = new DelegateCommand(OnGotoPosition));
  1130. private DelegateCommand _SwitchHighTemperatureHeaterCommand;
  1131. public DelegateCommand SwitchHighTemperatureHeaterCommand =>
  1132. _SwitchHighTemperatureHeaterCommand ?? (_SwitchHighTemperatureHeaterCommand = new DelegateCommand(OnSwitchHighTemperatureHeater));
  1133. private DelegateCommand _ResetHighTemperatureHeaterCommand;
  1134. public DelegateCommand ResetHighTemperatureHeaterCommand =>
  1135. _ResetHighTemperatureHeaterCommand ?? (_ResetHighTemperatureHeaterCommand = new DelegateCommand(OnResetHighTemperatureHeater));
  1136. private DelegateCommand _ResetHighTemperatureHeaterLiftCommand;
  1137. public DelegateCommand ResetHighTemperatureHeaterLiftCommand =>
  1138. _ResetHighTemperatureHeaterLiftCommand ?? (_ResetHighTemperatureHeaterLiftCommand = new DelegateCommand(OnResetHighTemperatureHeaterLift));
  1139. private DelegateCommand<object> _AbortRecipeCommnad;
  1140. public DelegateCommand<object> AbortRecipeCommnad =>
  1141. _AbortRecipeCommnad ?? (_AbortRecipeCommnad = new DelegateCommand<object>(OnAbortRecipe));
  1142. //private DelegateCommand _SetRfBoxC1Command;
  1143. //public DelegateCommand SetRfBoxC1Command =>
  1144. // _SetRfBoxC1Command ?? (_SetRfBoxC1Command = new DelegateCommand(OnSetRfBoxC1));
  1145. private DelegateCommand _IncludeCommand;
  1146. public DelegateCommand IncludeCommand =>
  1147. _IncludeCommand ?? (_IncludeCommand = new DelegateCommand(OnInclude));
  1148. private DelegateCommand<object> _SetAutoRatioCommand;
  1149. public DelegateCommand<object> SetAutoRatioCommand =>
  1150. _SetAutoRatioCommand ?? (_SetAutoRatioCommand = new DelegateCommand<object>(OnSetAutoRatio));
  1151. private DelegateCommand<object> _EnableAutoRatioCommand;
  1152. public DelegateCommand<object> EnableAutoRatioCommand =>
  1153. _EnableAutoRatioCommand ?? (_EnableAutoRatioCommand = new DelegateCommand<object>(OnEnableAutoRatio));
  1154. #endregion
  1155. #region 构造函数
  1156. public OverKepler2200AViewModel()
  1157. {
  1158. m_RtDataKeys = new List<string>();
  1159. m_IsATM = true;
  1160. ModuleName = "PMA";
  1161. //CurrentModuleRecipes = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName)).ToList();
  1162. timer = new DispatcherTimer();
  1163. timer.Interval = TimeSpan.FromMilliseconds(500);
  1164. timer.Tick += timer_Tick;
  1165. //timer.Start();
  1166. //PressureType = (PressureType)Convert.ToInt32(QueryDataClient.Instance.Service.GetConfig("System.PressureUnitType"));
  1167. //m_ChamberType=(JetChamber)Enum.Parse(typeof(JetChamber), QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.ChamberType").ToString());
  1168. PressureType = PressureType.Pa;
  1169. }
  1170. #endregion
  1171. #region 命令方法
  1172. private void OnControlValve(object obj)
  1173. {
  1174. CommonValveControl commonValveControl = (CommonValveControl)obj;
  1175. if (commonValveControl.IsCanEdit == true)
  1176. {
  1177. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ControlValve", Convert.ToInt32(commonValveControl.Tag.ToString()), !commonValveControl.Status);
  1178. string operation = commonValveControl.Status ? "关闭" : "打开";
  1179. LOG.Info($"{ModuleName},{operation}{((ValveType)Convert.ToInt32(commonValveControl.Tag.ToString())).ToString()}阀");
  1180. }
  1181. }
  1182. private void OnPMInit()
  1183. {
  1184. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Home");
  1185. LOG.Info($"{ModuleName},初始化");
  1186. }
  1187. private void OnGas()
  1188. {
  1189. object[] mfc = new object[8];
  1190. mfc[0] = MFC1SetPoint;
  1191. mfc[1] = MFC2SetPoint;
  1192. mfc[2] = MFC3SetPoint;
  1193. mfc[3] = MFC4SetPoint;
  1194. mfc[4] = MFC5SetPoint;
  1195. mfc[5] = MFC6SetPoint;
  1196. mfc[6] = MFC7SetPoint;
  1197. mfc[7] = MFC8SetPoint;
  1198. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.GasFlow}", mfc);
  1199. string operation = GasIsFlowing ? "关闭" : "打开";
  1200. LOG.Info($"{ModuleName},{operation} GasFlow({mfc[0]},{mfc[1]},{mfc[2]},{mfc[3]},{mfc[4]},{mfc[5]},{mfc[6]},{mfc[7]})");
  1201. }
  1202. //private void OnRf()
  1203. //{
  1204. // if (PMCurrentState == PMState.RfPowering)
  1205. // {
  1206. // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
  1207. // LOG.Info($"{ModuleName},关闭RF");
  1208. // }
  1209. // else
  1210. // {
  1211. // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.RfPower}");
  1212. // LOG.Info($"{ModuleName},开始RF,Power值{SRFFwdPowerSetpoint}");
  1213. // }
  1214. //}
  1215. private void OnPurge()
  1216. {
  1217. if (PMCurrentState == PMState.Purging)
  1218. {
  1219. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
  1220. LOG.Info($"{ModuleName},关闭Purge");
  1221. }
  1222. else
  1223. {
  1224. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Purge");
  1225. LOG.Info($"{ModuleName},开始Purge");
  1226. }
  1227. }
  1228. private void OnVent()
  1229. {
  1230. if (PMCurrentState == PMState.Venting)
  1231. {
  1232. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
  1233. LOG.Info($"{ModuleName},关闭Vent");
  1234. }
  1235. else
  1236. {
  1237. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Vent");
  1238. LOG.Info($"{ModuleName},开始Vent");
  1239. }
  1240. }
  1241. private void OnPump()
  1242. {
  1243. if (PMCurrentState == PMState.Pumping)
  1244. {
  1245. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
  1246. return;
  1247. }
  1248. string BasePressureSetPoint = QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Pump.PumpBasePressure").ToString();
  1249. string PumpLimitSetPoint = QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.Pump.PumpTimeLimit").ToString();
  1250. // 设置底压
  1251. double basePressure = string.IsNullOrEmpty(BasePressureSetPoint) ? 0 : Convert.ToDouble(BasePressureSetPoint);
  1252. if (basePressure <= 0.01 || basePressure >= 1000)
  1253. {
  1254. MessageBox.Show($"基准压力设定值 {basePressure} 无效,应该在0到1000毫托之间");
  1255. return;
  1256. }
  1257. double pumpLimit = string.IsNullOrEmpty(PumpLimitSetPoint) ? 0 : Convert.ToDouble(PumpLimitSetPoint);
  1258. if (pumpLimit <= 0.01 || pumpLimit >= 1200)
  1259. {
  1260. MessageBox.Show($"抽气时间应该在0到1200之间,当前设定值{pumpLimit}");
  1261. return;
  1262. }
  1263. InvokeClient.Instance.Service.DoOperation("System.SetConfig", $"{ModuleName}.Pump.PumpBasePressure", basePressure.ToString());
  1264. InvokeClient.Instance.Service.DoOperation("System.SetConfig", $"{ModuleName}.Pump.PumpTimeLimit", pumpLimit.ToString());
  1265. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Pump");
  1266. LOG.Info($"{ModuleName},开始Pump Down");
  1267. }
  1268. private void OnOpenPump()
  1269. {
  1270. if (PMCurrentState == PMState.LaunchingPump)
  1271. {
  1272. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
  1273. return;
  1274. }
  1275. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.StartPump");
  1276. LOG.Info($"{ModuleName},打开Pump");
  1277. }
  1278. private void OnClosePump()
  1279. {
  1280. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ClosePump");
  1281. LOG.Info($"{ModuleName},关闭Pump");
  1282. }
  1283. private void OnOpenTurboPump()
  1284. {
  1285. if (PMCurrentState == PMState.LaunchingTurboPump)
  1286. {
  1287. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Abort}");
  1288. return;
  1289. }
  1290. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.StartTurboPump");
  1291. LOG.Info($"{ModuleName},打开分子泵");
  1292. }
  1293. private void OnCloseTurboPump()
  1294. {
  1295. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.CloseTurboPump");
  1296. LOG.Info($"{ModuleName},关闭分子泵");
  1297. }
  1298. private void OnOpenPendulumValve()
  1299. {
  1300. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.TurnPendulumValve", true);
  1301. LOG.Info($"{ModuleName},打开钟摆阀");
  1302. }
  1303. private void OnClosePendulumValve()
  1304. {
  1305. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.TurnPendulumValve", false);
  1306. LOG.Info($"{ModuleName},关闭钟摆阀");
  1307. }
  1308. //private void OnLidUpDown(object upDown)
  1309. //{
  1310. // if (upDown.ToString() == "Up")
  1311. // {
  1312. // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.Lid}.{AITCylinderOperation.Open}");
  1313. // LOG.Info($"{ModuleName},打开Lid");
  1314. // }
  1315. // else
  1316. // {
  1317. // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.Lid}.{AITCylinderOperation.Close}");
  1318. // LOG.Info($"{ModuleName},关闭Lid");
  1319. // }
  1320. //}
  1321. private void OnSetSRf()
  1322. {
  1323. if (SRFData.IsRfOn == true)
  1324. {
  1325. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetSRf", SRFFwdPowerSetpoint, false);
  1326. LOG.Info($"{ModuleName},关闭RF");
  1327. }
  1328. else
  1329. {
  1330. if (GasIsFlowing == true)
  1331. {
  1332. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.Match}.{AITRfOperation.SetMatchPosition}", SRFMatchC1SetPoint, SRFMatchC2SetPoint);
  1333. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetSRf", SRFFwdPowerSetpoint, true);
  1334. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.Match}.{AITRfOperation.SetMatchProcessMode}", "Auto");
  1335. LOG.Info($"{ModuleName},开始RF,Power值{SRFFwdPowerSetpoint}");
  1336. }
  1337. }
  1338. }
  1339. private void OnPMAbort()
  1340. {
  1341. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
  1342. LOG.Info($"{ModuleName},Abort");
  1343. }
  1344. private void OnOpenButterflyValveView()
  1345. {
  1346. var _mainWindow = Application.Current.Windows.Cast<Window>().FirstOrDefault(window => window is Window) as Window;
  1347. if (butterflyValveMessageBox == null || butterflyValveMessageBox.IsVisible == false)
  1348. {
  1349. butterflyValveMessageBox = new ButterflyValveView(ModuleName.ToString());
  1350. butterflyValveMessageBox.WindowStartupLocation = WindowStartupLocation.Manual;
  1351. butterflyValveMessageBox.Left = 700;
  1352. butterflyValveMessageBox.Top = 600;
  1353. butterflyValveMessageBox.Show();
  1354. butterflyValveMessageBox.Owner = _mainWindow;
  1355. }
  1356. }
  1357. private void OnLoadRecipe()
  1358. {
  1359. //string recipeName = CurrentModuleRecipes[SelectedRecipeIndex];
  1360. string recipeType = SelectedRecipeType.Content.ToString();
  1361. CurrentModuleRecipes = GetFilesNames(Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName, recipeType)).ToList();
  1362. }
  1363. private void OnSwitchType()
  1364. {
  1365. SelectedRecipeIndex = -1;
  1366. }
  1367. private void OnRunRecipe(object obj)
  1368. {
  1369. if (SelectedRecipeIndex == -1)
  1370. {
  1371. return;
  1372. }
  1373. string recipeName = CurrentModuleRecipes[SelectedRecipeIndex];
  1374. string recipeType = SelectedRecipeType.Content.ToString();
  1375. ClearData();
  1376. var recipePath = Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName, recipeType, recipeName + ".rcp");
  1377. CurrentRecipe = Recipe.Load(File.ReadAllText(recipePath));
  1378. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.RunRecipe}", recipeName, ModuleManager.ModuleInfos[ModuleName].WaferManager.Wafers[0].WaferID, recipeType);
  1379. LOG.Info($"{ModuleName},Run Recipe {recipeName},");
  1380. }
  1381. private void OnHeater(object obj)
  1382. {
  1383. if (IsAutoMode == true)
  1384. {
  1385. return;
  1386. }
  1387. AITHeaterData heaterData = obj as AITHeaterData;
  1388. var _mainWindow = Application.Current.Windows.Cast<Window>().FirstOrDefault(window => window is Window) as Window;
  1389. if (heaterView == null || heaterView.IsVisible == false)
  1390. {
  1391. heaterView = new HeaterView(heaterData, ModuleName);
  1392. heaterView.WindowStartupLocation = WindowStartupLocation.CenterScreen;
  1393. heaterView.Owner = _mainWindow;
  1394. heaterView.Show();
  1395. }
  1396. }
  1397. private void OnOnline()
  1398. {
  1399. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Online}");
  1400. LOG.Info($"{ModuleName},Switch to Online");
  1401. }
  1402. private void OnOffline()
  1403. {
  1404. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Offline}");
  1405. LOG.Info($"{ModuleName},Switch to Offline");
  1406. }
  1407. //private void OnSetRfBoxC1()
  1408. //{
  1409. // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{VenusDevice.RFBox}.{AITRfOperation.SetMatchPositionC1}", RFBoxC1Setpoint);
  1410. //}
  1411. private async void OnEndStep()
  1412. {
  1413. if (CurrentRecipeResult.RecipeStepNumber == CurrentRecipeResult.RecipeStepCount)
  1414. {
  1415. return;
  1416. }
  1417. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.ManualEndStep");
  1418. LOG.Info($"{ModuleName},Manual End Step{CurrentRecipeResult.RecipeStepNumber}");
  1419. await Task.Delay(500);
  1420. }
  1421. private void OnGotoPosition()
  1422. {
  1423. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HighTemperatureHeater.GotoPosition", SelectedPosition.Content);
  1424. LOG.Info($"{ModuleName},HighTemperatureHeater to {SelectedPosition.Content}");
  1425. }
  1426. private void OnSwitchHighTemperatureHeater()
  1427. {
  1428. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HighTemperatureHeater.SwitchHighTemperatureHeater", !HighTemperatureHeaterData.HighTemperatureHeaterIsonFeedBack);
  1429. LOG.Info($"{ModuleName},Set HighTemperatureHeater Temperature {!HighTemperatureHeaterData.HighTemperatureHeaterIsonFeedBack}");
  1430. }
  1431. private void OnResetHighTemperatureHeaterLift()
  1432. {
  1433. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HighTemperatureHeater.ResetHighTemperatureHeaterLift");
  1434. LOG.Info($"{ModuleName},Reset HighTemperatureHeater Lift");
  1435. }
  1436. private void OnResetHighTemperatureHeater()
  1437. {
  1438. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HighTemperatureHeater.ResetHighTemperatureHeater");
  1439. LOG.Info($"{ModuleName},Reset HighTemperatureHeater");
  1440. }
  1441. private void OnSetChillerTemp()
  1442. {
  1443. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HighTemperatureHeater.SetHighTemperatureHeaterTemperature", HighTemperatureHeaterTemperatureSetpoint);
  1444. LOG.Info($"{ModuleName},Set HighTemperatureHeater Temperature to {HighTemperatureHeaterTemperatureSetpoint}");
  1445. }
  1446. private void OnSetHeaterRatio()
  1447. {
  1448. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.HighTemperatureHeater.SetHighTemperatureHeaterRatio", HighTemperatureHeaterRatioSetpoint);
  1449. LOG.Info($"{ModuleName},Set HighTemperatureHeater Ratio to {HighTemperatureHeaterRatioSetpoint}");
  1450. }
  1451. private DelegateCommand _OnlineCommand;
  1452. public DelegateCommand OnlineCommand =>
  1453. _OnlineCommand ?? (_OnlineCommand = new DelegateCommand(OnOnline));
  1454. private DelegateCommand _OfflineCommand;
  1455. public DelegateCommand OfflineCommand =>
  1456. _OfflineCommand ?? (_OfflineCommand = new DelegateCommand(OnOffline));
  1457. private async void OnAbortRecipe(object obj)
  1458. {
  1459. if (PMCurrentState != PMState.Processing)
  1460. {
  1461. return;
  1462. }
  1463. switch (obj.ToString())
  1464. {
  1465. case "0":
  1466. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
  1467. break;
  1468. case "1":
  1469. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
  1470. //if (ESCHVData.IsOn == true)
  1471. //{
  1472. // await Task.Delay(3000);
  1473. // InvokeClient.Instance.Service.DoOperation($"{ModuleName}.SetESCHVIsOn", false);
  1474. //}
  1475. break;
  1476. case "2":
  1477. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.Abort");
  1478. await Task.Delay(3000);
  1479. InvokeClient.Instance.Service.DoOperation("ReturnWafer", ModuleName, 0);
  1480. break;
  1481. }
  1482. }
  1483. private void OnInclude()
  1484. {
  1485. if (IsInclude)
  1486. {
  1487. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Include}");
  1488. }
  1489. else
  1490. {
  1491. InvokeClient.Instance.Service.DoOperation($"{ModuleName}.{RtOperation.Exclude}");
  1492. }
  1493. }
  1494. private void OnSetAutoRatio(object moduleName)
  1495. {
  1496. var _mainWindow = Application.Current.Windows.Cast<Window>().FirstOrDefault(window => window is Window) as Window;
  1497. AutoRatioView autoRatioView = new AutoRatioView(ModuleName,HighTemperatureHeaterData.IsAutoRatio);
  1498. autoRatioView.WindowStartupLocation = WindowStartupLocation.Manual;
  1499. autoRatioView.Top = 530;
  1500. autoRatioView.Left = 540;
  1501. autoRatioView.Owner = _mainWindow;
  1502. autoRatioView.Show();
  1503. }
  1504. private void OnEnableAutoRatio(object ison)
  1505. {
  1506. InvokeClient.Instance.Service.DoOperation("System.SetConfig", $"{ModuleName}.HighTemperatureHeater.IsEnableAutoRatio", ison);
  1507. }
  1508. #endregion
  1509. #region 私有方法
  1510. private void ClearData()
  1511. {
  1512. SRFFwdPowerSetpoint = 0;
  1513. SRFMatchC1SetPoint = 0;
  1514. SRFMatchC2SetPoint = 0;
  1515. MFC1SetPoint = 0;
  1516. MFC2SetPoint = 0;
  1517. MFC3SetPoint = 0;
  1518. MFC4SetPoint = 0;
  1519. MFC5SetPoint = 0;
  1520. MFC6SetPoint = 0;
  1521. MFC7SetPoint = 0;
  1522. MFC8SetPoint = 0;
  1523. //HighTemperatureHeaterTemperatureSetpoint = 0;
  1524. //HighTemperatureHeaterRatioSetpoint = 0;
  1525. }
  1526. private IEnumerable<string> GetFilesNames(string path)
  1527. {
  1528. if (Directory.Exists(path))
  1529. {
  1530. return Directory.GetFiles(path, "*.rcp")?
  1531. .Select(Path.GetFileNameWithoutExtension);
  1532. }
  1533. else
  1534. {
  1535. return new List<string>();
  1536. }
  1537. }
  1538. void timer_Tick(object sender, EventArgs e)
  1539. {
  1540. RtDataValues = QueryDataClient.Instance.Service.PollData(m_RtDataKeys);
  1541. if (RtDataValues == null || RtDataValues.Count == 0)
  1542. {
  1543. return;
  1544. }
  1545. PVN21ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePVN21.IsOpen");
  1546. GasFinalValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveGasFinal.IsOpen");
  1547. PV11ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV11.IsOpen");
  1548. PV12ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV12.IsOpen");
  1549. PV21ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV21.IsOpen");
  1550. PV22ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV22.IsOpen");
  1551. PV31ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV31.IsOpen");
  1552. PV32ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV32.IsOpen");
  1553. PV41ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV41.IsOpen");
  1554. PV42ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePV42.IsOpen");
  1555. MFC1ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc1.IsOpen");
  1556. MFC2ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc2.IsOpen");
  1557. MFC3ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc3.IsOpen");
  1558. MFC4ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc4.IsOpen");
  1559. MFC5ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc5.IsOpen");
  1560. MFC6ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc6.IsOpen");
  1561. MFC7ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc7.IsOpen");
  1562. MFC8ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveMfc8.IsOpen");
  1563. N2ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveN2.IsOpen");
  1564. O2ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveO2.IsOpen");
  1565. SoftPumpValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveSoftPump.IsOpen");
  1566. FastPumpValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveFastPump.IsOpen");
  1567. GuageValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveGuage.IsOpen");
  1568. PenningGaugeValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePenningGauge.IsOpen");
  1569. //PVHe1ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePVHe1.IsOpen");
  1570. //PVHe2ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePVHe2.IsOpen");
  1571. PVN21ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePVN21.IsOpen");
  1572. PVN22ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePVN22.IsOpen");
  1573. TurboPumpPumpingValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveTurboPumpPumping.IsOpen");
  1574. TurboPumpPurgeValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveTurboPumpPurge.IsOpen");
  1575. PurgeValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValvePurge.IsOpen");
  1576. N2Purge1ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveN2Purge1.IsOpen");
  1577. N2Purge2ValveIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.ValveN2Purge2.IsOpen");
  1578. PumpIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.PumpIsRunning");
  1579. TurboIsOpen = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.TurboPumpIsRunning");
  1580. //LiftPinIsUp = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.LiftPinIsUp");
  1581. IsSlitDoorClosed = CommonFunction.GetValue<bool>(RtDataValues, $"TM.{ModuleName}SlitDoor.IsClosed");
  1582. IsLidClosed = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsLidClosed");
  1583. //PendulumValvePosition = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.GetPVPosition");
  1584. TurboPumpRotationalSpeed = Convert.ToInt32(RtDataValues[$"{ModuleName}.TurboPumpRotationalSpeed"].ToString());
  1585. //PositionValue = -((int)((PendulumValvePosition) * 0.09));
  1586. PMCurrentState = (PMState)Enum.Parse(typeof(PMState), RtDataValues[$"{ModuleName}.FsmState"].ToString());
  1587. GasIsFlowing = PMCurrentState == PMState.GasFlowing;
  1588. IsProcessing = PMCurrentState == PMState.Processing || PMCurrentState == PMState.Clean;
  1589. MFC1Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas1");
  1590. MFC2Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas2");
  1591. MFC3Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas3");
  1592. MFC4Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas4");
  1593. MFC5Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas5");
  1594. MFC6Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas6");
  1595. MFC7Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas7");
  1596. MFC8Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcGas8");
  1597. //MFCHeData = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcHe");
  1598. MFCN2Data = CommonFunction.GetValue<AITMfcData>(RtDataValues, $"{ModuleName}.MfcN2");
  1599. SRFData = CommonFunction.GetValue<AITRfData>(RtDataValues, $"{ModuleName}.{VenusDevice.Rf}.DeviceData");
  1600. //BRFData = CommonFunction.GetValue<AITRfData>(RtDataValues, $"{ModuleName}.{VenusDevice.BiasRf}.DeviceData");
  1601. PendulumValveData = CommonFunction.GetValue<AITPendulumValveData>(RtDataValues, $"{ModuleName}.{VenusDevice.PendulumValve}.DeviceData");
  1602. //ESCHVData= CommonFunction.GetValue<AITHVData>(RtDataValues, $"{ModuleName}.{VenusDevice.ESCHV}.DeviceData");
  1603. //ValveHeaterData = (AITHeaterData)RtDataValues[$"{ModuleName}.ValveHeater.DeviceData"];
  1604. //ForelineHeaterData = (AITHeaterData)RtDataValues[$"{ModuleName}.ForelineHeater.DeviceData"];
  1605. //WallHeaterData = (AITHeaterData)RtDataValues[$"{ModuleName}.WallHeater.DeviceData"];
  1606. PendulumHeaterData = (AITHeaterData)RtDataValues[$"{ModuleName}.PendulumHeater.DeviceData"];
  1607. ChamberPressure = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.ChamberPressure");
  1608. ProcessPressure = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.ProcessPressure");
  1609. ForelinePressure = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.ForelinePressure");
  1610. PenningPressure = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.PenningPressure");
  1611. ChamberPressureFeedBack = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.CalculationPressure");
  1612. //ESCHePressure = float.Parse(RtDataValues[$"{ModuleName}.ESCHePressure"].ToString());
  1613. //ChillerTemperature = float.Parse(RtDataValues[$"{ModuleName}.Chiller.Temp"].ToString());
  1614. //HVTemperature = float.Parse(RtDataValues[$"{ModuleName}.{VenusDevice.ESCHV}.Temp"].ToString());
  1615. //ChillerIsOn = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.Chiller.IsOn");
  1616. SourceRFMatchInterlock = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.SourceRFMatchInterlock");
  1617. IsWLK = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsWLK");
  1618. IsWaterFlowOk = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsWaterFlowOk");
  1619. IsTurboPumpInterlock = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsTurboPumpInterlock");
  1620. IsCDAOK = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsCDA_OK");
  1621. SensorGasBoxDoor = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IoSensor.GasBoxDoorSW.Value");
  1622. SensorGasBoxPressure = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IoSensor.GasBoxPressureSW.Value");
  1623. SensorN2PurgePressure = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IoSensor.N2PurgePressureSwitch.Value");
  1624. SensorPN2PurgePressure = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IoSensor.PN2PurgePressureSwitch.Value");
  1625. IsATM = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsATM");
  1626. IsVAC = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsVAC");
  1627. //ESCHVOutputVoltage = CommonFunction.GetValue<int>(RtDataValues, $"{ModuleName}.ESCHV.OutputVoltage");
  1628. //MatchC1 = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.{VenusDevice.Match}.C1");
  1629. //MatchC2 = CommonFunction.GetValue<float>(RtDataValues, $"{ModuleName}.{VenusDevice.Match}.C2");
  1630. //MatchWorkMode = CommonFunction.GetValue<string>(RtDataValues, $"{ModuleName}.{VenusDevice.Match}.WorkMode");
  1631. //TurboPumpWaterFlowSwitch = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.TurboPumpWaterFlowSwitch.Value");
  1632. IsTurboPumpAtSpeed = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsTurboPumpAtSpeed");
  1633. IsHasWafer = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.HasWafer");
  1634. WaferID = IsHasWafer ? ModuleManager.ModuleInfos[ModuleName].WaferManager.Wafers[0].SourceName : "";
  1635. MatchData = CommonFunction.GetValue<AITMatchData>(RtDataValues, $"{ModuleName}.{VenusDevice.Match}.DeviceData");
  1636. //RFBoxData = CommonFunction.GetValue<AITMatchData>(RtDataValues, $"{ModuleName}.{VenusDevice.RFBox}.DeviceData");
  1637. CurrentRecipeResult = CommonFunction.GetValue<RecipeResult>(RtDataValues, $"{ModuleName}.CurrentRecipeResult");
  1638. //if (IsProcessing)
  1639. //{
  1640. // if (CurrentRecipeResult!=null && CurrentRecipeResult.RecipeStepNumber != null && CurrentRecipeResult.RecipeStepNumber != currentRecipeNumber)
  1641. // {
  1642. // var recipePath = Path.Combine(QueryDataClient.Instance.Service.GetData("GetRTPath").ToString(), "Recipes", ModuleName, CurrentRecipeResult.RecipeType, CurrentRecipeResult.RecipeName + ".rcp");
  1643. // CurrentRecipe = Recipe.Load(File.ReadAllText(recipePath));
  1644. // CurrentRecipeStep = CurrentRecipe.Steps[Convert.ToInt32(CurrentRecipeResult.RecipeStepNumber) - 1];
  1645. // currentRecipeNumber = CurrentRecipeResult?.RecipeStepNumber;
  1646. // }
  1647. //}
  1648. if (IsProcessing)
  1649. {
  1650. ClearData();
  1651. }
  1652. //if (Math.Abs(100 - ProcessPressure) > 1 && ProcessPressure < 2000)
  1653. //{
  1654. // ChamberPressureFeedBack = ProcessPressure;
  1655. //}
  1656. //else
  1657. //{
  1658. // ChamberPressureFeedBack = ChamberPressure;
  1659. //}
  1660. HighTemperatureHeaterData = CommonFunction.GetValue<AITHighTemperatureHeaterData>(RtDataValues, $"{ModuleName}.HighTemperatureHeater.DeviceData");
  1661. IsAutoMode = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsOnline");
  1662. IsInclude = CommonFunction.GetValue<bool>(RtDataValues, $"{ModuleName}.IsInclude");
  1663. PMWafer = ModuleManager.ModuleInfos[$"{ModuleName}"].WaferManager.Wafers[0];
  1664. }
  1665. public void addDataKeys()
  1666. {
  1667. m_RtDataKeys.Clear();
  1668. m_RtDataKeys.Add($"{ModuleName}.MfcGas1");
  1669. m_RtDataKeys.Add($"{ModuleName}.MfcGas2");
  1670. m_RtDataKeys.Add($"{ModuleName}.MfcGas3");
  1671. m_RtDataKeys.Add($"{ModuleName}.MfcGas4");
  1672. m_RtDataKeys.Add($"{ModuleName}.MfcGas5");
  1673. m_RtDataKeys.Add($"{ModuleName}.MfcGas6");
  1674. m_RtDataKeys.Add($"{ModuleName}.MfcGas7");
  1675. m_RtDataKeys.Add($"{ModuleName}.MfcGas8");
  1676. //m_RtDataKeys.Add($"{ModuleName}.MfcHe");
  1677. m_RtDataKeys.Add($"{ModuleName}.MfcN2");
  1678. m_RtDataKeys.Add($"{ModuleName}.ForelinePressure");
  1679. m_RtDataKeys.Add($"{ModuleName}.ChamberPressure");
  1680. m_RtDataKeys.Add($"{ModuleName}.ProcessPressure");
  1681. m_RtDataKeys.Add($"{ModuleName}.PenningPressure");
  1682. m_RtDataKeys.Add($"{ModuleName}.CalculationPressure");
  1683. //m_RtDataKeys.Add($"{ModuleName}.ESCHePressure");
  1684. m_RtDataKeys.Add($"{ModuleName}.IsATM");
  1685. m_RtDataKeys.Add($"{ModuleName}.IsVAC");
  1686. m_RtDataKeys.Add($"{ModuleName}.ValvePVN21.IsOpen");
  1687. m_RtDataKeys.Add($"{ModuleName}.ValvePVN22.IsOpen");
  1688. m_RtDataKeys.Add($"{ModuleName}.ValvePV11.IsOpen");
  1689. m_RtDataKeys.Add($"{ModuleName}.ValvePV12.IsOpen");
  1690. m_RtDataKeys.Add($"{ModuleName}.ValvePV21.IsOpen");
  1691. m_RtDataKeys.Add($"{ModuleName}.ValvePV22.IsOpen");
  1692. m_RtDataKeys.Add($"{ModuleName}.ValvePV31.IsOpen");
  1693. m_RtDataKeys.Add($"{ModuleName}.ValvePV32.IsOpen");
  1694. m_RtDataKeys.Add($"{ModuleName}.ValvePV41.IsOpen");
  1695. m_RtDataKeys.Add($"{ModuleName}.ValvePV42.IsOpen");
  1696. m_RtDataKeys.Add($"{ModuleName}.ValveMfc1.IsOpen");
  1697. m_RtDataKeys.Add($"{ModuleName}.ValveMfc2.IsOpen");
  1698. m_RtDataKeys.Add($"{ModuleName}.ValveMfc3.IsOpen");
  1699. m_RtDataKeys.Add($"{ModuleName}.ValveMfc4.IsOpen");
  1700. m_RtDataKeys.Add($"{ModuleName}.ValveMfc5.IsOpen");
  1701. m_RtDataKeys.Add($"{ModuleName}.ValveMfc6.IsOpen");
  1702. m_RtDataKeys.Add($"{ModuleName}.ValveMfc7.IsOpen");
  1703. m_RtDataKeys.Add($"{ModuleName}.ValveMfc8.IsOpen");
  1704. m_RtDataKeys.Add($"{ModuleName}.ValveGasFinal.IsOpen");
  1705. m_RtDataKeys.Add($"{ModuleName}.ValveSoftPump.IsOpen");
  1706. m_RtDataKeys.Add($"{ModuleName}.ValveFastPump.IsOpen");
  1707. m_RtDataKeys.Add($"{ModuleName}.ValveN2.IsOpen");
  1708. m_RtDataKeys.Add($"{ModuleName}.ValveO2.IsOpen");
  1709. //m_RtDataKeys.Add($"{ModuleName}.ValvePVHe1.IsOpen");
  1710. //m_RtDataKeys.Add($"{ModuleName}.ValvePVHe2.IsOpen");
  1711. m_RtDataKeys.Add($"{ModuleName}.ValveTurboPumpPumping.IsOpen");
  1712. m_RtDataKeys.Add($"{ModuleName}.ValveTurboPumpPurge.IsOpen");
  1713. m_RtDataKeys.Add($"{ModuleName}.ValvePVN21.IsOpen");
  1714. m_RtDataKeys.Add($"{ModuleName}.ValvePVN22.IsOpen");
  1715. m_RtDataKeys.Add($"{ModuleName}.ValveGuage.IsOpen");
  1716. m_RtDataKeys.Add($"{ModuleName}.ValvePenningGauge.IsOpen");
  1717. m_RtDataKeys.Add($"{ModuleName}.ValvePurge.IsOpen");
  1718. m_RtDataKeys.Add($"{ModuleName}.ValveN2Purge1.IsOpen");
  1719. m_RtDataKeys.Add($"{ModuleName}.ValveN2Purge2.IsOpen");
  1720. m_RtDataKeys.Add($"{ModuleName}.ValveGuage.IsOpen");
  1721. m_RtDataKeys.Add($"{ModuleName}.TurboPumpIsRunning");
  1722. m_RtDataKeys.Add($"{ModuleName}.PumpIsRunning");
  1723. m_RtDataKeys.Add($"TM.{ModuleName}SlitDoor.IsClosed");
  1724. m_RtDataKeys.Add($"{ModuleName}.IsLidClosed");
  1725. m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Rf}.DeviceData");
  1726. //m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.BiasRf}.DeviceData");
  1727. m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.DeviceData");
  1728. m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.RFBox}.DeviceData");
  1729. //m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.C1");
  1730. //m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.C2");
  1731. //m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.Match}.WorkMode");
  1732. m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.PendulumValve}.DeviceData");
  1733. //m_RtDataKeys.Add($"{ModuleName}.{VenusDevice.ESCHV}.DeviceData");
  1734. m_RtDataKeys.Add($"{ModuleName}.TurboPumpRotationalSpeed");
  1735. //m_RtDataKeys.Add($"{ModuleName}.GetPVPosition");
  1736. //m_RtDataKeys.Add($"{ModuleName}.Chiller.Temp");
  1737. m_RtDataKeys.Add($"{ModuleName}.IsWaterFlowOk");
  1738. m_RtDataKeys.Add($"{ModuleName}.IsWLK");
  1739. m_RtDataKeys.Add($"{ModuleName}.IsCDA_OK");
  1740. m_RtDataKeys.Add($"{ModuleName}.SourceRFMatchInterlock");
  1741. m_RtDataKeys.Add($"{ModuleName}.IsTurboPumpInterlock");
  1742. m_RtDataKeys.Add($"{ModuleName}.IoSensor.GasBoxDoorSW.Value");
  1743. m_RtDataKeys.Add($"{ModuleName}.IoSensor.GasBoxPressureSW.Value");
  1744. m_RtDataKeys.Add($"{ModuleName}.PendulumHeater.DeviceData");
  1745. m_RtDataKeys.Add($"{ModuleName}.FsmState");
  1746. m_RtDataKeys.Add($"{ModuleName}.IsTurboPumpAtSpeed");
  1747. //m_RtDataKeys.Add($"{ModuleName}.TurboPumpWaterFlowSwitch.Value");
  1748. m_RtDataKeys.Add($"{ModuleName}.HasWafer");
  1749. m_RtDataKeys.Add($"{ModuleName}.CurrentRecipeResult");
  1750. m_RtDataKeys.Add($"{ModuleName}.HighTemperatureHeater.DeviceData");
  1751. m_RtDataKeys.Add($"{ModuleName}.IsOnline");
  1752. m_RtDataKeys.Add($"{ModuleName}.IsInclude");
  1753. m_RtDataKeys.Add($"{ModuleName}.IoSensor.N2PurgePressureSwitch.Value");
  1754. m_RtDataKeys.Add($"{ModuleName}.IoSensor.PN2PurgePressureSwitch.Value");
  1755. m_RtDataKeys.Add($"{ModuleName}.ProcessedWaferCount");
  1756. m_RtDataKeys.Add($"{ModuleName}.RfOnTime");
  1757. m_RtDataKeys.Add($"{ModuleName}.PumpOnTime");
  1758. }
  1759. public void EnterExitView(bool isEnter)
  1760. {
  1761. if (isEnter)
  1762. {
  1763. RtDataValues = QueryDataClient.Instance.Service.PollData(m_RtDataKeys);
  1764. bool doorisOpen = !CommonFunction.GetValue<bool>(RtDataValues, $"TM.{ModuleName}SlitDoor.IsClosed");
  1765. string position = CommonFunction.GetValue<AITHighTemperatureHeaterData>(RtDataValues, $"{ModuleName}.HighTemperatureHeater.DeviceData").HighTemperatureHeaterPositionFeedBack;
  1766. ChamberInfo = new ChamberInfo(doorisOpen, position);
  1767. //System.Threading.Thread.Sleep(50);
  1768. timer_Tick(null, null);
  1769. timer.Start();
  1770. MFC1IsEnable = (bool)QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas1.Enable");
  1771. MFC2IsEnable = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas2.Enable"));
  1772. MFC3IsEnable = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas3.Enable"));
  1773. MFC4IsEnable = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas4.Enable"));
  1774. MFC5IsEnable = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas5.Enable"));
  1775. MFC6IsEnable = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas6.Enable"));
  1776. MFC7IsEnable = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas7.Enable"));
  1777. MFC8IsEnable = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.MfcGas8.Enable"));
  1778. PVHeaterIsEnbale = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.PendulumHeater.IsOn"));
  1779. IsEnablePumpSwitch = (bool)(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.DryPump.EnableSwitch"));
  1780. HighTemperatureHeaterTemperatureSetpoint = Convert.ToInt32(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.HighTemperatureHeater.Temperature"));
  1781. HighTemperatureHeaterRatioSetpoint = Convert.ToSingle(QueryDataClient.Instance.Service.GetConfig($"{ModuleName}.HighTemperatureHeater.Ratio"));
  1782. }
  1783. else
  1784. {
  1785. timer.Stop();
  1786. }
  1787. }
  1788. #endregion
  1789. }
  1790. }