VpwManualRecipeRoutine.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using Aitex.Core.RT.Routine;
  2. using MECF.Framework.Common.Routine;
  3. using PunkHPX8_Core;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PunkHPX8_RT.Modules.VpwCell
  10. {
  11. public class VpwManualRecipeRoutine : RoutineBase, IRoutine
  12. {
  13. /// <summary>
  14. /// 构造函数
  15. /// </summary>
  16. /// <param name="module"></param>
  17. public VpwManualRecipeRoutine(string module) : base(module)
  18. {
  19. }
  20. /// <summary>
  21. /// 中止
  22. /// </summary>
  23. public void Abort()
  24. {
  25. Runner.Stop("Manual stop");
  26. }
  27. /// <summary>
  28. /// 监控
  29. /// </summary>
  30. /// <returns></returns>
  31. public RState Monitor()
  32. {
  33. return Runner.Status;
  34. }
  35. /// <summary>
  36. /// 启动
  37. /// </summary>
  38. /// <param name="objs"></param>
  39. /// <returns></returns>
  40. public RState Start(params object[] objs)
  41. {
  42. return Runner.Start(Module, "start run recipe");
  43. }
  44. }
  45. }