12345678910111213141516171819202122232425262728293031323334353637 |
- using Aitex.Core.RT.Device;
- using Aitex.Sorter.Common;
- using athosRT.Devices.EFEM.ABS;
- using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.LoadPorts.LoadPortBase;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace athosRT.Devices.EFEM.Task
- {
- public class SetModeTask : CheckImp, ITask
- {
- public bool Execute(out string result, params string[] args)
- {
- string str = this.Args2Unit(args.Length != 0 ? args[0] : string.Empty);
- IServerModule entity = this.GetEntity(str);
- if (entity == null || !(entity is LoadPortServerModule))
- {
- result = "PARAM_NG";
- return false;
- }
- return this.Check<NoReadyPolicy>(str, out result) && this.Check<NoInitCompletedPolicy>(str, out result) && this.Check<NoOriginCompletedPolicy>(str, out result) && this.Check<ErrorPolicy>(str, out result) && this.Check<BusyPolicy>(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<NoPosPolicy>(str, out result) && this.Check<NoPodPolicy>(str, out result) && this.Check<NoFuncPolicy>(str, out result);
- }
- public bool? Monitor(out string result, params string[] args)
- {
- result = string.Empty;
- LoadPortBaseDevice device = DEVICE.GetDevice<LoadPortBaseDevice>(this.Args2Unit(args.Length != 0 ? args[0] : string.Empty));
- if (device.IsError)
- return new bool?(false);
- return !device.IsBusy && device.ClampState == FoupClampState.Close ? new bool?(true) : new bool?();
- }
- }
- }
|