LoaderUnloadRoutine.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  1. using Aitex.Core.RT.Device;
  2. using Aitex.Core.RT.Log;
  3. using Aitex.Core.RT.Routine;
  4. using Aitex.Core.Util;
  5. using MECF.Framework.Common.Equipment;
  6. using MECF.Framework.Common.Routine;
  7. using MECF.Framework.Common.Utilities;
  8. using CyberX8_Core;
  9. using CyberX8_RT.Devices.AXIS;
  10. using CyberX8_RT.Devices.AXIS.CANOpen;
  11. using CyberX8_RT.Modules.PUF;
  12. using CyberX8_RT.Modules;
  13. using System;
  14. using System.Collections.Generic;
  15. using System.Linq;
  16. using System.Text;
  17. using System.Threading.Tasks;
  18. using MECF.Framework.Common.CommonData.Loader;
  19. using CyberX8_RT.Modules.Transporter;
  20. using Aitex.Core.RT.SCCore;
  21. using CyberX8_RT.Modules.Loader;
  22. using MECF.Framework.Common.WaferHolder;
  23. using Aitex.Core.Common;
  24. using MECF.Framework.Common.SubstrateTrackings;
  25. namespace CyberX8_RT.Devices.Loader
  26. {
  27. public class LoaderUnloadRoutine : RoutineBase, IRoutine
  28. {
  29. private enum UnloadStep
  30. {
  31. CheckPreCondition,
  32. WSClampOn,
  33. LSGotoSetUp,
  34. LSGotoSetUpWait,
  35. ShuttleGotoIN,
  36. ShuttleGotoINWait,
  37. BernoulliBladderOn,
  38. BernoulliBladderOnCheck,
  39. BernoulliN2On,
  40. WSBladderOn,
  41. WSBladderOnCheck,
  42. LSVacuumOn,
  43. LSVacuumOnCheck,
  44. LSVacuumLevelCheck,
  45. LSVacuumLevelCheckWait,
  46. ShuttleGotoLS,
  47. ShuttleGotoLSWait,
  48. LSGotoSetup,
  49. LSGotoSetupWait,
  50. LSGotoUnlock,
  51. LSGotoUnlockWait,
  52. ReLSVacuumLevelCheck,
  53. ReLSVacuumLevelCheckWait,
  54. ShuttleGotoOUT,
  55. ShuttleGotoOUTWait,
  56. TiltGotoHori,
  57. TiltGotoHoriCheck,
  58. BernoulliN2Off,
  59. WSBladderOff,
  60. WSBladderOffCheck,
  61. End
  62. }
  63. #region 常量
  64. private const string SIDE_A = "SideA";
  65. private const string SIDE_B = "SideB";
  66. #endregion
  67. #region 内部变量
  68. private string _side = "";
  69. private JetAxisBase _lsAxis;
  70. private LoaderSideBernoulliBladderRoutine _bernoulliBladderRoutine;
  71. private LoaderSideVacuumRoutine _vacuumRoutine;
  72. private LoaderSideVacuumLevelCheckRoutine _vacuumLevelCheckRoutine;
  73. private LoaderSideWhBladderRoutine _whBladderRoutine;
  74. private JetAxisBase _shuttleAxis;
  75. private JetAxisBase _tiltAxis;
  76. private JetAxisBase _rotationAxis;
  77. private LoaderSideDevice _sideDevice;
  78. private LoaderCommonDevice _loaderCommonDevice;
  79. /// <summary>
  80. /// WaferSize
  81. /// </summary>
  82. private int _waferSize;
  83. #endregion
  84. /// <summary>
  85. /// 构造函数
  86. /// </summary>
  87. /// <param name="module"></param>
  88. public LoaderUnloadRoutine(string module, string side) : base(module)
  89. {
  90. _side = side;
  91. }
  92. /// <summary>
  93. /// 中止
  94. /// </summary>
  95. public void Abort()
  96. {
  97. Runner.Stop("Manual Abort");
  98. }
  99. /// <summary>
  100. /// 监控
  101. /// </summary>
  102. /// <returns></returns>
  103. public RState Monitor()
  104. {
  105. Runner.Run(UnloadStep.CheckPreCondition,CheckPreCondition,_delay_1ms)
  106. //1. WS Clamp on
  107. .Run(UnloadStep.WSClampOn, WSClampOnAction, () => { return _loaderCommonDevice.CommonData.WaferHolderClamp; }, _delay_5s)
  108. //2. LS Goto SetUp位
  109. .Run(UnloadStep.LSGotoSetUp, () => { return AxisPosition(_lsAxis,$"Setup{_waferSize}"); }, NullFun, _delay_1ms)
  110. .WaitWithStopCondition(UnloadStep.LSGotoSetUpWait, () => { return _lsAxis.Status == RState.End; },
  111. ()=>CheckAxisMotionStopStatus(_lsAxis))
  112. //3. Shuttle Goto IN
  113. .Run(UnloadStep.ShuttleGotoIN, () => { return AxisPosition(_shuttleAxis, "IN"); }, NullFun, _delay_1ms)
  114. .WaitWithStopCondition(UnloadStep.ShuttleGotoINWait, () => { return _shuttleAxis.Status == RState.End; },
  115. () => CheckAxisMotionStopStatus(_shuttleAxis))
  116. //4. BernoulliBladderOn
  117. .Run(UnloadStep.BernoulliBladderOn, () => { return _bernoulliBladderRoutine.Start(true) == RState.Running; }, _delay_1ms)
  118. .WaitWithStopCondition(UnloadStep.BernoulliBladderOnCheck, () => { return CommonFunction.CheckRoutineEndState(_bernoulliBladderRoutine); },
  119. () => CheckRoutineStopStatus(_bernoulliBladderRoutine, "BernoulliBladder On failed"))
  120. //5. BernoulliN2 On
  121. .Run(UnloadStep.BernoulliN2On, BernoulliN2On, () => { return _sideDevice.SideData.BernoulliN2; }, _delay_5s)
  122. //6. WS Bladder On
  123. .Run(UnloadStep.WSBladderOn, () => { return _whBladderRoutine.Start(true) == RState.Running; }, _delay_1ms)
  124. .WaitWithStopCondition(UnloadStep.WSBladderOnCheck, () => { return CommonFunction.CheckRoutineEndState(_whBladderRoutine); },
  125. () => CheckRoutineStopStatus(_whBladderRoutine, "WSBladder On failed"))
  126. //7. LS Vacuum On
  127. .Run(UnloadStep.LSVacuumOn, () => { return _vacuumRoutine.Start(true) == RState.Running; }, _delay_1ms)
  128. .WaitWithStopCondition(UnloadStep.LSVacuumOnCheck, () => { return CommonFunction.CheckRoutineEndState(_vacuumRoutine); },
  129. () => CheckRoutineStopStatus(_vacuumRoutine, "LS Vaccum On failed"))
  130. //8. LS vacuum level check
  131. .Run(UnloadStep.LSVacuumLevelCheck, () => { return _vacuumLevelCheckRoutine.Start(true) == RState.Running; }, _delay_1ms)
  132. .WaitWithStopCondition(UnloadStep.LSVacuumLevelCheckWait, () => { return CommonFunction.CheckRoutineEndState(_vacuumLevelCheckRoutine); },
  133. () => CheckRoutineStopStatus(_vacuumLevelCheckRoutine, "LS Vacuum Level Check failed"))
  134. //9. Shuttle Goto LS
  135. .Run(UnloadStep.ShuttleGotoLS, () => { return AxisPosition(_shuttleAxis, "LS"); }, NullFun, _delay_1ms)
  136. .WaitWithStopCondition(UnloadStep.ShuttleGotoLSWait, () => { return _shuttleAxis.Status == RState.End; },
  137. () => CheckAxisMotionStopStatus(_shuttleAxis))
  138. //10. LS Goto Unlock
  139. .Run(UnloadStep.LSGotoUnlock, () => { return AxisPosition(_lsAxis, $"Unlock{_waferSize}"); }, NullFun, _delay_1ms)
  140. .WaitWithStopCondition(UnloadStep.LSGotoUnlockWait, () => { return _lsAxis.Status == RState.End; },
  141. () => CheckAxisMotionStopStatus(_lsAxis))
  142. //11. Re LS Vacuum level Check
  143. .Run(UnloadStep.ReLSVacuumLevelCheck, () => { return _vacuumLevelCheckRoutine.Start(true) == RState.Running; }, _delay_1ms)
  144. .WaitWithStopCondition(UnloadStep.ReLSVacuumLevelCheckWait, () => { return CommonFunction.CheckRoutineEndState(_vacuumLevelCheckRoutine); },
  145. () => CheckRoutineStopStatus(_vacuumLevelCheckRoutine,"LS Vacuum Level check failed"))
  146. //12. Shuttle Goto OUT
  147. .Run(UnloadStep.ShuttleGotoOUT, () => { return AxisPosition(_shuttleAxis, $"OUT{_waferSize}"); }, NullFun, _delay_1ms)
  148. .WaitWithStopCondition(UnloadStep.ShuttleGotoOUTWait, () => { return _shuttleAxis.Status == RState.End; },
  149. () => CheckAxisMotionStopStatus(_shuttleAxis))
  150. //13. Tilt Goto HORI
  151. .Run(UnloadStep.TiltGotoHori, () => { return AxisPosition(_tiltAxis,"HORI"); }, NullFun, _delay_1ms)
  152. .WaitWithStopCondition(UnloadStep.TiltGotoHoriCheck, () => { return _tiltAxis.Status == RState.End; },
  153. () => CheckAxisMotionStopStatus(_tiltAxis))
  154. //14. Bernoulli N2 Off
  155. .Run(UnloadStep.BernoulliN2Off, BernoulliN2Off, () => { return !_sideDevice.SideData.BernoulliN2; }, _delay_5s)
  156. //15. WS Bladder Off
  157. .Run(UnloadStep.WSBladderOff, () => { return _whBladderRoutine.Start(false) == RState.Running; }, _delay_1ms)
  158. .WaitWithStopCondition(UnloadStep.WSBladderOffCheck, () => { return CommonFunction.CheckRoutineEndState(_whBladderRoutine); },
  159. () => CheckRoutineStopStatus(_whBladderRoutine, "WSBladder Off failed"))
  160. //17 Home CRS Axis
  161. //.Run(UnloadStep.HomingCRSAxis, CRSHome, _delay_1ms)
  162. //.WaitWithStopCondition(UnloadStep.HomingCRSAxisWait, () => { return _lsAxis.Status == RState.End; },
  163. // () => CheckCRSHomeStopStatus())
  164. //.Run(UnloadStep.CRSHomedGotoSetUp, () => { return AxisPosition(_lsAxis, $"Setup{_waferSize}"); }, _delay_1ms)
  165. //.WaitWithStopCondition(UnloadStep.CRSHomedGotoSetUpCheck, () => { return _lsAxis.Status == RState.End; },
  166. // () => CheckAxisMotionStopStatus(_lsAxis))
  167. .End(UnloadStep.End, NullFun);
  168. return Runner.Status;
  169. }
  170. /// <summary>
  171. /// 检验Routine异常状态
  172. /// </summary>
  173. /// <returns></returns>
  174. private bool CheckRoutineStopStatus(IRoutine routine,string error)
  175. {
  176. bool result = CommonFunction.CheckRoutineStopState(routine);
  177. if (result)
  178. {
  179. NotifyError(eEvent.ERR_LOADER, $"{error}", 0);
  180. }
  181. return result;
  182. }
  183. /// <summary>
  184. /// Axis goto position
  185. /// </summary>
  186. /// <param name="axis"></param>
  187. /// <param name="station"></param>
  188. /// <returns></returns>
  189. private bool AxisPosition(JetAxisBase axis,string station)
  190. {
  191. bool result = axis.PositionStation(station);
  192. if (!result)
  193. {
  194. NotifyError(eEvent.ERR_LOADER, $"{axis.Module} goto {station} failed", 0);
  195. }
  196. return result;
  197. }
  198. /// <summary>
  199. /// 检验电机运动异常状态
  200. /// </summary>
  201. /// <param name="axis"></param>
  202. /// <returns></returns>
  203. private bool CheckAxisMotionStopStatus(JetAxisBase axis)
  204. {
  205. bool result = axis.Status == RState.Failed || axis.Status == RState.Timeout;
  206. if (result)
  207. {
  208. NotifyError(eEvent.ERR_LOADER, $"{axis.Module} motion failed", 0);
  209. }
  210. return result;
  211. }
  212. /// <summary>
  213. /// BerolliN2 On
  214. /// </summary>
  215. /// <returns></returns>
  216. private bool BernoulliN2On()
  217. {
  218. bool result= _sideDevice.BernoulliN2OnAction("", null);
  219. if (!result)
  220. {
  221. NotifyError(eEvent.ERR_LOADER, $"BernoulliN2 On failed", 0);
  222. }
  223. return result;
  224. }
  225. /// <summary>
  226. /// BernoulliN2Off
  227. /// </summary>
  228. /// <returns></returns>
  229. private bool BernoulliN2Off()
  230. {
  231. bool result = _sideDevice.BernoulliN2OffAction("", null);
  232. if (!result)
  233. {
  234. NotifyError(eEvent.ERR_LOADER, "BernoulliN2 Off failed", 0);
  235. }
  236. return result;
  237. }
  238. /// <summary>
  239. /// Wafer Holder Clamp Off
  240. /// </summary>
  241. /// <returns></returns>
  242. public bool WSClampOffAction()
  243. {
  244. bool result = _loaderCommonDevice.WaferHolderClampOffAction();
  245. if (!result)
  246. {
  247. NotifyError(eEvent.ERR_LOADER, "Wafer Shuttle Clamp Off failed", 2);
  248. }
  249. return result;
  250. }
  251. /// <summary>
  252. /// Wafer Holder Clamp On
  253. /// </summary>
  254. /// <returns></returns>
  255. public bool WSClampOnAction()
  256. {
  257. bool result = _loaderCommonDevice.WaferHolderClampOnAction();
  258. if (!result)
  259. {
  260. NotifyError(eEvent.ERR_LOADER, "Wafer Shuttle Clamp On failed", 2);
  261. }
  262. return result;
  263. }
  264. /// <summary>
  265. /// 启动
  266. /// </summary>
  267. /// <param name="objs"></param>
  268. /// <returns></returns>
  269. /// <exception cref="NotImplementedException"></exception>
  270. public RState Start(params object[] objs)
  271. {
  272. LoaderEntity loaderEntity = Singleton<RouteManager>.Instance.GetModule<LoaderEntity>(ModuleName.Loader1.ToString());
  273. if (_side == SIDE_A)
  274. {
  275. _waferSize = loaderEntity.SideAWaferSize;
  276. }
  277. else
  278. {
  279. _waferSize = loaderEntity.SideBWaferSize;
  280. }
  281. _shuttleAxis = GetShuttleAxis();
  282. _lsAxis = GetCrsAxis();
  283. _tiltAxis = GetTiltAxis();
  284. _loaderCommonDevice = DEVICE.GetDevice<LoaderCommonDevice>($"Loader1.Common");
  285. _rotationAxis = DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Loader1}.Rotation");
  286. _sideDevice = DEVICE.GetDevice<LoaderSideDevice>($"{Module}.{_side}");
  287. _vacuumRoutine = new LoaderSideVacuumRoutine($"{Module}.{_side}");
  288. _vacuumLevelCheckRoutine = new LoaderSideVacuumLevelCheckRoutine($"{Module}.{_side}");
  289. //_unloadVacuumLevelCheckRoutine = new LoaderSideUnloadVacuumLevelCheckRoutine($"{Module}.{_side}");
  290. _whBladderRoutine = new LoaderSideWhBladderRoutine($"{Module}.{_side}");
  291. _bernoulliBladderRoutine = new LoaderSideBernoulliBladderRoutine($"{Module}.{_side}");
  292. Runner.Start(Module, $"Unload {_side}");
  293. return RState.Running;
  294. }
  295. /// <summary>
  296. /// 获取Shuttle轴对象
  297. /// </summary>
  298. /// <returns></returns>
  299. private JetAxisBase GetShuttleAxis()
  300. {
  301. switch (_side)
  302. {
  303. case "SideA":
  304. return DEVICE.GetDevice<JetAxisBase>($"{Module}.ShuttleA");
  305. default:
  306. return DEVICE.GetDevice<JetAxisBase>($"{Module}.ShuttleB");
  307. }
  308. }
  309. /// <summary>
  310. /// 获取CRS轴对象
  311. /// </summary>
  312. /// <returns></returns>
  313. private JetAxisBase GetCrsAxis()
  314. {
  315. switch (_side)
  316. {
  317. case "SideA":
  318. return DEVICE.GetDevice<JetAxisBase>($"{Module}.LSA");
  319. default:
  320. return DEVICE.GetDevice<JetAxisBase>($"{Module}.LSB");
  321. }
  322. }
  323. /// <summary>
  324. /// 获取Tilt轴对象
  325. /// </summary>
  326. /// <returns></returns>
  327. private JetAxisBase GetTiltAxis()
  328. {
  329. switch (_side)
  330. {
  331. case "SideA":
  332. return DEVICE.GetDevice<JetAxisBase>($"{Module}.TiltA");
  333. default:
  334. return DEVICE.GetDevice<JetAxisBase>($"{Module}.TiltB");
  335. }
  336. }
  337. /// <summary>
  338. /// 检验前置条件
  339. /// </summary>
  340. /// <returns></returns>
  341. private bool CheckPreCondition()
  342. {
  343. if (!CheckHomeCondition())
  344. {
  345. return false;
  346. }
  347. if (!CheckUnloadAxisCondition())
  348. {
  349. return false;
  350. }
  351. if (!UnloadStatusCheck())
  352. {
  353. return false;
  354. }
  355. return true;
  356. }
  357. /// <summary>
  358. /// 检验Home条件
  359. /// </summary>
  360. /// <returns></returns>
  361. private bool CheckHomeCondition()
  362. {
  363. //检验PUF、Loader Transporter,Robot均Homed
  364. //Efem Home
  365. if (ModuleHelper.IsInstalled(ModuleName.EFEM))
  366. {
  367. EfemEntity efemEntity = Singleton<RouteManager>.Instance.GetModule<EfemEntity>(ModuleName.EFEM.ToString());
  368. if (!efemEntity.IsHomed)
  369. {
  370. LOG.WriteLog(eEvent.ERR_EFEM_ROBOT, Module, $"{ModuleName.EFEM.ToString()} is not home, Cannot execute GotoSavedPosition");
  371. return false;
  372. }
  373. }
  374. if (ModuleHelper.IsInstalled(ModuleName.PUF1))
  375. {
  376. PUFEntity puf1Entity = Singleton<RouteManager>.Instance.GetModule<PUFEntity>(ModuleName.PUF1.ToString());
  377. if (!puf1Entity.IsHomed)
  378. {
  379. NotifyError(eEvent.ERR_LOADER, "PUF1 is not homed",-1);
  380. return false;
  381. }
  382. }
  383. if (ModuleHelper.IsInstalled(ModuleName.Transporter2))
  384. {
  385. TransporterEntity loaderTransportEntity = Singleton<RouteManager>.Instance.GetModule<TransporterEntity>(ModuleName.Transporter2.ToString());
  386. if (!loaderTransportEntity.IsHomed)
  387. {
  388. NotifyError(eEvent.ERR_LOADER, "Loader Transporter is not homed",-1);
  389. return false;
  390. }
  391. }
  392. return true;
  393. }
  394. /// <summary>
  395. /// 检验Axis条件
  396. /// </summary>
  397. /// <param name="side"></param>
  398. /// <returns></returns>
  399. private bool CheckUnloadAxisCondition()
  400. {
  401. if (!_rotationAxis.IsHomed)
  402. {
  403. NotifyError(eEvent.ERR_LOADER, $"Rotation is not homed",-1);
  404. return false;
  405. }
  406. if (!_shuttleAxis.IsHomed)
  407. {
  408. NotifyError(eEvent.ERR_LOADER, $"{_shuttleAxis.Name} is not homed", -1);
  409. return false;
  410. }
  411. if (!_tiltAxis.IsHomed)
  412. {
  413. NotifyError(eEvent.ERR_LOADER, $"{_tiltAxis.Name} is not homed",-1);
  414. return false;
  415. }
  416. if (!_lsAxis.IsHomed)
  417. {
  418. NotifyError(eEvent.ERR_LOADER, $"{_lsAxis.Name} is not homed", -1);
  419. return false;
  420. }
  421. //LS已经运动到 Setup 位
  422. double crsPosition = _lsAxis.MotionData.MotorPosition;
  423. if (!_lsAxis.CheckPositionIsInStation(crsPosition, $"Setup{_waferSize}"))
  424. {
  425. NotifyError(eEvent.ERR_LOADER, $"LS {crsPosition} not in Setup{_waferSize}", -1);
  426. return false;
  427. }
  428. //Rotation已经运动到 loaderA 位(sideA 下片时)或 loaderB 位(sideB 下片时)
  429. double rotationPosition = _rotationAxis.MotionData.MotorPosition;
  430. if(_side == "SideA")
  431. {
  432. if (!_rotationAxis.CheckPositionIsInStation(rotationPosition, $"LOADA{_waferSize}"))
  433. {
  434. NotifyError(eEvent.ERR_LOADER, $"Rotation {rotationPosition} not in LOADA{_waferSize}", -1);
  435. return false;
  436. }
  437. }
  438. else
  439. {
  440. if (!_rotationAxis.CheckPositionIsInStation(rotationPosition, $"LOADB{_waferSize}"))
  441. {
  442. NotifyError(eEvent.ERR_LOADER, $"Rotation {rotationPosition} not in LOADB{_waferSize}", -1);
  443. return false;
  444. }
  445. }
  446. //Shuttle已经运动到 MID 位
  447. double shuttlePosition =_shuttleAxis.MotionData.MotorPosition;
  448. if (!_shuttleAxis.CheckPositionIsInStation(shuttlePosition, "MID"))
  449. {
  450. NotifyError(eEvent.ERR_LOADER, $"Shuttle {shuttlePosition} not in MID", -1);
  451. return false;
  452. }
  453. //Tilt已经运动到 VERT 位
  454. double tiltPosition = _tiltAxis.MotionData.MotorPosition;
  455. if (!_tiltAxis.CheckPositionIsInStation(tiltPosition, "VERT"))
  456. {
  457. NotifyError(eEvent.ERR_LOADER, $"Tilt {tiltPosition} not in VERT", -1);
  458. return false;
  459. }
  460. return true;
  461. }
  462. /// <summary>
  463. /// 检验状态条件
  464. /// </summary>
  465. /// <param name="side"></param>
  466. /// <returns></returns>
  467. private bool UnloadStatusCheck()
  468. {
  469. LoaderSideData sideData = _sideDevice.SideData;
  470. LoaderCommonData commonData = _loaderCommonDevice.CommonData;
  471. //Bernoulli N2(BernoulliN2 off)
  472. if (sideData.BernoulliN2)
  473. {
  474. NotifyError(eEvent.ERR_LOADER, "Bernoulli N2 is on",-1);
  475. return false;
  476. }
  477. //LS Vacuum检验(LS Vaccum off)
  478. if (sideData.CRSVacuum)
  479. {
  480. NotifyError(eEvent.ERR_LOADER, "LS Vacuum is on", -1);
  481. return false;
  482. }
  483. //Wafer Shuttle Present(WS present)
  484. if (!commonData.WaferHolderPresent)
  485. {
  486. NotifyError(eEvent.ERR_LOADER, "Wafer Shuttle is absent", -1);
  487. return false;
  488. }
  489. //Wafer Shuttle Clamp(Clamp on/off均可)
  490. //Wafer Shuttle Bladder(Bladder off)
  491. if (sideData.WHBladder)
  492. {
  493. NotifyError(eEvent.ERR_LOADER, "Wafer Shuttle Bladder is on", -1);
  494. return false;
  495. }
  496. //Drip Tray Fluid(Drip Tray Fluid正常)
  497. if (commonData.DripTrayFluid)
  498. {
  499. NotifyError(eEvent.ERR_LOADER, "Drip Tray Fluid is on", -1);
  500. return false;
  501. }
  502. return true;
  503. }
  504. /// <summary>
  505. /// CRS Home
  506. /// </summary>
  507. /// <returns></returns>
  508. private bool CRSHome()
  509. {
  510. bool result = _lsAxis.Home();
  511. if (!result)
  512. {
  513. NotifyError(eEvent.ERR_LOADER, "LS Axis home failed", 0);
  514. }
  515. return result;
  516. }
  517. /// <summary>
  518. /// 检验CRS home异常状态
  519. /// </summary>
  520. /// <returns></returns>
  521. private bool CheckCRSHomeStopStatus()
  522. {
  523. bool result = _lsAxis.Status == RState.Failed || _lsAxis.Status == RState.Timeout;
  524. if (result)
  525. {
  526. NotifyError(eEvent.ERR_LOADER, "LS Axis home failed", 0);
  527. }
  528. return result;
  529. }
  530. }
  531. }