JetPM.cs 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. using System;
  2. using System.Collections.Generic;
  3. using Aitex.Core.Common;
  4. using Aitex.Core.Common.DeviceData;
  5. using Aitex.Core.RT.DataCenter;
  6. using Aitex.Core.RT.Device;
  7. using Aitex.Core.RT.Device.Unit;
  8. using Aitex.Core.RT.Event;
  9. using Aitex.Core.RT.SCCore;
  10. using Aitex.Core.Util;
  11. using Aitex.Core.RT.OperationCenter;
  12. using Aitex.Sorter.Common;
  13. using MECF.Framework.Common.Device.Bases;
  14. using MECF.Framework.Common.Equipment;
  15. using MECF.Framework.Common.Schedulers;
  16. using MECF.Framework.Common.SubstrateTrackings;
  17. using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.PMs;
  18. using VirgoCommon;
  19. using VirgoRT.Devices.IODevices;
  20. using VirgoRT.Instances;
  21. using VirgoRT.Module;
  22. using VirgoRT.Modules;
  23. using Aitex.Core.RT.IOCore;
  24. using Aitex.Core.RT.Log;
  25. namespace VirgoRT.Devices
  26. {
  27. enum ValveType
  28. {
  29. PROCESS,
  30. FAST_PUMP,
  31. SOFT_PUMP,
  32. FAST_VENT,
  33. PURGE,
  34. Mfc1,
  35. Mfc2,
  36. Mfc3,
  37. Mfc4,
  38. Mfc5
  39. }
  40. class JetPM : PM
  41. {
  42. // ----------------------------Fields--------------------------
  43. //
  44. private readonly IoLid _Lid;
  45. //private readonly IoCylinder _LidLocker;
  46. private readonly IoMessage _Messager;
  47. private readonly IoMessage _SubstrateTemperature;
  48. private readonly IoMessage _ForelineTemperature;
  49. private readonly IoMessage _CHBWallTemperature;
  50. private readonly IoSensor _ATM_sw;
  51. private readonly IoSensor _VAC_sw;
  52. private readonly IoSensor _WLK_sw;
  53. private readonly IoSensor _CDAPressure;
  54. //private readonly IoSensor _CDAPressure2;
  55. private readonly IoSensor _CoolantInletTC;
  56. private readonly IoSensor _CoolantOutletTC;
  57. private readonly IoSensor _ArmNotExtend;
  58. private readonly IoSensor _N2Pressure_sw;
  59. private readonly IoSensor _RFG_Interlock;
  60. private readonly IoSensor _FactoryScrubberSensor;
  61. private readonly IoPressureControl _pressureController;
  62. private readonly IoHeater _SubstrateTC;
  63. private readonly IoHeater _ForelineTC;
  64. private readonly IoValve _SoftPumpValve;
  65. private readonly IoValve _FastPumpValve;
  66. private readonly IoValve _ProcessValve;
  67. private readonly IoValve _PurgeValve;
  68. private readonly IoValve _FastVentValve;
  69. private readonly IoValve _Mfc1Valve;
  70. private readonly IoValve _Mfc2Valve;
  71. private readonly IoValve _Mfc3Valve;
  72. private readonly IoValve _Mfc4Valve;
  73. private readonly IoValve _Mfc5Valve;
  74. private readonly IoValve _WaterValve;
  75. //private readonly IoValve _N2SupplyValve;
  76. private readonly IoCylinder _slitDoor;
  77. private readonly IoCylinder _LiftPin;
  78. private readonly IoCylinder _PinSmall; // 3'
  79. private readonly IoCylinder _PinMedium; // 4'
  80. private readonly RfPowerBase _Generator;
  81. private readonly RfPowerBase _GeneratorBias;
  82. private readonly RfMatchBase _Match;
  83. private readonly RfMatchBase _BiasMatch;
  84. private readonly PumpBase _MainPump;
  85. private readonly ChillerBase _Chiller;
  86. private readonly IoGasStick[] _gasLines;
  87. private readonly IoTriStateLift _TriStateLiftPin;
  88. private readonly IoTriStateLift2 _TriStateLiftPin2;
  89. private readonly IoTriStateLift4 _TriStateLiftPin4;
  90. private readonly ChillerBase _gridChiller;
  91. private readonly IoHeater _gridHeater;
  92. private readonly IoReset _ResetPlcSignal;
  93. private readonly R_TRIG _trigBasePressure = new R_TRIG();
  94. private readonly R_TRIG _trigBaseTemperature = new R_TRIG();
  95. private readonly R_TRIG _trigWaterLeak = new R_TRIG();
  96. private readonly R_TRIG _trigScrubberSysAlarm = new R_TRIG();
  97. private readonly R_TRIG _trigWaterValve = new R_TRIG();
  98. private double BasePressure;
  99. private double BaseTemperature;
  100. private bool EnableBiasRF = false;
  101. private int _bigWafer = 0;
  102. private int _midWafer = 0;
  103. private int _smallWafer = 0;
  104. private int gasCount = 0;
  105. private readonly int _LiftPinMode;
  106. private readonly int _ChamberType;
  107. private bool _isFactoryScrubberSysInstalled;
  108. // --------------------------Properties------------------------
  109. //
  110. public new ModuleName Module { get; }
  111. // 门的状态
  112. public bool IsSlitDoorClosed => !_slitDoor.ONFeedback && _slitDoor.OFFFeedback;
  113. public bool IsArmNotExtend => _ArmNotExtend.Value;
  114. // 盖子的状态
  115. public bool IsLidClosed => _Lid.OFFFeedback;
  116. // 盖子的锁
  117. //public bool IsLidLocked => !_LidLocker.ONSetPoint && _LidLocker.OFFSetPoint;
  118. public MovementPosition LiftPinPosition
  119. {
  120. get
  121. {
  122. MovementPosition pos = MovementPosition.Unknown;
  123. if (_LiftPinMode == 0)
  124. {
  125. if (_LiftPin.ONFeedback && !_LiftPin.OFFFeedback)
  126. {
  127. pos = MovementPosition.Up;
  128. }
  129. else if (!_LiftPin.ONFeedback && _LiftPin.OFFFeedback)
  130. {
  131. pos = MovementPosition.Down;
  132. }
  133. }
  134. else if (_LiftPinMode == 1)
  135. pos = _TriStateLiftPin.PinPosition;
  136. else if (_LiftPinMode == 2)
  137. pos = _TriStateLiftPin2.PinPosition;
  138. else if (_LiftPinMode == 4)
  139. pos = _TriStateLiftPin4.PinPosition;
  140. return pos;
  141. }
  142. }
  143. public MovementPosition SmallPosition
  144. {
  145. get
  146. {
  147. if (_smallWafer == 0)
  148. return MovementPosition.Down;
  149. MovementPosition res = MovementPosition.Unknown;
  150. if (_PinSmall.ONFeedback && !_PinSmall.OFFFeedback)
  151. {
  152. res = MovementPosition.Up;
  153. }
  154. else if (_PinSmall.OFFFeedback && !_PinSmall.ONFeedback)
  155. {
  156. res = MovementPosition.Down;
  157. }
  158. return res;
  159. }
  160. }
  161. public MovementPosition MediumPosition
  162. {
  163. get
  164. {
  165. if (_midWafer == 0)
  166. return MovementPosition.Down;
  167. MovementPosition res = MovementPosition.Unknown;
  168. if (_PinMedium.ONFeedback && !_PinMedium.OFFFeedback)
  169. {
  170. res = MovementPosition.Up;
  171. }
  172. else if (_PinMedium.OFFFeedback && !_PinMedium.ONFeedback)
  173. {
  174. res = MovementPosition.Down;
  175. }
  176. return res;
  177. }
  178. }
  179. public override bool IsError
  180. {
  181. get
  182. {
  183. if (SC.GetValue<bool>($"{Module}.BiasRf.EnableBiasRF"))
  184. {
  185. return _MainPump.IsError || _Generator.IsError || _GeneratorBias.IsError;
  186. }
  187. else
  188. {
  189. return _MainPump.IsError || _Generator.IsError;
  190. }
  191. }
  192. }
  193. public override bool IsIdle { get; }
  194. // 腔体压力
  195. public bool IsPressureToleranceEnabled
  196. {
  197. get => _pressureController.EnableTolerance;
  198. set => _pressureController.EnableTolerance = value;
  199. }
  200. public override double ChamberPressure => _pressureController.ProcessGauge.Value;
  201. public override double ChamberPressurePressure => _pressureController.PressureGauge.Value;
  202. public double ForelinePressure => _pressureController.ForelineGauge.Value;
  203. public PressureCtrlMode PressureMode => _pressureController.ThrottleValve.PressureMode;
  204. public double TargetPressure => _pressureController.TargetPressure;
  205. // 压力信号
  206. public bool IsATM => _ATM_sw.Value;
  207. public bool IsVAC => _VAC_sw.Value;
  208. public bool IsWLK => _WLK_sw.Value;
  209. public bool IsRFGInterlockOn => _RFG_Interlock.Value;
  210. // 温度
  211. public float SubstrateTempSP => _SubstrateTC.ControlTcSetPoint;
  212. public float SubstrateTempFB => _SubstrateTC.ControlTcFeedback;
  213. public float CoolantInletTempFB => _SubstrateTC.CoolantInletTcFeedback;
  214. public float CoolantOutletTempFB => _SubstrateTC.CoolantOutletTcFeedback;
  215. // Pump 状态
  216. public bool IsPumpRunning => _MainPump.IsRunning;
  217. public bool IsFastPumpOpened => _FastPumpValve.Status;
  218. public bool IsSoftPumpOpened => _SoftPumpValve.Status;
  219. public bool IsMfc1ValveOpened => _Mfc1Valve.Status;
  220. public bool IsMfc2ValveOpened => _Mfc2Valve.Status;
  221. public bool IsMfc3ValveOpened => _Mfc3Valve.Status;
  222. public bool IsMfc4ValveOpened => _Mfc4Valve.Status;
  223. public bool IsMfc5ValveOpened => _Mfc5Valve.Status;
  224. public bool HasPumpError => _MainPump.IsError || !_MainPump.IsRunning;
  225. public bool IsCDA_OK => _CDAPressure.Value /*&& (SC.GetValue<bool>("System.IsIgnoreCDAPressure2Alarm") || (_CDAPressure2?.Value ?? true))*/;
  226. public bool IsCoolantInletTC_OK => _CoolantInletTC.Value;
  227. public bool IsCoolantOutletTC_OK => _CoolantOutletTC.Value;
  228. // 蝶阀位置
  229. public float TVPosition => _pressureController.ThrottleValve.PositionFeedback;
  230. // 腔体压力.end
  231. // 射频
  232. public float ForwardPower => _Generator.ForwardPower;
  233. public bool IsGeneratorON => _Generator.IsPowerOn;
  234. public float GeneratorSetpoint => _Generator.PowerSetPoint;
  235. // Bias射频
  236. public float ForwardPowerBias => _GeneratorBias.ForwardPower;
  237. public bool IsGeneratorONBias => _GeneratorBias.IsPowerOn;
  238. public float GeneratorSetpointBias => _GeneratorBias.PowerSetPoint;
  239. public float CTune => _GeneratorBias.CTune;
  240. public float CLoad => _GeneratorBias.CLoad;
  241. public int VPP => _GeneratorBias.VPP;
  242. // 流气
  243. public double TotalGasSetpoint
  244. {
  245. get
  246. {
  247. double sum = 0;
  248. foreach (var gas in _gasLines)
  249. {
  250. sum += gas.FlowSP;
  251. }
  252. return sum;
  253. }
  254. }
  255. public bool HasGasOutOfRange
  256. {
  257. get
  258. {
  259. foreach (var gas in _gasLines)
  260. {
  261. if (!gas.IsOutOfRange)
  262. return false;
  263. }
  264. return true;
  265. }
  266. }
  267. public bool CheckFactoryScrubberSysAlarm => _isFactoryScrubberSysInstalled && _FactoryScrubberSensor != null && _FactoryScrubberSensor.Value;
  268. // --------------------------Constructor-----------------------
  269. //
  270. public JetPM(ModuleName mod) : base(mod.ToString())
  271. {
  272. Module = mod;
  273. BasePressure = SC.GetValue<double>($"{mod}.ChamberBasePressureThreshold");
  274. BaseTemperature = SC.GetValue<double>($"{mod}.ChamberBaseTemperatureThreshold");
  275. _smallWafer = SC.GetValue<int>($"System.SmallWafer");
  276. _midWafer = SC.GetValue<int>($"System.MidWafer");
  277. _bigWafer = SC.GetValue<int>($"System.BigWafer");
  278. EnableBiasRF = SC.GetValue<bool>($"{Module}.BiasRf.EnableBiasRF");
  279. _LiftPinMode = SC.GetValue<int>($"{Module}.LiftPinMode");
  280. _ChamberType = SC.GetValue<int>($"System.ChamberType");
  281. _isFactoryScrubberSysInstalled = SC.ContainsItem($"{Module}.ScrubberIsInstalled") ? SC.GetValue<bool>($"{Module}.ScrubberIsInstalled") : false;
  282. for (int i = 1; i <= 5; i++)
  283. {
  284. if (SC.GetValue<bool>($"{Module}.MfcGas{i}.Enable")) gasCount++;
  285. }
  286. //_gasLines = new IoGasStick[gasCount];
  287. _gasLines = new IoGasStick[5];
  288. //for (int index = 0; index < gasCount; index++)
  289. //{
  290. // _gasLines[index] = DEVICE.GetDevice<IoGasStick>($"{Module}.GasStick{index + 1}");
  291. //}
  292. for (int index = 0; index < 5; index++)
  293. {
  294. _gasLines[index] = DEVICE.GetDevice<IoGasStick>($"{Module}.GasStick{index + 1}");
  295. }
  296. _Lid = DEVICE.GetDevice<IoLid>($"{Module}.{VirgoDevice.Lid}");
  297. //_LidLocker = DEVICE.GetDevice<IoCylinder>($"{Module}.{VirgoDevice.LidLocker}");
  298. _Messager = DEVICE.GetDevice<IoMessage>($"{Module}.Messager");
  299. _SubstrateTemperature = DEVICE.GetDevice<IoMessage>($"{Module}.SubstrateTemperature");
  300. _ForelineTemperature = DEVICE.GetDevice<IoMessage>($"{Module}.ForelineTemperature");
  301. _CHBWallTemperature = DEVICE.GetDevice<IoMessage>($"{Module}.CHBWallTemperature");
  302. _ATM_sw = DEVICE.GetDevice<IoSensor>($"{Module}.SensorATMSwitch");
  303. _N2Pressure_sw = DEVICE.GetDevice<IoSensor>($"{Module}.N2PressureOk");
  304. _VAC_sw = DEVICE.GetDevice<IoSensor>($"{Module}.SensorVacSwitch");
  305. _WLK_sw = DEVICE.GetDevice<IoSensor>($"{Module}.SensorWaterLeakOk");
  306. _CDAPressure = DEVICE.GetDevice<IoSensor>($"{Module}.SensorCDAPressureOk");
  307. //_CDAPressure2 = DEVICE.GetDevice<IoSensor>($"{Module}.SensorCDAPressureOk2");
  308. _CoolantInletTC = DEVICE.GetDevice<IoSensor>($"{Module}.SensorCoolantInletTCOK");
  309. _CoolantOutletTC = DEVICE.GetDevice<IoSensor>($"{Module}.SensorCoolantOutletTCOK");
  310. _ArmNotExtend = DEVICE.GetDevice<IoSensor>($"{Module}.SensorArmNotExtend");
  311. _RFG_Interlock = DEVICE.GetDevice<IoSensor>($"{Module}.GeneratorInterlock");
  312. _FactoryScrubberSensor = DEVICE.GetDevice<IoSensor>($"{Module}.FactoryScrubberSysNormal");
  313. _pressureController = DEVICE.GetDevice<IoPressureControl>($"{Module}.{VirgoDevice.PressureControl}");
  314. _SubstrateTC = DEVICE.GetDevice<IoHeater>($"{Module}.HeaterChamber");
  315. _ForelineTC = DEVICE.GetDevice<IoHeater>($"{Module}.ForelineHeater");
  316. _SoftPumpValve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveSoftPumping}");
  317. _FastPumpValve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveFastPumping}");
  318. _ProcessValve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveProcess}");
  319. _FastVentValve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveFastVent}");
  320. _WaterValve = DEVICE.GetDevice<IoValve>($"{Module}.WaterValve");
  321. _PurgeValve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveChamberPurge}");
  322. _Mfc1Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveMfc1}");
  323. _Mfc2Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveMfc2}");
  324. _Mfc3Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveMfc3}");
  325. _Mfc4Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveMfc4}");
  326. _Mfc5Valve = DEVICE.GetDevice<IoValve>($"{Module}.{VirgoDevice.ValveMfc5}");
  327. _slitDoor = DEVICE.GetDevice<IoCylinder>($"{Module}.{VirgoDevice.SlitDoor}");
  328. _LiftPin = DEVICE.GetDevice<IoCylinder>($"{Module}.{VirgoDevice.LiftPin}");
  329. _PinSmall = DEVICE.GetDevice<IoCylinder>($"{Module}.{VirgoDevice.SmallPin}");
  330. _PinMedium = DEVICE.GetDevice<IoCylinder>($"{Module}.{VirgoDevice.MediumPin}");
  331. _Generator = DEVICE.GetDevice<IoRf>($"{Module}.{VirgoDevice.Rf}");
  332. _GeneratorBias = DEVICE.GetDevice<IoRf>($"{Module}.{VirgoDevice.BiasRf}");
  333. _MainPump = DEVICE.GetDevice<PumpBase>($"{Module}.{VirgoDevice.MainPump}");
  334. _Chiller = DEVICE.GetDevice<ChillerBase>($"{Module}.{VirgoDevice.Chiller}");
  335. _TriStateLiftPin = DEVICE.GetDevice<IoTriStateLift>($"{Module}.{VirgoDevice.TriStateLiftPin}");
  336. _TriStateLiftPin2 = DEVICE.GetDevice<IoTriStateLift2>($"{Module}.{VirgoDevice.TriStateLiftPin2}");
  337. _TriStateLiftPin4 = DEVICE.GetDevice<IoTriStateLift4>($"{Module}.{VirgoDevice.TriStateLiftPin4}");
  338. _gridChiller = DEVICE.GetDevice<ChillerBase>($"{Module}.GridChiller");
  339. _gridHeater = DEVICE.GetDevice<IoHeater>($"{Module}.GridHeater");
  340. _ResetPlcSignal = DEVICE.GetDevice<IoReset>($"{Module}.ResetPlcSignal");
  341. _gridHeater.Controller = (IoHeaterController)_gridChiller;
  342. // RS223 AdTec Generator
  343. if (SC.GetValue<int>($"{mod}.Rf.CommunicationType") == (int)CommunicationType.RS232 &&
  344. SC.GetValue<int>($"{mod}.Rf.MFG") == (int)GeneratorMFG.AdTec)
  345. {
  346. _Generator = DEVICE.GetDevice<AdTecGenerator>($"{Module}.{VirgoDevice.Rf}");
  347. }
  348. // Ethernet Comet Generator Bias
  349. if (SC.GetValue<bool>($"{mod}.BiasRf.EnableBiasRF") &&
  350. SC.GetValue<int>($"{mod}.BiasRf.CommunicationType") == (int)CommunicationType.Ethernet &&
  351. SC.GetValue<int>($"{mod}.BiasRf.MFG") == (int)GeneratorMFG.Comet)
  352. {
  353. _GeneratorBias = DEVICE.GetDevice<CometRF>($"{Module}.{VirgoDevice.BiasRf}");
  354. }
  355. // RS232 AdTec match
  356. if (SC.GetValue<int>($"{mod}.match.CommunicationType") == (int)CommunicationType.RS232 &&
  357. SC.GetValue<int>($"{mod}.match.MFG") == (int)MatchMFG.AdTec)
  358. {
  359. _Match = DEVICE.GetDevice<AdTecMatch>($"{Module}.{VirgoDevice.Match}");
  360. }
  361. if (SC.GetValue<bool>($"{mod}.match.EnableMatch") &&
  362. SC.GetValue<int>($"{mod}.match.CommunicationType") == (int)CommunicationType.Ethernet &&
  363. SC.GetValue<int>($"{mod}.match.MFG") == (int)MatchMFG.Revtech)
  364. {
  365. _Match = DEVICE.GetDevice<RevtechMatch>($"{Module}.{VirgoDevice.Match}");
  366. }
  367. if (SC.GetValue<bool>($"{mod}.BiasRf.EnableBiasRF") &&
  368. SC.GetValue<int>($"{mod}.BiasRf.CommunicationType") == (int)CommunicationType.RS232 &&
  369. SC.GetValue<int>($"{mod}.BiasRf.MFG") == (int)GeneratorMFG.AdTec)
  370. {
  371. _GeneratorBias = DEVICE.GetDevice<AdTecGenerator>($"{Module}.{VirgoDevice.BiasRf}");
  372. }
  373. if (SC.GetValue<bool>($"{mod}.BiasMatch.EnableBiasMatch") &&
  374. SC.GetValue<int>($"{mod}.BiasMatch.CommunicationType") == (int)CommunicationType.Ethernet &&
  375. SC.GetValue<int>($"{mod}.BiasMatch.MFG") == (int)MatchMFG.Revtech)
  376. {
  377. _BiasMatch = DEVICE.GetDevice<RevtechMatch>($"{Module}.{VirgoDevice.BiasMatch.ToString()}");
  378. }
  379. // RS232 Dry pump, SKY
  380. if (SC.GetValue<int>($"{mod}.DryPump.CommunicationType") == (int)CommunicationType.RS232)
  381. {
  382. if (SC.GetValue<int>($"{mod}.DryPump.MFG") == (int)DryPumpMFG.SKY)
  383. {
  384. _MainPump = DEVICE.GetDevice<SkyPump>($"{Module}.{VirgoDevice.MainPump}");
  385. }
  386. else if (SC.GetValue<int>($"{mod}.DryPump.MFG") == (int)DryPumpMFG.Edwards)
  387. {
  388. _MainPump = DEVICE.GetDevice<EdwardsPump>($"{Module}.{VirgoDevice.MainPump}");
  389. }
  390. }
  391. if (SC.GetValue<bool>($"{mod}.Chiller.EnableChiller") &&
  392. SC.GetValue<int>($"{mod}.Chiller.CommunicationType") == (int)CommunicationType.RS232 &&
  393. SC.GetValue<int>($"{mod}.Chiller.MFG") == (int)ChillerMFG.SMC)
  394. {
  395. _Chiller = DEVICE.GetDevice<SMCChiller>($"{Module}.{VirgoDevice.Chiller}");
  396. }
  397. System.Diagnostics.Debug.Assert(null != _Generator);
  398. System.Diagnostics.Debug.Assert(null != _MainPump);
  399. if (SC.GetValue<bool>($"{Module}.BiasRf.EnableBiasRF"))
  400. {
  401. System.Diagnostics.Debug.Assert(null != _GeneratorBias);
  402. }
  403. WaferManager.Instance.SubscribeLocation(Module, 1);
  404. }
  405. public override bool Initialize()
  406. {
  407. base.Initialize();
  408. OP.Subscribe($"{Module}.LiftPin.SetPosition", (out string reason, int time, object[] param) => {
  409. MovementPosition dir = MovementPosition.Unknown;
  410. if ((string)param[0] == "Up")
  411. dir = MovementPosition.Up;
  412. else if ((string)param[0] == "Down")
  413. dir = MovementPosition.Down;
  414. else if ((string)param[0] == "Middle")
  415. dir = MovementPosition.Middle;
  416. SetLiftPin(dir, out reason);
  417. return true;
  418. });
  419. if (IsWLK && IO.DI[$"{ModuleName.PMA}.DI_EFEM_Water_Leak_Sensor"].Value)
  420. {
  421. IO.DO[$"{ModuleName.PMA}.DO_EV5_Water_Valve"].Value = true;
  422. IO.DO[$"{ModuleName.PMB}.DO_EV5_Water_Valve"].Value = true;
  423. LOG.Info($"{Module} DO_EV5_Water_Valve sensor on");
  424. }
  425. DATA.Subscribe($"{Name}.IoTemperatureCtrl.TemperatureControl.SubstrateTemperature", () => SubstrateTempFB);
  426. DATA.Subscribe($"{Module}.WaferSize", () => WaferManager.Instance.GetWafer(Module, 0).Size.ToString());
  427. DATA.Subscribe($"{Module}.EnableBiasRF", () => EnableBiasRF);
  428. return true;
  429. }
  430. // -----------------------------Method-------------------------
  431. //
  432. public override void Home()
  433. {
  434. // 与yp讨论过,PM 初始化不需要
  435. if (IsSlitDoorClosed)
  436. {
  437. SetSlitDoor(false, out _);
  438. }
  439. else if (!IsSlitDoorClosed)
  440. {
  441. SetSlitDoor(false, out _);
  442. }
  443. else if (_slitDoor.State == CylinderState.Error)
  444. {
  445. SetSlitDoor(true, out _);
  446. }
  447. if (SC.GetValue<bool>($"{Module}.BiasRf.EnableBiasRF"))
  448. {
  449. _Messager.SetMessager(1); //Virgo B
  450. }
  451. else
  452. {
  453. _Messager.SetMessager(0); //Virgo A
  454. }
  455. _SubstrateTemperature?.SetMessager(SC.GetValue<int>($"{Module}.SubstrateTemperatureTCTMDiff"));
  456. _ForelineTemperature?.SetMessager(SC.GetValue<int>($"{Module}.ForelineTemperatureTCTMDiff"));
  457. _CHBWallTemperature?.SetMessager(SC.GetValue<int>($"{Module}.CHBWallTemperatureTCTMDiff"));
  458. //_ResetPlcSignal?.Reset();
  459. }
  460. public void ResetPlcSignal()
  461. {
  462. _ResetPlcSignal?.Reset();
  463. }
  464. public void SetSlitDoor(bool open, out string reason)
  465. {
  466. reason = string.Empty;
  467. // [XIAHUAN]: 只在关门的时候检查arm not extend
  468. if (!open && !IsArmNotExtend)
  469. {
  470. EV.PostAlarmLog(Module.ToString(), "Arm Not Extend sensor error");
  471. return;
  472. }
  473. _slitDoor.SetCylinder(open, out reason);
  474. }
  475. public override bool CheckWaterLeak()
  476. {
  477. return _WLK_sw.Value;
  478. }
  479. public override bool CheckCDAOK()
  480. {
  481. return _CDAPressure.Value /*&& (SC.GetValue<bool>("System.IsIgnoreCDAPressure2Alarm") || (_CDAPressure2?.Value ?? true))*/;
  482. }
  483. public override bool CheckCoolantInletTCOK()
  484. {
  485. return _CoolantInletTC?.Value ?? false;
  486. }
  487. public override bool CheckCoolantOutletTCOK()
  488. {
  489. return _CoolantOutletTC?.Value ?? false;
  490. }
  491. public override bool CheckArmExtendOK()
  492. {
  493. return _ArmNotExtend.Value;
  494. }
  495. public override bool CheckAtm()
  496. {
  497. return _ATM_sw.Value && ChamberPressure > 700000;
  498. }
  499. public override bool CheckVacuum()
  500. {
  501. return _VAC_sw.Value && ChamberPressure < 100;
  502. }
  503. public bool CheckSlitDoorOpen()
  504. {
  505. return _slitDoor.State == CylinderState.Open;
  506. }
  507. public bool CheckSlitDoorClose()
  508. {
  509. return _slitDoor.State == CylinderState.Close;
  510. }
  511. public bool CheckLiftUp()
  512. {
  513. return LiftPinPosition == MovementPosition.Up;
  514. }
  515. public bool CheckLiftDown()
  516. {
  517. return LiftPinPosition == MovementPosition.Down;
  518. }
  519. public bool CheckLiftPinPos(MovementPosition pos)
  520. {
  521. return LiftPinPosition == pos;
  522. }
  523. public void StartPump(bool on)
  524. {
  525. //_pressureController.StartPump(on);
  526. _MainPump?.SetPumpOnOff(on);
  527. }
  528. public void SetValveOnOff(ValveType vlvType, bool on)
  529. {
  530. switch (vlvType)
  531. {
  532. case ValveType.PROCESS:
  533. _ProcessValve.TurnValve(on, out _);
  534. break;
  535. case ValveType.FAST_PUMP:
  536. _FastPumpValve.TurnValve(on, out _);
  537. break;
  538. case ValveType.SOFT_PUMP:
  539. _SoftPumpValve.TurnValve(on, out _);
  540. break;
  541. case ValveType.FAST_VENT:
  542. _FastVentValve.TurnValve(on, out _);
  543. break;
  544. case ValveType.PURGE:
  545. _PurgeValve.TurnValve(on, out _);
  546. break;
  547. case ValveType.Mfc1:
  548. _Mfc1Valve.TurnValve(on, out _);
  549. break;
  550. case ValveType.Mfc2:
  551. _Mfc2Valve.TurnValve(on, out _);
  552. break;
  553. case ValveType.Mfc3:
  554. _Mfc3Valve.TurnValve(on, out _);
  555. break;
  556. case ValveType.Mfc4:
  557. _Mfc4Valve.TurnValve(on, out _);
  558. break;
  559. case ValveType.Mfc5:
  560. _Mfc5Valve.TurnValve(on, out _);
  561. break;
  562. default:
  563. throw new ArgumentOutOfRangeException($"Argument error {vlvType}-{on}");
  564. }
  565. }
  566. public void CheckPressureStability() { }
  567. public override void Monitor()
  568. {
  569. foreach (var gas in _gasLines)
  570. {
  571. gas.Monitor();
  572. }
  573. _trigBasePressure.CLK = ChamberPressurePressure >= BasePressure;
  574. if (SC.GetValue<bool>($"{Module}.Chiller.EnableChiller"))
  575. {
  576. _trigBaseTemperature.CLK = CoolantOutletTempFB >= BaseTemperature;
  577. }
  578. else
  579. {
  580. _trigBaseTemperature.CLK = SubstrateTempFB >= BaseTemperature;
  581. }
  582. if (_trigBasePressure.Q)
  583. {
  584. EV.PostMessage(Module.ToString(), EventEnum.DefaultAlarm, "PM pressure out of tolerance");
  585. }
  586. if (_trigBaseTemperature.Q) EV.PostMessage(Module.ToString(), EventEnum.DefaultAlarm, "PM temperature out of tolerance");
  587. if(_ChamberType == (int)JetChamber.VirgoMask)
  588. {
  589. var isWLKError = !IsWLK;
  590. var isEFEMWLKError = !IO.DI[$"{ModuleName.PMA}.DI_EFEM_Water_Leak_Sensor"].Value;
  591. _trigWaterLeak.CLK = isWLKError || isEFEMWLKError;
  592. if (_trigWaterLeak.Q)
  593. {
  594. IO.DO[$"{ModuleName.PMA}.DO_EV5_Water_Valve"].Value = false;
  595. IO.DO[$"{ModuleName.PMB}.DO_EV5_Water_Valve"].Value = false;
  596. if(isWLKError)
  597. EV.PostMessage(Module.ToString(), EventEnum.DefaultAlarm, $"PM water leak");
  598. if (isEFEMWLKError)
  599. EV.PostMessage(ModuleName.EFEM.ToString(), EventEnum.DefaultAlarm, $"EFEM water leak");
  600. }
  601. if (IsWLK && IO.DI[$"{ModuleName.PMA}.DI_EFEM_Water_Leak_Sensor"].Value && IO.DI[$"{ModuleName.PMA}.DI_Reset_Signal_Reply"].Value && !IO.DI[$"{ModuleName.PMA}.DI_Water_Valve_Opened"].Value)
  602. {
  603. IO.DO[$"{ModuleName.PMA}.DO_EV5_Water_Valve"].Value = true;
  604. IO.DO[$"{ModuleName.PMB}.DO_EV5_Water_Valve"].Value = true;
  605. }
  606. _trigScrubberSysAlarm.CLK = CheckFactoryScrubberSysAlarm;
  607. if (_trigScrubberSysAlarm.Q)
  608. {
  609. TryClosePumpAndPostAlarm();
  610. }
  611. }
  612. else if (_ChamberType == (int)JetChamber.VirgoR && _WaterValve != null)
  613. {
  614. _trigWaterLeak.CLK = !IsWLK;
  615. if (_trigWaterLeak.Q)
  616. {
  617. EV.PostWarningLog(Module.ToString(), $"Water Leak SW Sensor alarm !");
  618. _WaterValve.TurnValve(false, out _);
  619. }
  620. _trigWaterValve.CLK = IsWLK && !_WaterValve.Status;
  621. if (_trigWaterValve.Q) EV.PostWarningLog(Module.ToString(), $"Water Valve is off !");
  622. }
  623. }
  624. public void CloseValves()
  625. {
  626. _SoftPumpValve.TurnValve(false, out _);
  627. _FastPumpValve.TurnValve(false, out _);
  628. _ProcessValve.TurnValve(false, out _);
  629. _PurgeValve.TurnValve(false, out _);
  630. _FastVentValve.TurnValve(false, out _);
  631. _PurgeValve.TurnValve(false, out _);
  632. _Mfc1Valve.TurnValve(false, out _);
  633. _Mfc2Valve.TurnValve(false, out _);
  634. _Mfc3Valve.TurnValve(false, out _);
  635. _Mfc4Valve.TurnValve(false, out _);
  636. _Mfc5Valve.TurnValve(false, out _);
  637. foreach (var stick in _gasLines)
  638. {
  639. stick.Stop();
  640. }
  641. }
  642. public bool FlowGas(int gasNum, double val)
  643. {
  644. if (_gasLines.Length <= gasNum)
  645. return false;
  646. _gasLines[gasNum].Flow(val);
  647. return true;
  648. }
  649. public void StopAllGases()
  650. {
  651. foreach (var line in _gasLines)
  652. {
  653. line.Stop();
  654. }
  655. }
  656. public bool SetLiftPin(MovementPosition dirt, out string reason)
  657. {
  658. reason = string.Empty;
  659. switch (dirt)
  660. {
  661. case MovementPosition.Down:
  662. {
  663. if (_LiftPinMode == 0) return _LiftPin.SetCylinder(false, out reason);
  664. if (_LiftPinMode == 1) return _TriStateLiftPin.GoPosition(Position.position3);
  665. if (_LiftPinMode == 2) return _TriStateLiftPin2.GoPosition(Position.position3);
  666. if (_LiftPinMode == 4) return _TriStateLiftPin4.GoPosition(Position.position3);
  667. throw new ArgumentException($"{Module} {Name} {dirt} Movement argument error");
  668. }
  669. case MovementPosition.Up:
  670. {
  671. if (_LiftPinMode == 0) return _LiftPin.SetCylinder(true, out reason);
  672. if (_LiftPinMode == 1) return _TriStateLiftPin.GoPosition(Position.position1);
  673. if (_LiftPinMode == 2) return _TriStateLiftPin2.GoPosition(Position.position1);
  674. if (_LiftPinMode == 4) return _TriStateLiftPin4.GoPosition(Position.position1);
  675. throw new ArgumentException($"{Module} {Name} {dirt} Movement argument error");
  676. }
  677. case MovementPosition.Origin:
  678. {
  679. if (_LiftPinMode == 0) return _LiftPin.SetCylinder(false, out reason);
  680. if (_LiftPinMode == 1) return _TriStateLiftPin.GoPosition(Position.origin);
  681. if (_LiftPinMode == 2) return _TriStateLiftPin2.GoPosition(Position.origin);
  682. if (_LiftPinMode == 4) return _TriStateLiftPin4.GoPosition(Position.origin);
  683. throw new ArgumentException($"{Module} {Name} {dirt} Movement argument error");
  684. }
  685. case MovementPosition.Middle:
  686. if (_LiftPinMode == 1) return _TriStateLiftPin.GoPosition(Position.position2);
  687. else if (_LiftPinMode == 2) return _TriStateLiftPin2.GoPosition(Position.position2);
  688. else if (_LiftPinMode == 4) return _TriStateLiftPin4.GoPosition(Position.position2);
  689. else
  690. throw new ArgumentException("Movement argument error");
  691. case MovementPosition.Left:
  692. case MovementPosition.Right:
  693. throw new ArgumentException("Movement argument error");
  694. }
  695. return true;
  696. }
  697. public void SetGuidePin(WaferSize ws, MovementPosition dirt)
  698. {
  699. if (ws == WaferSize.WS3)
  700. SetGuidePinSmall(dirt);
  701. else if (ws == WaferSize.WS4)
  702. SetGuidePinMedium(dirt);
  703. }
  704. public void PrepareGuidePinForPlace(WaferSize ws)
  705. {
  706. if (ws == WaferSize.WS3)
  707. {
  708. SetGuidePinSmall(MovementPosition.Up);
  709. SetGuidePinMedium(MovementPosition.Down);
  710. }
  711. else if (ws == WaferSize.WS4)
  712. {
  713. SetGuidePinSmall(MovementPosition.Down);
  714. SetGuidePinMedium(MovementPosition.Up);
  715. }
  716. }
  717. public bool CheckGuidePinIsReadyForTransfer(WaferSize ws)
  718. {
  719. if (ws == WaferSize.WS3)
  720. {
  721. return SmallPosition == MovementPosition.Up && MediumPosition == MovementPosition.Down;
  722. }
  723. else if (ws == WaferSize.WS4)
  724. {
  725. return SmallPosition == MovementPosition.Down && MediumPosition == MovementPosition.Up;
  726. }
  727. else if (ws == WaferSize.WS6 || ws == WaferSize.WS8 || ws == WaferSize.WS12)
  728. return true;
  729. else
  730. return true;
  731. }
  732. private void SetGuidePinSmall(MovementPosition dirt)
  733. {
  734. EV.PostInfoLog(Module.ToString(), $"set small pin {dirt}, smallWafer={_smallWafer}");
  735. switch (dirt)
  736. {
  737. case MovementPosition.Down:
  738. if (_smallWafer != 0)
  739. _PinSmall?.SetCylinder(false, out _);
  740. break;
  741. case MovementPosition.Up:
  742. if (_smallWafer != 0)
  743. _PinSmall?.SetCylinder(true, out _);
  744. break;
  745. default:
  746. throw new ArgumentException("Movement argument error");
  747. }
  748. }
  749. private void SetGuidePinMedium(MovementPosition dirt)
  750. {
  751. EV.PostInfoLog(Module.ToString(), $"set medium pin {dirt}, midWafer={_midWafer}");
  752. switch (dirt)
  753. {
  754. case MovementPosition.Down:
  755. if (_midWafer != 0)
  756. _PinMedium?.SetCylinder(false, out _);
  757. break;
  758. case MovementPosition.Up:
  759. if (_midWafer != 0)
  760. _PinMedium?.SetCylinder(true, out _);
  761. break;
  762. default:
  763. throw new ArgumentException("Movement argument error");
  764. }
  765. }
  766. public void SetGeneratorCommunicationMode(int mode)
  767. {
  768. _Generator?.SetCommunicationMode(mode);
  769. }
  770. public bool GeneratorPowerOn(bool on)
  771. {
  772. if (_Generator == null) return false;
  773. if (on && !IsRFGInterlockOn)
  774. {
  775. EV.PostAlarmLog(Module.ToString(), "RF interlock sensor error");
  776. return false;
  777. }
  778. return _Generator.SetPowerOnOff(on, out _);
  779. }
  780. public bool GeneratorSetpower(float val)
  781. {
  782. if (_Generator == null) return false;
  783. if (Math.Abs(val) > 0.01)
  784. _Generator.SetPower((ushort)val);
  785. return true;
  786. }
  787. public bool GeneratorBiasPowerOn(bool on)
  788. {
  789. if (_GeneratorBias == null) return false;
  790. if (on && !IsRFGInterlockOn)
  791. {
  792. EV.PostAlarmLog(Module.ToString(), "Bias RF Interlock sensor error");
  793. return false;
  794. }
  795. return _GeneratorBias.SetPowerOnOff(on, out _);
  796. }
  797. public bool GeneratorBiasSetpower(float val)
  798. {
  799. if (_GeneratorBias == null) return false;
  800. if (Math.Abs(val) > 0.01)
  801. _GeneratorBias.SetPower((ushort)val);
  802. return true;
  803. }
  804. public bool GeneratorBiasSetMatchMode(bool val)
  805. {
  806. if (_BiasMatch != null)
  807. {
  808. _BiasMatch.SetMatchMode(true ? EnumRfMatchTuneMode.Auto.ToString() : EnumRfMatchTuneMode.Manual.ToString(), out _);
  809. return true;
  810. }
  811. if (_GeneratorBias == null) return false;
  812. string reason = string.Empty;
  813. _GeneratorBias.SetMatchingAutoMode(val, out reason);
  814. return true;
  815. }
  816. public bool SetMatchPosition(float c1, float c2)
  817. {
  818. if (_Match == null) return false;
  819. string reason = string.Empty;
  820. _Match.SetMatchPosition(c1, c2, out reason);
  821. return true;
  822. }
  823. public bool SetBiasMatchPosition(float c1, float c2)
  824. {
  825. if (_BiasMatch != null)
  826. {
  827. _BiasMatch.SetMatchPosition(c1, c2, out _);
  828. return true;
  829. }
  830. if (_GeneratorBias == null) return false;
  831. string reason = string.Empty;
  832. _GeneratorBias.SetMatchPosition(c1, c2, out reason);
  833. return true;
  834. }
  835. public void FullOpenTV()
  836. {
  837. _pressureController.FullOpenThrottleValve();
  838. }
  839. public void HeatSubstrate(double val)
  840. {
  841. _SubstrateTC?.RampTemp((float)val);
  842. _SubstrateTC?.TurnOnOff(true);
  843. }
  844. public void HeatChiller(double value, double offset)
  845. {
  846. _Chiller?.SetChillerTemp((float)value, (float)offset);
  847. _Chiller?.SetChillerOnOff(true);
  848. }
  849. public bool CheckChillerStatus()
  850. {
  851. return _Chiller != null && _Chiller.IsRunning && !_Chiller.IsError;
  852. }
  853. public void HeatForeline(double val)
  854. {
  855. _ForelineTC?.RampTemp((float)val);
  856. }
  857. public override bool CheckEnableTransfer(EnumTransferType type)
  858. {
  859. if (type == EnumTransferType.Pick)
  860. {
  861. return _slitDoor.State == CylinderState.Open && LiftPinPosition == MovementPosition.Up;
  862. }
  863. if (type == EnumTransferType.Place)
  864. {
  865. return _slitDoor.State == CylinderState.Open && LiftPinPosition == MovementPosition.Down;
  866. }
  867. return false;
  868. }
  869. public bool CheckEnableTransfer(EnumTransferType type, WaferSize waferSize)
  870. {
  871. if (type == EnumTransferType.Pick)
  872. {
  873. return _slitDoor.State == CylinderState.Open
  874. && LiftPinPosition == MovementPosition.Up
  875. && CheckGuidePinIsReadyForTransfer(waferSize);
  876. }
  877. if (type == EnumTransferType.Place)
  878. {
  879. return _slitDoor.State == CylinderState.Open
  880. && LiftPinPosition == MovementPosition.Down
  881. && CheckGuidePinIsReadyForTransfer(waferSize);
  882. }
  883. return false;
  884. }
  885. public override void TransferHandoff(EnumTransferType type)
  886. {
  887. switch (type)
  888. {
  889. case EnumTransferType.Pick:
  890. SetLiftPin(MovementPosition.Up, out _);
  891. break;
  892. case EnumTransferType.Place:
  893. SetLiftPin(MovementPosition.Down, out _);
  894. break;
  895. case EnumTransferType.Extend:
  896. break;
  897. case EnumTransferType.Retract:
  898. break;
  899. default:
  900. break;
  901. }
  902. }
  903. private void TryClosePumpAndPostAlarm()
  904. {
  905. if (CheckFactoryScrubberSysAlarm)
  906. {
  907. if (IsFastPumpOpened) SetValveOnOff(ValveType.FAST_PUMP, false);
  908. if (IsSoftPumpOpened) SetValveOnOff(ValveType.SOFT_PUMP, false);
  909. EV.PostAlarmLog(Module.ToString(), $"{Module} {Name} Factory Scrubber System is alarm ");
  910. }
  911. }
  912. public override void Reset()
  913. {
  914. _trigBasePressure.RST = true;
  915. _trigBaseTemperature.RST = true;
  916. _trigWaterLeak.RST = true;
  917. }
  918. }
  919. /// <summary>
  920. /// PM Action
  921. /// </summary>
  922. abstract class PmActionBase : ActionBase
  923. {
  924. protected internal JetPM _chamber;
  925. protected PmActionBase(ModuleName mod, JetPM pm) : base(mod)
  926. {
  927. _chamber = pm;
  928. }
  929. }
  930. class PinAction : PmActionBase
  931. {
  932. public MovementPosition Pos { get; }
  933. public bool IsWaferTransfered { get; }
  934. public PMEntity PmEntity { get; set; }
  935. private Hand _blade;
  936. private bool _isPick;
  937. public PinAction(ModuleName mod, JetPM pm, MovementPosition pos, bool isTransferWafer, Hand blade, bool isPick) : base(mod, pm)
  938. {
  939. this.Pos = pos;
  940. IsWaferTransfered = isTransferWafer;
  941. _blade = blade;
  942. _isPick = isPick;
  943. }
  944. public override void Execute()
  945. {
  946. if (Module == ModuleName.PMA)
  947. PmEntity = Singleton<RouteManager>.Instance.PMA;
  948. else if (Module == ModuleName.PMB)
  949. PmEntity = Singleton<RouteManager>.Instance.PMB;
  950. if (PmEntity != null)
  951. {
  952. PmEntity.PostMsg(PMEntity.MSG.MoveLiftPin, Pos, ID, _isPick);
  953. }
  954. }
  955. public override void OnPostWork(string data = null)
  956. {
  957. if (IsWaferTransfered)
  958. {
  959. if (Pos == MovementPosition.Up)
  960. {
  961. WaferManager.Instance.WaferMoved(ModuleName.EfemRobot, _blade==Hand.Blade1 ? 0 : 1, Module, 0);
  962. }
  963. else
  964. {
  965. WaferManager.Instance.WaferMoved(Module, 0, ModuleName.EfemRobot, _blade == Hand.Blade1 ? 0 : 1);
  966. }
  967. Singleton<RouteManager>.Instance.EFEM.EfemDevice.SetRobotMovingInfo( MECF.Framework.Common.CommonData.RobotAction.None, Hand.Both, ModuleName.System);
  968. }
  969. }
  970. }
  971. }