IMachineBoardControl.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SKMC.Api.Machine.Control
  7. {
  8. /// <summary>
  9. /// 机台面板控制逻辑接口
  10. /// </summary>
  11. public interface IMachineBoardControl
  12. {
  13. /// <summary>
  14. /// 是否启用
  15. /// </summary>
  16. bool Actived { get; set; }
  17. /// <summary>
  18. /// 是否告警中
  19. /// </summary>
  20. bool IsAlarm { get; set; }
  21. /// <summary>
  22. /// 设备启动动作
  23. /// </summary>
  24. Action StartAction { get; set; }
  25. /// <summary>
  26. /// 设备启动事件
  27. /// </summary>
  28. event Action StartEvent;
  29. /// <summary>
  30. /// 设备复位动作
  31. /// </summary>
  32. Action ResetAction { get; set; }
  33. /// <summary>
  34. /// 设备复位事件
  35. /// </summary>
  36. event Action ResetEvent;
  37. /// <summary>
  38. /// 设备暂停动作
  39. /// </summary>
  40. Action PauseAction { get; set; }
  41. /// <summary>
  42. /// 设备暂停单站动作
  43. /// </summary>
  44. Action<int> PauseOneAction { get; set; }
  45. /// <summary>
  46. /// 设备暂停事件
  47. /// </summary>
  48. event Action PauseEvent;
  49. /// <summary>
  50. /// 设备恢复运行动作
  51. /// </summary>
  52. Action ResumeAction { get; set; }
  53. /// <summary>
  54. /// 设备恢复运行事件
  55. /// </summary>
  56. event Action ResumeEvent;
  57. /// <summary>
  58. /// 设备清料停止动作
  59. /// </summary>
  60. Action ClearAction { get; set; }
  61. /// <summary>
  62. /// 设备清料停止事件
  63. /// </summary>
  64. event Action ClearEvent;
  65. /// <summary>
  66. /// 设备停止动作(退出自动流程, 并执行Stop动作)
  67. /// </summary>
  68. Action StopAction { get; set; }
  69. /// <summary>
  70. /// 设备停止事件
  71. /// </summary>
  72. event Action StopEvent;
  73. /// <summary>
  74. /// 设备退出动作(退出自动流程, 但不执行Stop动作)
  75. /// </summary>
  76. Action QuitAction { get; set; }
  77. /// <summary>
  78. /// 设备退出事件
  79. /// </summary>
  80. event Action QuitEvent;
  81. }
  82. }