奥特QT DDS 插件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 5 месеци
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. module SampleModule {
  2. // 定义枚举类型,用于表示命令的状态
  3. enum CommandState {
  4. STOP, // 停止
  5. START // 启动
  6. };
  7. // 一次性采样配置数据
  8. struct SampleConfig {
  9. uint16 unifiedDepth; // 统一深度(全段面采样时使用)
  10. uint8 sampleOrder; // 大车行进顺序(1: 原点往外,2: 往原点采)
  11. };
  12. // 采样命令结构体
  13. struct SampleCommand {
  14. uint32 maskBits; // 32位掩码,表示哪些字段被修改
  15. uint8 controlType; // 控制类型(1: 就地,2: 远程)
  16. CommandState startSample; // 启动采样命令
  17. CommandState stopSample; // 停止采样命令
  18. CommandState reset; // 系统复位命令
  19. CommandState positionCheck; // 位置确认命令
  20. CommandState emergencyUp; // 紧急提升命令
  21. CommandState emergencyStop; // 系统急停命令
  22. CommandState controlBelt1; // 启停皮带1
  23. CommandState controlBelt2; // 启停皮带2
  24. CommandState controlCrush1; // 启停破碎机1
  25. CommandState controlCrush2; // 启停破碎机2
  26. CommandState controlDivider; // 启停缩分器
  27. CommandState controlCoalDistributor; // 打开布煤器
  28. uint16 reductionRatio; // 缩分比
  29. uint8 version; // 结构体版本号(可选)
  30. };
  31. // 定义枚举类型,用于表示设备状态
  32. enum DeviceState {
  33. OFF, // 关闭
  34. ON, // 启动
  35. ERROR // 错误状态
  36. };
  37. // 采样机状态信息
  38. struct SampleMachineInfo {
  39. uint32 maskBits; // 32位掩码,表示哪些字段被修改
  40. uint16 bigPoint; // 大车位置
  41. uint16 smallPoint; // 小车位置
  42. uint16 depthPoint; // 深度位置
  43. uint8 hasToXY; // 到达坐标点(0: 未到达,1: 已到达)
  44. uint8 hasSamplePoints; // 已采样点数
  45. uint8 gameOver; // 采样完成(0: 未完成,1: 完成)
  46. uint16 backState; // 采样状态返回
  47. DeviceState sampleState; // 采样机状态
  48. DeviceState belt1State; // 皮带1状态
  49. DeviceState belt2State; // 皮带2状态
  50. DeviceState crush1State; // 破碎机1状态
  51. DeviceState crush2State; // 破碎机2状态
  52. DeviceState dividerState; // 缩分器状态
  53. uint8 bigLimit; // 大车限位(0: 未限位,1: 已限位)
  54. uint8 bigZeroLimit; // 大车零点限位(0: 未限位,1: 已限位)
  55. uint8 smallLimit; // 小车限位(0: 未限位,1: 已限位)
  56. uint8 smallZeroLimit; // 小车零点限位(0: 未限位,1: 已限位)
  57. uint8 upLimit; // 升高限位(0: 未限位,1: 已限位)
  58. uint8 downLimit; // 降低限位(0: 未限位,1: 已限位)
  59. uint8 version; // 结构体版本号(可选)
  60. };
  61. // 定义枚举类型,用于表示落料选择
  62. enum DropChoice {
  63. BYPASS, // 旁路
  64. CRUSHER // 破碎机
  65. };
  66. // 采样点信息
  67. struct SamplePoints {
  68. uint8 totalPoints; // 采样点数量
  69. uint16 x1; // 采样点1 X 坐标
  70. uint16 y1; // 采样点1 Y 坐标
  71. uint16 z1; // 采样点1 Z 坐标
  72. DropChoice o1; // 采样点1 落料选择
  73. uint16 x2; // 采样点2 X 坐标
  74. uint16 y2; // 采样点2 Y 坐标
  75. uint16 z2; // 采样点2 Z 坐标
  76. DropChoice o2; // 采样点2 落料选择
  77. uint16 x3; // 采样点3 X 坐标
  78. uint16 y3; // 采样点3 Y 坐标
  79. uint16 z3; // 采样点3 Z 坐标
  80. DropChoice o3; // 采样点3 落料选择
  81. uint16 x4; // 采样点4 X 坐标
  82. uint16 y4; // 采样点4 Y 坐标
  83. uint16 z4; // 采样点4 Z 坐标
  84. DropChoice o4; // 采样点4 落料选择
  85. uint16 x5; // 采样点5 X 坐标
  86. uint16 y5; // 采样点5 Y 坐标
  87. uint16 z5; // 采样点5 Z 坐标
  88. DropChoice o5; // 采样点5 落料选择
  89. uint16 x6; // 采样点6 X 坐标
  90. uint16 y6; // 采样点6 Y 坐标
  91. uint16 z6; // 采样点6 Z 坐标
  92. DropChoice o6; // 采样点6 落料选择
  93. };
  94. };