using Aitex.Core.Common; using athosRT.Devices.EFEM.ABS; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace athosRT.Devices.EFEM.Task { public class AlignTaskEx : CheckImp, ITask { public bool Execute(out string result, params string[] args) { result = string.Empty; string str = "CoolingBuffer1"; BufferServerModule entity = (BufferServerModule)this.GetEntity(str); if (entity == null) { result = "PARAM_NG"; return false; } if (!this.MultiWaferSize) ; 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) || !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; WaferSize _wafersize; if (Enum.TryParse(args[0], out _wafersize)) { entity.Align(_wafersize, out result); } else { entity.Align(WaferSize.WS0, out result); } return true; } public bool? Monitor(out string result, params string[] args) { result = string.Empty; string str = "CoolingBuffer1"; BufferServerModule entity = (BufferServerModule)this.GetEntity(str); if (entity == null) { result = "PARAM_NG"; return new bool?(false); } if (entity.Error) { this.flag1 = ErrorCheckList1.VAC | ErrorCheckList1.STALL | ErrorCheckList1.LIMIT | ErrorCheckList1.POSITION | ErrorCheckList1.EMS | ErrorCheckList1.COMM | ErrorCheckList1.COMM2 | ErrorCheckList1.CLAMPON | ErrorCheckList1.CLAMPOF; this.flag2 = ErrorCheckList2.COMMAND | ErrorCheckList2.CLAMP_S; this.flag3 = ErrorCheckList3.WAFLOST | ErrorCheckList3.ALIGNNG | ErrorCheckList3.HARDWARE | ErrorCheckList3.INTERNAL; return new bool?(this.CheckError(str, out result)); } return !entity.Busy ? new bool?(true) : new bool?(); } } }