ProcessException.cs 864 B

123456789101112131415161718192021222324252627282930313233343536
  1. using SKMC.Api.Common.Exceptions;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SKMC.Api.Process.Config
  8. {
  9. /// <summary>
  10. /// 运行流程中的异常
  11. /// </summary>
  12. public class ProcessException : ExceptionBase
  13. {
  14. /// <summary>
  15. /// 急停开关触发 512
  16. /// </summary>
  17. public static int EMG_On = 0b_0010_0000_0000;
  18. /// <summary>
  19. /// 复位失败 513
  20. /// </summary>
  21. public static int Reset_Fail = 0b_0010_0000_0001;
  22. /// <summary>
  23. /// 启动失败 514
  24. /// </summary>
  25. public static int Start_Fail = 0b_0010_0000_0010;
  26. /// <summary>
  27. /// 动作中断 516
  28. /// </summary>
  29. public static int Action_Interrupt = 0b_0010_0000_0100;
  30. }
  31. }