终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

114 rindas
2.9 KiB

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