using Aitex.Core.RT.Device; using Aitex.Core.Util; using athosRT.Devices.EFEM.ABS; using athosRT.Modules.EFEMs; using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robots.RobotBase; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace athosRT.Devices.EFEM.Task { public class AbortTask : CheckImp, ITask { public bool Execute(out string result, params string[] args) { string str = "Robot"; if (args.Length != 0) { result = "PARAM_NG"; return false; } if (!this.Check(str, out result) || !this.Check(str, out result) || !this.Check(str, out result) || !this.Check(str, out result) || !this.Check(str, out result) || !this.Check(str, out result) || !this.Check(str, out result) || !this.Check(str, out result)) return false; Singleton.Instance.SetSystemUnHold(); return DEVICE.GetDevice(str).Home((object[])null); } public bool? Monitor(out string result, params string[] args) { result = string.Empty; RobotBaseDevice device = DEVICE.GetDevice("Robot"); if (device.IsError) return new bool?(false); return !device.IsIdle ? new bool?(true) : new bool?(); } } }