123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using Aitex.Core.RT.Device;
- using Aitex.Core.RT.Routine;
- using MECF.Framework.Common.Equipment;
- using MECF.Framework.Common.Routine;
- using MECF.Framework.Common.Utilities;
- using CyberX8_Core;
- using CyberX8_RT.Devices.AXIS.CANOpen;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CyberX8_RT.Devices.Loader
- {
- public class LoaderPreTransferUnclampRoutine : RoutineBase, IRoutine
- {
- private enum UnclampStep
- {
- WaferHolderUnClamp,
-
-
- FlowUnClamp,
- End
- }
- #region 内部变量
- private LoaderCommonDevice _commonDevice;
-
- #endregion
-
-
-
-
- public LoaderPreTransferUnclampRoutine(string module) : base(module)
- {
- }
-
-
-
- public void Abort()
- {
- Runner.Stop("Manual Abort");
- }
-
-
-
-
- public RState Monitor()
- {
- Runner.Run(UnclampStep.WaferHolderUnClamp, _commonDevice.WaferHolderClampOffAction, _delay_1ms)
-
-
-
- .Run(UnclampStep.FlowUnClamp, _commonDevice.LeakFlowClampOffAction, _delay_1ms)
- .End(UnclampStep.End, NullFun, _delay_1ms);
- return Runner.Status;
- }
-
-
-
-
-
- public RState Start(params object[] objs)
- {
-
- _commonDevice = DEVICE.GetDevice<LoaderCommonDevice>($"{ModuleName.Loader1}.Common");
- return Runner.Start(Module,"Start PreTransfer Unclamp");
- }
- }
- }
|