1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using Aitex.Core.RT.Device;
- 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 ClearErrorTask : CheckImp, ITask
- {
- public ClearErrorTask() => this.HasInfoMessage = false;
- public bool Execute(out string result, params string[] args)
- {
- string str = "System";
- if (!string.Equals(args[0], "CLEAR"))
- {
- result = "PARAM_NG";
- return false;
- }
- if (!this.Check<NoReadyPolicy>(str, out result) || !this.Check<MaintenancePolicy>(str, out result))
- return false;
- ((SystemServerModule)this.GetEntity(str)).ClearError();
- return true;
- }
- public bool? Monitor(out string result, params string[] args)
- {
- result = string.Empty;
- string str = "System";
- LoadPortBaseDevice device = DEVICE.GetDevice<LoadPortBaseDevice>(str);
- if (device != null && device.IsError)
- {
- this.flag3 = ErrorCheckList3.HARDWARE | ErrorCheckList3.INTERNAL;
- return new bool?(this.CheckError(str, out result));
- }
- return device == null || !device.IsBusy ? new bool?(true) : new bool?();
- }
- }
- }
|