123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using Aitex.Core.Common;
- using Aitex.Core.RT.Device;
- using Aitex.Core.RT.Device.Unit;
- 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 AlignTaskEx2 : CheckImp, ITask
- {
- public bool Execute(out string result, params string[] args)
- {
- string str = "CoolingBuffer2";
- BufferServerModule entity = (BufferServerModule)this.GetEntity(str);
- if (entity == null)
- {
- result = "PARAM_NG";
- return false;
- }
- if (!this.MultiWaferSize)
- ;
- if (!this.Check<NoReadyPolicy>(str, out result) || !this.Check<NoInitCompletedPolicy>(str, out result) || !this.Check<NoOriginCompletedPolicy>(str, out result) || !this.Check<VacPolicy>(str, out result) || !this.Check<EMSPolicy>(str, out result) || !this.Check<ErrorPolicy>(str, out result) || !this.Check<BusyPolicy>(str, out result) || !this.Check<HoldPolicy>(str, out result) || !this.Check<RemovePolicy>(str, out result) || !this.Check<MaintenancePolicy>(str, out result) || !this.Check<LinkPolicy>(str, out result) || !this.Check<ArmExtendPolicy>(str, out result) || !this.Check<PowerDownPolicy>(str, out result))
- return false;
- entity.Align((WaferSize)Enum.Parse(typeof(WaferSize), args[0]), out result);
- return true;
- }
- public bool? Monitor(out string result, params string[] args)
- {
- result = string.Empty;
- string str = "CoolingBuffer2";
- IoCoolingBuffer device = DEVICE.GetDevice<IoCoolingBuffer>(str);
- if (device.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 !device.Moving ? new bool?(true) : new bool?();
- }
- }
- }
|