LoaderUnloadRoutine.cs 22 KB

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