using Aitex.Core.RT.Routine;
using MECF.Framework.Common.Routine;
using PunkHPX8_Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PunkHPX8_RT.Modules.PlatingCell
{
public class PlatingCellRunRecipeRoutine : RoutineBase, IRoutine
{
private enum RunRecipeStep
{
Delay,
End
}
///
/// 构造函数
///
///
public PlatingCellRunRecipeRoutine(string module) : base(module)
{
}
///
/// 中止
///
public void Abort()
{
Runner.Stop("Manual Abort");
}
///
/// 监控
///
///
public RState Monitor()
{
Runner.Delay(RunRecipeStep.Delay, 5000)
.End(RunRecipeStep.End, NullFun);
return RState.Init;
}
///
/// 启动
///
///
///
public RState Start(params object[] objs)
{
return Runner.Start(Module, "Run Recipe");
}
}
}