1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Aitex.Core.RT.Routine;
- using CyberX8_Core;
- using MECF.Framework.Common.Routine;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CyberX8_RT.Modules.Rinse
- {
- public class RinseKeepwetRoutine : RoutineBase, IRoutine
- {
- private enum KeepwetStep
- {
- LoopStart,
- LoopDelay,
- LoopEnd,
- End
- }
- #region 内部变量
- private int _cycleCount = 100;
- #endregion
-
-
-
-
- public RinseKeepwetRoutine(string module) : base(module)
- {
- }
-
-
-
- public void Abort()
- {
- Runner.Stop("Manual Abort");
- }
-
-
-
-
- public RState Monitor()
- {
- Runner.LoopStart(KeepwetStep.LoopStart, "rinse keepwet", _cycleCount, NullFun, _delay_1ms)
- .LoopDelay(KeepwetStep.LoopDelay, _delay_60s)
- .LoopEnd(KeepwetStep.LoopEnd, NullFun, _delay_1ms)
- .End(KeepwetStep.End, NullFun, _delay_1ms);
- return Runner.Status;
- }
-
-
-
-
-
- public RState Start(params object[] objs)
- {
- return Runner.Start(Module, "Start Rinse Keepwet");
- }
- }
- }
|