1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using Aitex.Core.RT.Device;
- using Aitex.Core.Util;
- using Aitex.Sorter.Common;
- using Aitex.Sorter.RT.EFEMs.Servers;
- using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot;
- namespace Aitex.Sorter.RT.EFEMs.Tasks
- {
-
- public class RestrTask : CheckImp, ITask
- {
- public RestrTask()
- {
- HasInfoMessage = false;
- }
- public bool Execute(out string result, params string[] args)
- {
- string device = DeviceName.Robot;
- if (!Check<NoReadyPolicy>(device, out result))
- {
- return false;
- }
- if (!Check<VacPolicy>(device, out result))
- {
- return false;
- }
- if (!Check<EMSPolicy>(device, out result))
- {
- return false;
- }
- if (!Check<ErrorPolicy>(device, out result))
- {
- return false;
- }
- if (!Check<NoHoldPolicy>(device, out result))
- {
- return false;
- }
- if (!Check<MaintenancePolicy>(device, out result))
- {
- return false;
- }
- if (!Check<PowerDownPolicy>(device, out result))
- {
- return false;
- }
- Singleton<EfemEntity>.Instance.SetSystemUnHold();
- Robot robot = DEVICE.GetDevice<Robot>(device);
- if (!robot.Resume( out result))
- {
- return false;
- }
- return true;
-
- }
- public bool? Monitor(out string result, params string[] args)
- {
- result = string.Empty;
- return true;
- }
- }
- }
|