LoaderUnloadRoutine.cs 22 KB

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