using Aitex.Core.RT.Device; using Aitex.Core.Util; using Aitex.Sorter.Common; using Efem; using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot; using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.RobotBase; namespace EFEM.RT.Tasks { public class AbortTask : CheckImp, ITask { public AbortTask() { } public bool Execute(out string result, params string[] args) { string device = DeviceName.Robot; if (args.Length > 0) { result = PARAM_NG; return false; } if (!Check(device, out result)) { return false; } if (!Check(device, out result)) { return false; } if (!Check(device, out result)) { return false; } if (!Check(device, out result)) { return false; } if (!Check(device, out result)) { return false; } if (!Check(device, out result)) { return false; } if (!Check(device, out result)) { return false; } if (!Check(device, out result)) { return false; } Singleton.Instance.SetSystemUnHold(); RobotBaseDevice robot = DEVICE.GetDevice(device); if (!robot.Home(null)) { return false; } return true; } public bool? Monitor(out string result, params string[] args) { result = string.Empty; string device = DeviceName.Robot; RobotBaseDevice robot = DEVICE.GetDevice(device); if (robot.IsError) { return false; } if (!robot.IsIdle) { return true; } return null; } } }