终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

108 行
2.8 KiB

  1. namespace BPASmartClient.DosingSystem
  2. {
  3. /// <summary>
  4. /// PLC 到上位机数据
  5. /// </summary>
  6. public class PlcToComputer
  7. {
  8. public PlcToComputer()
  9. {
  10. for (int i = 0; i < cylinderFlagBitStatus.Length; i++)
  11. {
  12. cylinderFlagBitStatus[i] = new CylinderFlagBitStatus();
  13. }
  14. }
  15. /// <summary>
  16. /// 心跳
  17. /// </summary>
  18. public bool Heartbeat { get; set; }
  19. /// <summary>
  20. /// 接收配方完成
  21. /// </summary>
  22. public bool ResComplete { get; set; }
  23. /// <summary>
  24. /// 系统启动或停止状态
  25. /// </summary>
  26. public bool SystemStartOrStop { get; set; }
  27. /// <summary>
  28. /// 手自动状态
  29. /// </summary>
  30. public bool HandOrAuto { get; set; }
  31. /// <summary>
  32. /// 桶位置反馈
  33. /// </summary>
  34. public short[] LocationFeedback { get; set; } = new short[32];
  35. /// <summary>
  36. /// 桶是否允许配料
  37. /// </summary>
  38. public bool[] IsAllowIngredients { get; set; } = new bool[32];
  39. /// <summary>
  40. /// 报警信息
  41. /// </summary>
  42. public bool[] ArrayInfo { get; set; } = new bool[32];
  43. /// <summary>
  44. /// 本地急停
  45. /// </summary>
  46. public bool LocalEStop { get; set; }
  47. /// <summary>
  48. /// 远程急停
  49. /// </summary>
  50. public bool RemoteEStop { get; set; }
  51. /// <summary>
  52. /// 上桶工位检测
  53. /// </summary>
  54. public bool OnDetection { get; set; }
  55. /// <summary>
  56. /// 下桶工位检测
  57. /// </summary>
  58. public bool UnderDetection { get; set; }
  59. /// <summary>
  60. /// 上桶工位气缸检测
  61. /// </summary>
  62. public CylinderFlagBitStatus OnCylinderDetection { get; set; } = new CylinderFlagBitStatus();
  63. /// <summary>
  64. /// 下桶工位气缸检测
  65. /// </summary>
  66. public CylinderFlagBitStatus UnderCylinderDetection { get; set; } = new CylinderFlagBitStatus();
  67. /// <summary>
  68. /// 工位光电检测
  69. /// </summary>
  70. public bool[] StationDetection { get; set; } = new bool[32];
  71. /// <summary>
  72. /// 气缸状态信号
  73. /// </summary>
  74. public CylinderFlagBitStatus[] cylinderFlagBitStatus { get; set; } = new CylinderFlagBitStatus[32];
  75. }
  76. /// <summary>
  77. /// 气缸到位检测类
  78. /// </summary>
  79. public class CylinderFlagBitStatus
  80. {
  81. /// <summary>
  82. /// 气缸原点信号
  83. /// </summary>
  84. public bool HomeSignal { get; set; }
  85. /// <summary>
  86. /// 气缸到位信号
  87. /// </summary>
  88. public bool InPlaceSignal { get; set; }
  89. }
  90. }