12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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<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;
- 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?();
- }
- }
- }
|