tlms_esd 0.1.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/.git-blame-ignore-revs +5 -0
  2. package/.gitattributes +9 -0
  3. package/.gitignore +41 -0
  4. package/.local/TODO.md +90 -0
  5. package/.local/data_structure2025.xlsx +0 -0
  6. package/.local/data_structure2026.xlsx +0 -0
  7. package/.local/issues/a6d39veq-actuator-emulator.md +75 -0
  8. package/.local/issues/v9xg9fxn-config-compile-entry.md +86 -0
  9. package/.local/issues/yqq38rn8-adapt-layout-data-emulator.md +74 -0
  10. package/.npmignore +18 -0
  11. package/AGENTS.md +153 -0
  12. package/CHANGELOG.md +192 -0
  13. package/cli.js +185 -263
  14. package/doc/design.md +691 -0
  15. package/doc/design.zh-cn.md +690 -0
  16. package/doc/spec-modbus.md +263 -0
  17. package/doc/spec-modbus.zh-cn.md +261 -0
  18. package/doc/spec.md +310 -0
  19. package/doc/spec.zh-cn.md +308 -0
  20. package/eslint.config.js +58 -0
  21. package/issues/yqq38rn8-adapt-layout-data-emulator.md +71 -0
  22. package/layouts.yaml +208 -0
  23. package/logs/error_2024-10-11.log +2 -0
  24. package/logs/error_2026-10-09.log +36 -0
  25. package/logs/error_2026-10-10.log +1 -0
  26. package/logs/error_2026-10-11.log +0 -0
  27. package/logs/error_2026-10-12.log +0 -0
  28. package/logs/error_2026-10-13.log +0 -0
  29. package/logs/error_2026-10-15.log +0 -0
  30. package/logs/error_2026-10-16.log +0 -0
  31. package/logs/error_2026-10-17.log +0 -0
  32. package/logs/error_2026-10-23.log +0 -0
  33. package/logs/error_2026-10-25.log +3 -0
  34. package/logs/error_2026-10-27.log +0 -0
  35. package/logs/error_2026-10-28.log +0 -0
  36. package/logs/error_2026-10-30.log +0 -0
  37. package/logs/error_2026-11-05.log +0 -0
  38. package/logs/error_2026-11-07.log +0 -0
  39. package/logs/error_2026-11-14.log +1 -0
  40. package/logs/error_2026-11-15.log +0 -0
  41. package/logs/error_2026-11-17.log +0 -0
  42. package/logs/error_2026-11-18.log +0 -0
  43. package/logs/error_2026-11-22.log +0 -0
  44. package/logs/info_2024-10-11.log +2 -0
  45. package/logs/info_2026-10-09.log +36 -0
  46. package/logs/info_2026-10-10.log +1 -0
  47. package/logs/info_2026-10-11.log +0 -0
  48. package/logs/info_2026-10-12.log +0 -0
  49. package/logs/info_2026-10-13.log +0 -0
  50. package/logs/info_2026-10-15.log +0 -0
  51. package/logs/info_2026-10-16.log +0 -0
  52. package/logs/info_2026-10-17.log +0 -0
  53. package/logs/info_2026-10-23.log +0 -0
  54. package/logs/info_2026-10-25.log +3 -0
  55. package/logs/info_2026-10-27.log +0 -0
  56. package/logs/info_2026-10-28.log +0 -0
  57. package/logs/info_2026-10-30.log +0 -0
  58. package/logs/info_2026-11-05.log +0 -0
  59. package/logs/info_2026-11-07.log +0 -0
  60. package/logs/info_2026-11-14.log +1 -0
  61. package/logs/info_2026-11-15.log +0 -0
  62. package/logs/info_2026-11-17.log +0 -0
  63. package/logs/info_2026-11-18.log +0 -0
  64. package/logs/info_2026-11-22.log +0 -0
  65. package/main.js +27852 -8191
  66. package/nodemon.json +9 -11
  67. package/package.json +24 -25
  68. package/rolldown.config.js +35 -0
  69. package/dev.js +0 -5
  70. package/emulator.js +0 -7768
  71. package/rollup.config.js +0 -41
@@ -0,0 +1,263 @@
1
+ # TLMS_ESD Modbus Point Table
2
+
3
+ > English version of [spec-modbus.zh-cn.md](spec-modbus.zh-cn.md), the primary Chinese version. When the two differ, update both.
4
+ >
5
+ > This document is a sub-document of [spec.md](spec.md) and describes all the points the HMI/SCADA sees when it connects to the controller over Modbus TCP.
6
+ > The point table is generated from the layouts in `src/layouts.yaml`; where it differs from the code, the code prevails. The descriptions follow `data_structure2025.xlsx`, and the terms follow [spec.md](spec.md) §3.
7
+
8
+ ## 1. Access conventions
9
+
10
+ - The controller offers the Modbus TCP service on `controller.modbus_server.port` (listening on `0.0.0.0`).
11
+ - Each line, each section, each actuator and the action record take one unit id each: the unit id of a line, section or actuator is its ID (see [spec.md](spec.md) 4.1), and the action record is fixed at unit id 0.
12
+ - Addresses within a unit all start at 0:
13
+ - line, section and action record units: the data area of the object starts at register 0;
14
+ - actuator units: the node data area starts at register 0, the command block at register 200.
15
+ - The general access rules of registers and coils (holding registers and input registers have the same content, they are readable and writable, unmapped addresses read as 0 / false and writes to them are ignored, a nonexistent unit id is answered with exception code 0x0B) are in `doc/spec.md` of the modbus-emulator package; this controller processes a write as a change immediately. E.g. registers 73-199 of an actuator unit have no data area.
16
+ - Multi-register values (`Real`, `DInt`, `UDInt`) are big-endian, the high word at the lower address (ABCD order).
17
+ - Bit addresses are written `register.bit`, bit 0 being the lowest bit of the register. E.g. `1.0` is the lowest bit of register 1.
18
+ - Coils: each Bool can also be accessed as a coil, coil address = byte offset x 8 + bit. The tables give the coil addresses within the data area; the command block as a whole starts at register 200, so 3200 must be added to access its coils.
19
+ - "Initial" in the tables is the value at controller startup. The `ID` of lines, sections and actuators, and the limits, delays and `action_time` of sections are overwritten by the configuration at startup; the node data area is overwritten by the values reported by the actuator once connected.
20
+
21
+ ## 2. Line (LINE, 5 registers)
22
+
23
+ | Register | Coil | Name | Type | Initial | Description |
24
+ | --- | --- | --- | --- | --- | --- |
25
+ | 0 | | status | Word | 0 | Line status word |
26
+ | 0.0 | 8 | flow_override | Bool | false | Manual hang-on of the whole line; a master switch that does not overwrite the flow_override of the sections |
27
+ | 0.1 | 9 | pump_run | Bool | false | Whether this line has pumps running |
28
+ | 0.2 | 10 | alarm_F | Bool | false | This line has an alarm |
29
+ | 0.3 | 11 | auto_stop_cmd | Bool | false | Automatic shutdown command |
30
+ | 0.4 | 12 | man_stop_cmd | Bool | false | Manual shutdown command |
31
+ | 0.5 | 13 | pre_stop_notice | Bool | false | Stop pump notice |
32
+ | 1 | | ID | UInt | 0 | ID of this line |
33
+ | 2 | | action_section_ID | UInt | 0 | Section number of the section of the large flow difference action |
34
+ | 3 | | flow_diff | Real | 0 | Bypass flow difference (reserved, not implemented) |
35
+
36
+ ## 3. Section (SECTION, 20 registers)
37
+
38
+ | Register | Coil | Name | Type | Initial | Description |
39
+ | --- | --- | --- | --- | --- | --- |
40
+ | 0 | | ID | UInt | 0 | Section number |
41
+ | 1 | | upward_input | Word | 0 | Upward input area (reserved) |
42
+ | 2 | | status | Word | 0 | Section status word |
43
+ | 2.0 | 40 | comm_OK | Bool | false | Communication of all actuators of this section is OK |
44
+ | 2.1 | 41 | work_OK | Bool | false | All actuators of this section work properly |
45
+ | 2.2 | 42 | protect_F | Bool | false | This section is in the protection state |
46
+ | 2.3 | 43 | hangon_AF | Bool | false | This section is hung on automatically |
47
+ | 2.4 | 44 | flow_override | Bool | false | This section is hung on manually |
48
+ | 2.5 | 45 | action_F | Bool | false | Whether this section stopped pumps on leakage |
49
+ | 2.6 | 46 | flow_warning_F | Bool | false | Flow warning of this section |
50
+ | 2.7 | 47 | flow_alarm_F | Bool | false | Flow alarm of this section (pre-action) |
51
+ | 2.8 | 32 | press_warning_F | Bool | false | Pressure warning of this section |
52
+ | 2.9 | 33 | press_alarm_F | Bool | false | Pressure alarm of this section (pre-action) |
53
+ | 2.10 | 34 | auto_stop_cmd | Bool | false | Automatic pump stop of this section |
54
+ | 2.11 | 35 | man_stop_cmd | Bool | false | Manual pump stop of this section |
55
+ | 2.12 | 36 | line_action_source | Bool | false | Whether this section is the source of the whole-line shutdown |
56
+ | 2.13 | 37 | pump_run | Bool | false | Whether this section has pumps running |
57
+ | 2.14 | 38 | pump_change_F | Bool | false | Whether a pump operation is in progress in the current period |
58
+ | 2.15 | 39 | pre_stop_notice | Bool | false | This section is about to stop pumps |
59
+ | 3 | | flow_begin | Real | 0 | Total flow of the begin actuators |
60
+ | 5 | | flow_end | Real | 0 | Total flow of the end actuators |
61
+ | 7 | | flow_diff | Real | 0 | Flow difference |
62
+ | 9 | | flow_diff_WH | Real | 20 | Flow difference warning upper limit |
63
+ | 11 | | flow_diff_WH_delay | DInt | 3000 | Flow warning tolerance time (ms) |
64
+ | 13 | | flow_diff_AH | Real | 50 | Flow difference alarm upper limit (action) |
65
+ | 15 | | flow_diff_AH_delay | DInt | 3000 | Flow alarm tolerance time (ms) |
66
+ | 17 | | action_time | DInt | 60000 | Interlock action time (ms) |
67
+ | 19 | | countdown | Int | 0 | Interlock action countdown (s) |
68
+
69
+ ## 4. Node data area (NODE, 73 registers, from register 0 of the actuator unit)
70
+
71
+ The node data area comes from the actuator; the controller reads it periodically and publishes it. `comm_OK` and `work_OK` are maintained by the controller according to the communication.
72
+
73
+ | Register | Coil | Name | Type | Initial | Description |
74
+ | --- | --- | --- | --- | --- | --- |
75
+ | 0 | | ID | UInt | 0 | Actuator ID |
76
+ | 1 | | status | Word | 2051 | Actuator status word |
77
+ | 1.0 | 24 | comm_OK | Bool | true | Maintains the communication state of the actuator |
78
+ | 1.1 | 25 | work_OK | Bool | true | Maintains the working state of the actuator |
79
+ | 1.2 | 26 | pump_run | Bool | false | This actuator has a pump running |
80
+ | 1.3 | 27 | pump_change_F | Bool | false | Whether this actuator is in the pump operation delay |
81
+ | 1.4 | 28 | pump_run_1 | Bool | false | Running state of pump 1 |
82
+ | 1.5 | 29 | pump_run_2 | Bool | false | Running state of pump 2 |
83
+ | 1.6 | 30 | pump_run_3 | Bool | false | Running state of pump 3 |
84
+ | 1.7 | 31 | pump_run_4 | Bool | false | Running state of pump 4 |
85
+ | 1.8 | 16 | pressure_enabled | Bool | false | Pressure alarm enabled |
86
+ | 1.9 | 17 | temperature_enabled | Bool | false | Temperature alarm enabled |
87
+ | 1.10 | 18 | pressure_SD_F | Bool | false | Pressure interlock shutdown allowed flag |
88
+ | 1.11 | 19 | delay_protect | Bool | true | Delay protection (not used for now) |
89
+ | 1.12 | 20 | pressure_AH_F | Bool | false | Pressure high-high flag |
90
+ | 1.13 | 21 | pressure_WH_F | Bool | false | Pressure high flag |
91
+ | 1.14 | 22 | pressure_WL_F | Bool | false | Pressure low flag |
92
+ | 1.15 | 23 | pressure_AL_F | Bool | false | Pressure low-low flag |
93
+ | 2 | | temperature | Real | 0 | Temperature value |
94
+ | 4 | | pressure | Real | 0 | Pressure value |
95
+ | 6 | | flowmeter | Real | 0 | Flow value |
96
+ | 8 | | response_code | Word | 0 | Execution acknowledgement (bits as in the command word, a set bit means the command has been executed) (G5 needs no response code, should become UDInt) |
97
+ | 8.0 | 136 | stop_pumps | Bool | false | Stop pump command (acknowledgement bit) |
98
+ | 8.1 | 137 | cancel_stop | Bool | false | Cancel stop (acknowledgement bit) |
99
+ | 8.2 | 138 | horn | Bool | false | Output alarm (acknowledgement bit) |
100
+ | 8.3 | 139 | reset_horn | Bool | false | Stop alarm (acknowledgement bit) |
101
+ | 8.4 | 140 | enable_pressure_SD | Bool | false | Set pressure interlock pump stop (acknowledgement bit) |
102
+ | 8.5 | 141 | disable_pressure_SD | Bool | false | Cancel pressure interlock pump stop (acknowledgement bit) |
103
+ | 8.6 | 142 | read_paras | Bool | false | Read all parameters (acknowledgement bit) (no longer actually sent) |
104
+ | 8.7 | 143 | write_paras | Bool | false | Write parameters command (acknowledgement bit) |
105
+ | 8.8 | 128 | enable_pressure_alarm | Bool | false | Enable pressure alarm (acknowledgement bit) |
106
+ | 8.9 | 129 | disable_pressure_alarm | Bool | false | Disable pressure alarm (acknowledgement bit) |
107
+ | 8.10 | 130 | enable | Bool | false | Allow the actuator to work (acknowledgement bit) |
108
+ | 8.11 | 131 | disable | Bool | false | Forbid the actuator to work (acknowledgement bit) |
109
+ | 8.12 | 132 | reset_CPU | Bool | false | Reset CPU (acknowledgement bit) |
110
+ | 8.13 | 133 | reset_conn | Bool | false | Reset connection (acknowledgement bit) |
111
+ | 8.14 | 134 | reserve | Bool | false | Reserved (acknowledgement bit) |
112
+ | 8.15 | 135 | executing | Bool | false | Command executing (acknowledgement bit) |
113
+ | 9 | | temperature_zero_raw | Int | 0 | Temperature raw zero value |
114
+ | 10 | | temperature_span_raw | Int | 27648 | Temperature raw span value |
115
+ | 11 | | temperature_underflow | Int | -500 | Temperature underflow setting |
116
+ | 12 | | temperature_overflow | Int | 28000 | Temperature overflow setting |
117
+ | 13 | | temperature_zero | Real | 0 | Temperature zero value (as actually set) |
118
+ | 15 | | temperature_span | Real | 100 | Temperature span value (as actually set) |
119
+ | 17 | | temperature_AH | Real | 0 | Temperature high-high value |
120
+ | 19 | | temperature_WH | Real | 0 | Temperature high value |
121
+ | 21 | | temperature_WL | Real | 0 | Temperature low value |
122
+ | 23 | | temperature_AL | Real | 0 | Temperature low-low value |
123
+ | 25 | | temperature_DZ | Real | 0.5 | Temperature comparison dead zone |
124
+ | 27 | | temperature_FT | UDInt | 0 | Temperature comparison tolerance time |
125
+ | 29 | | pressure_zero_raw | Int | 0 | Pressure raw zero value |
126
+ | 30 | | pressure_span_raw | Int | 27648 | Pressure raw span value |
127
+ | 31 | | pressure_underflow | Int | -500 | Pressure underflow setting |
128
+ | 32 | | pressure_overflow | Int | 28000 | Pressure overflow setting |
129
+ | 33 | | pressure_zero | Real | 0 | Pressure zero value (as actually set) |
130
+ | 35 | | pressure_span | Real | 4 | Pressure span value (as actually set) |
131
+ | 37 | | pressure_AH | Real | 0 | Pressure high-high value |
132
+ | 39 | | pressure_WH | Real | 0 | Pressure high value |
133
+ | 41 | | pressure_WL | Real | 0 | Pressure low value |
134
+ | 43 | | pressure_AL | Real | 0 | Pressure low-low value |
135
+ | 45 | | pressure_DZ | Real | 0.05 | Pressure comparison dead zone |
136
+ | 47 | | pressure_FT | UDInt | 0 | Pressure comparison tolerance time |
137
+ | 49 | | reserve1 | Real | 0 | Reserved (formerly flow data) |
138
+ | 51 | | reserve2 | Real | 0 | Reserved |
139
+ | 53 | | reserve3 | Real | 0 | Reserved |
140
+ | 55 | | invalid_value_of_AI | Real | -100000 | Preset value when an analog input is invalid (not implemented yet) |
141
+ | 57 | | delay_protect_time | UDInt | 5000 | Delay before hang-on after a communication failure |
142
+ | 59 | | flow_smooth_factor | Real | 0.9 | Flow smoothing weight |
143
+ | 61 | | flow1_k_factor | DInt | 10000 | Flow 1 K factor (pulses/m³) |
144
+ | 63 | | flow2_k_factor | DInt | 10000 | Flow 2 K factor (pulses/m³) |
145
+ | 65 | | flow3_k_factor | DInt | 10000 | Flow 3 K factor (pulses/m³) |
146
+ | 67 | | flow4_k_factor | DInt | 10000 | Flow 4 K factor (pulses/m³) |
147
+ | 69 | | flow5_k_factor | DInt | 10000 | Flow 5 K factor (pulses/m³) |
148
+ | 71 | | pump_change_delay | UDInt | 180000 | Pump operation delay |
149
+
150
+ ## 5. Command block (COMMAND, 74 registers, from register 200 of the actuator unit)
151
+
152
+ Registers 0-7 are the local area of the controller and are not exchanged with the actuator; from register 8 (`ID`, the command word, the parameter block) the block is exchanged with the command area of the actuator.
153
+
154
+ - Commands: the HMI sets the corresponding bit of the command word, the controller sends it to the actuator and clears it automatically on receiving the acknowledgement.
155
+ - Parameters: the parameter block initially equals the parameters reported by the actuator; after the HMI changes parameters it sets `write_paras`, and the controller writes the parameters back to the actuator.
156
+
157
+ | Register | Coil | Name | Type | Initial | Description |
158
+ | --- | --- | --- | --- | --- | --- |
159
+ | 0 | | response_code | Word | 0 | Acknowledgement code after the actuator executes |
160
+ | 1 | | overtime | Int | 5000 | Acknowledgement timeout setting (ms) |
161
+ | 3 | | extra_commands | Word | 0 | Extended command word |
162
+ | 3.0 | 56 | has_commands | Bool | false | There are commands to send |
163
+ | 3.1 | 57 | reset_paras | Bool | false | Reset the command parameter values to the actuator parameter values (to be removed) |
164
+ | 8 | | ID | UInt | 0 | Actuator ID |
165
+ | 9 | | commands | Word | 0 | Command word |
166
+ | 9.0 | 152 | stop_pumps | Bool | false | Stop pump command |
167
+ | 9.1 | 153 | cancel_stop | Bool | false | Cancel stop |
168
+ | 9.2 | 154 | horn | Bool | false | Output alarm |
169
+ | 9.3 | 155 | reset_horn | Bool | false | Stop alarm |
170
+ | 9.4 | 156 | enable_pressure_SD | Bool | false | Set pressure interlock pump stop |
171
+ | 9.5 | 157 | disable_pressure_SD | Bool | false | Cancel pressure interlock pump stop |
172
+ | 9.6 | 158 | read_paras | Bool | false | Read all parameters (no longer actually sent) |
173
+ | 9.7 | 159 | write_paras | Bool | false | Write parameters command |
174
+ | 9.8 | 144 | enable_pressure_alarm | Bool | false | Enable pressure alarm |
175
+ | 9.9 | 145 | disable_pressure_alarm | Bool | false | Disable pressure alarm |
176
+ | 9.10 | 146 | enable | Bool | false | Allow the actuator to work |
177
+ | 9.11 | 147 | disable | Bool | false | Forbid the actuator to work |
178
+ | 9.12 | 148 | reset_CPU | Bool | false | Reset CPU |
179
+ | 9.13 | 149 | reset_conn | Bool | false | Reset connection |
180
+ | 9.14 | 150 | reserve | Bool | false | Reserved |
181
+ | 9.15 | 151 | executing | Bool | false | Command executing |
182
+ | 10 | | temperature_zero_raw | Int | 0 | Temperature raw zero value |
183
+ | 11 | | temperature_span_raw | Int | 27648 | Temperature raw span value |
184
+ | 12 | | temperature_underflow | Int | -500 | Temperature underflow setting |
185
+ | 13 | | temperature_overflow | Int | 28000 | Temperature overflow setting |
186
+ | 14 | | temperature_zero | Real | 0 | Zero value |
187
+ | 16 | | temperature_span | Real | 100 | Span value |
188
+ | 18 | | temperature_AH | Real | 0 | High-high value |
189
+ | 20 | | temperature_WH | Real | 0 | High value |
190
+ | 22 | | temperature_WL | Real | 0 | Low value |
191
+ | 24 | | temperature_AL | Real | 0 | Low-low value |
192
+ | 26 | | temperature_DZ | Real | 0.5 | Temperature comparison dead zone |
193
+ | 28 | | temperature_FT | UDInt | 0 | Temperature comparison tolerance time |
194
+ | 30 | | pressure_zero_raw | Int | 0 | Pressure raw zero value |
195
+ | 31 | | pressure_span_raw | Int | 27648 | Pressure raw span value |
196
+ | 32 | | pressure_underflow | Int | -500 | Pressure underflow setting |
197
+ | 33 | | pressure_overflow | Int | 28000 | Pressure overflow setting |
198
+ | 34 | | pressure_zero | Real | 0 | Zero value |
199
+ | 36 | | pressure_span | Real | 4 | Span value |
200
+ | 38 | | pressure_AH | Real | 0 | High-high value |
201
+ | 40 | | pressure_WH | Real | 0 | High value |
202
+ | 42 | | pressure_WL | Real | 0 | Low value |
203
+ | 44 | | pressure_AL | Real | 0 | Low-low value |
204
+ | 46 | | pressure_DZ | Real | 0.05 | Pressure comparison dead zone |
205
+ | 48 | | pressure_FT | UDInt | 0 | Pressure comparison tolerance time |
206
+ | 50 | | reserve1 | Real | 0 | Reserved |
207
+ | 52 | | reserve2 | Real | 0 | Reserved |
208
+ | 54 | | reserve3 | Real | 0 | Reserved |
209
+ | 56 | | invalid_value_of_AI | Real | -100000 | Preset value when an analog input is invalid (not implemented yet) |
210
+ | 58 | | delay_protect_time | UDInt | 5000 | Delay before hang-on after a communication failure |
211
+ | 60 | | flow_smooth_factor | Real | 0.9 | Flow smoothing weight |
212
+ | 62 | | flow1_k_factor | DInt | 10000 | Flow 1 K factor (pulses/m³) |
213
+ | 64 | | flow2_k_factor | DInt | 10000 | Flow 2 K factor (pulses/m³) |
214
+ | 66 | | flow3_k_factor | DInt | 10000 | Flow 3 K factor (pulses/m³) |
215
+ | 68 | | flow4_k_factor | DInt | 10000 | Flow 4 K factor (pulses/m³) |
216
+ | 70 | | flow5_k_factor | DInt | 10000 | Flow 5 K factor (pulses/m³) |
217
+ | 72 | | pump_change_delay | UDInt | 180000 | Pump operation delay |
218
+
219
+ ## 6. Action record (RECORD, 27 registers)
220
+
221
+ The data area shows one record. Write `index` to select the record to view: 0 is the latest, 1 the one before, and so on; `-1` means no record.
222
+
223
+ | Register | Coil | Name | Type | Initial | Description |
224
+ | --- | --- | --- | --- | --- | --- |
225
+ | 0 | | year | Uint | 0 | Year |
226
+ | 1 | | month | Uint | 0 | Month |
227
+ | 2 | | day | Uint | 0 | Day |
228
+ | 3 | | hour | Uint | 0 | Hour |
229
+ | 4 | | minute | Uint | 0 | Minute |
230
+ | 5 | | second | Uint | 0 | Second |
231
+ | 6 | | section_ID | UInt | 0 | ID of the section that caused the action; 0 means no record yet |
232
+ | 7 | | flow_begin | Real | 0 | Total flow of the begin actuators of the action section |
233
+ | 9 | | flow_end | Real | 0 | Total flow of the end actuators of the action section |
234
+ | 11 | | flow_diff | Real | 0 | Flow difference of the action section |
235
+ | 13 | | node1_press | Real | 0 | Pressure of actuator 1 of the action section |
236
+ | 15 | | node2_press | Real | 0 | Pressure of actuator 2 of the action section |
237
+ | 17 | | node3_press | Real | 0 | Pressure of actuator 3 of the action section |
238
+ | 19 | | node4_press | Real | 0 | Pressure of actuator 4 of the action section |
239
+ | 21 | | node1_ID | UInt | 0 | ID of actuator 1 of the action section |
240
+ | 22 | | node2_ID | UInt | 0 | ID of actuator 2 of the action section |
241
+ | 23 | | node3_ID | UInt | 0 | ID of actuator 3 of the action section |
242
+ | 24 | | node4_ID | UInt | 0 | ID of actuator 4 of the action section |
243
+ | 25 | | status | Word | 0 | Action status word |
244
+ | 25.0 | 408 | press_action | Bool | false | Pressure over-limit action |
245
+ | 25.1 | 409 | flow_action | Bool | false | Flow difference over-limit action |
246
+ | 25.2 | 410 | node1_pump_run | Bool | false | Begin actuator 1 of the action section has a pump running |
247
+ | 25.3 | 411 | node2_pump_run | Bool | false | Begin actuator 2 of the action section has a pump running |
248
+ | 25.4 | 412 | node3_pump_run | Bool | false | Begin actuator 3 of the action section has a pump running |
249
+ | 25.5 | 413 | node4_pump_run | Bool | false | Begin actuator 4 of the action section has a pump running |
250
+ | 26 | | index | Int | -1 | Which record from the last, 0 is the latest |
251
+
252
+ ## 7. Differences from the 2025 point table (data_structure2025.xlsx)
253
+
254
+ The code prevails for the following differences, and this document follows the code:
255
+
256
+ | Location | 2025 point table | Code |
257
+ | --- | --- | --- |
258
+ | Length of the section data area | 22 registers, register 20 is an internal bit word (with `action_F_edge`, `stop_edge`) | 20 registers, without an internal bit word |
259
+ | Parameter area registers 55-58 of the node data area | `reserve4` (Real), `delay_protect_time` (Real) | `invalid_value_of_AI` (Real), `delay_protect_time` (UDInt) |
260
+ | Node data area raw span / overflow initial values | 20000 / 20500 | 27648 / 28000 |
261
+ | Type of node data area `response_code` | UInt | Word (organized by command bits) |
262
+ | Command block parameter `delay_hangup` | Named `delay_hangup` | Named `delay_protect_time` |
263
+ | Action record status word | `node1..3_pump_run` | Also `node4_pump_run` |
@@ -0,0 +1,261 @@
1
+ # TLMS_ESD Modbus 点表
2
+
3
+ > 本文是 [spec.zh-cn.md](spec.zh-cn.md) 的子文档,描述 HMI/SCADA 通过 Modbus TCP 连接控制器时能看到的全部点量。
4
+ > 点表由 `src/layouts.yaml` 的布局生成,与代码不一致时以代码为准;说明文字参考 `data_structure2025.xlsx`,术语按 [spec.zh-cn.md](spec.zh-cn.md) §3统一。
5
+
6
+ ## 1. 访问约定
7
+
8
+ - 控制器在 `controller.modbus_server.port` 上提供 Modbus TCP 服务(监听 `0.0.0.0`)。
9
+ - 每条线、每个段、每个执行器以及动作记录各占一个单元号(unit id):线、段、执行器的单元号就是各自的 ID(见 [spec.zh-cn.md](spec.zh-cn.md) 4.1),动作记录固定为单元号 0。
10
+ - 同一单元内的地址都从 0 开始:
11
+ - 线、段、动作记录单元:寄存器 0 起为该对象的数据区;
12
+ - 执行器单元:寄存器 0 起为节点数据区,寄存器 200 起为命令块。
13
+ - 寄存器和线圈的通用访问规则(保持寄存器与输入寄存器内容相同、可读写、未映射地址读为 0 / false 并忽略写入、不存在的单元号应答异常码 0x0B)见 modbus-emulator 包的 `doc/spec.md`;本控制器的写入后立即按变化处理。例如执行器单元的寄存器 73–199 没有数据区。
14
+ - 多寄存器数值(`Real`、`DInt`、`UDInt`)按大端存放,高位字在低地址(ABCD 顺序)。
15
+ - 位地址写作 `寄存器.位`,位号 0 为寄存器最低位。例如 `1.0` 表示寄存器 1 的最低位。
16
+ - 线圈:每个 Bool 也可按线圈访问,线圈地址 = 字节偏移 × 8 + 位。表中给出的是数据区内的线圈地址;命令块整体位于寄存器 200 起,访问其线圈时需加 3200。
17
+ - 表中“初值”是控制器启动时的值。线、段、执行器的 `ID`,以及段的限值、延时和 `action_time` 在启动时由配置覆盖;节点数据区在连上执行器后由执行器上报值覆盖。
18
+
19
+ ## 2. 线(LINE,5 个寄存器)
20
+
21
+ | 寄存器 | 线圈 | 名称 | 类型 | 初值 | 说明 |
22
+ | --- | --- | --- | --- | --- | --- |
23
+ | 0 | | status | Word | 0 | 线状态字 |
24
+ | 0.0 | 8 | flow_override | Bool | false | 全线人工挂起;总闸,不改写各段的 flow_override |
25
+ | 0.1 | 9 | pump_run | Bool | false | 本线是否起泵输油 |
26
+ | 0.2 | 10 | alarm_F | Bool | false | 本线有报警 |
27
+ | 0.3 | 11 | auto_stop_cmd | Bool | false | 自动停输命令 |
28
+ | 0.4 | 12 | man_stop_cmd | Bool | false | 人工停输命令 |
29
+ | 0.5 | 13 | pre_stop_notice | Bool | false | 停泵预告 |
30
+ | 1 | | ID | UInt | 0 | 本线ID号 |
31
+ | 2 | | action_section_ID | UInt | 0 | 大流差动作管段的段号 |
32
+ | 3 | | flow_diff | Real | 0 | 越站流差(保留,不实现) |
33
+
34
+ ## 3. 段(SECTION,20 个寄存器)
35
+
36
+ | 寄存器 | 线圈 | 名称 | 类型 | 初值 | 说明 |
37
+ | --- | --- | --- | --- | --- | --- |
38
+ | 0 | | ID | UInt | 0 | 段号 |
39
+ | 1 | | upward_input | Word | 0 | 对上输入区(保留) |
40
+ | 2 | | status | Word | 0 | 段状态字 |
41
+ | 2.0 | 40 | comm_OK | Bool | false | 本段所有执行器通讯正常 |
42
+ | 2.1 | 41 | work_OK | Bool | false | 本段所有执行器工作正常 |
43
+ | 2.2 | 42 | protect_F | Bool | false | 本段处于保护状态下 |
44
+ | 2.3 | 43 | hangon_AF | Bool | false | 本段自动挂起 |
45
+ | 2.4 | 44 | flow_override | Bool | false | 本段人工挂起 |
46
+ | 2.5 | 45 | action_F | Bool | false | 本段是否泄漏停泵 |
47
+ | 2.6 | 46 | flow_warning_F | Bool | false | 本段流量警告 |
48
+ | 2.7 | 47 | flow_alarm_F | Bool | false | 本段流量报警(预动作) |
49
+ | 2.8 | 32 | press_warning_F | Bool | false | 本段压力警告 |
50
+ | 2.9 | 33 | press_alarm_F | Bool | false | 本段压力报警(预动作) |
51
+ | 2.10 | 34 | auto_stop_cmd | Bool | false | 本段自动停泵 |
52
+ | 2.11 | 35 | man_stop_cmd | Bool | false | 本段人工停泵 |
53
+ | 2.12 | 36 | line_action_source | Bool | false | 本段是否为全线停输来源 |
54
+ | 2.13 | 37 | pump_run | Bool | false | 本段是否起泵输油 |
55
+ | 2.14 | 38 | pump_change_F | Bool | false | 当前时间段是否有泵操作 |
56
+ | 2.15 | 39 | pre_stop_notice | Bool | false | 本段准备停泵 |
57
+ | 3 | | flow_begin | Real | 0 | 首端执行器流量合计 |
58
+ | 5 | | flow_end | Real | 0 | 末端执行器流量合计 |
59
+ | 7 | | flow_diff | Real | 0 | 流量差 |
60
+ | 9 | | flow_diff_WH | Real | 20 | 流量警告差上限值 |
61
+ | 11 | | flow_diff_WH_delay | DInt | 3000 | 流量警告容错时间(单位毫秒) |
62
+ | 13 | | flow_diff_AH | Real | 50 | 流量差报警上限值(动作) |
63
+ | 15 | | flow_diff_AH_delay | DInt | 3000 | 流量报警容错时间(单位毫秒) |
64
+ | 17 | | action_time | DInt | 60000 | 联锁动作时间(单位毫秒) |
65
+ | 19 | | countdown | Int | 0 | 联锁动作倒计时(单位秒) |
66
+
67
+ ## 4. 节点数据区(NODE,73 个寄存器,执行器单元寄存器 0 起)
68
+
69
+ 节点数据区来自执行器,控制器周期读取后发布;`comm_OK`、`work_OK` 由控制器根据通信情况维护。
70
+
71
+ | 寄存器 | 线圈 | 名称 | 类型 | 初值 | 说明 |
72
+ | --- | --- | --- | --- | --- | --- |
73
+ | 0 | | ID | UInt | 0 | 执行器ID |
74
+ | 1 | | status | Word | 2051 | 执行器状态字 |
75
+ | 1.0 | 24 | comm_OK | Bool | true | 用于维护执行器通讯状态 |
76
+ | 1.1 | 25 | work_OK | Bool | true | 用于维护执行器工作状态 |
77
+ | 1.2 | 26 | pump_run | Bool | false | 本执行器有泵运行 |
78
+ | 1.3 | 27 | pump_change_F | Bool | false | 本执行器是否处于泵操作延时 |
79
+ | 1.4 | 28 | pump_run_1 | Bool | false | 1#泵运行状态 |
80
+ | 1.5 | 29 | pump_run_2 | Bool | false | 2#泵运行状态 |
81
+ | 1.6 | 30 | pump_run_3 | Bool | false | 3#泵运行状态 |
82
+ | 1.7 | 31 | pump_run_4 | Bool | false | 4#泵运行状态 |
83
+ | 1.8 | 16 | pressure_enabled | Bool | false | 压力允许报警 |
84
+ | 1.9 | 17 | temperature_enabled | Bool | false | 温度允许报警 |
85
+ | 1.10 | 18 | pressure_SD_F | Bool | false | 压力允许联锁停输标志 |
86
+ | 1.11 | 19 | delay_protect | Bool | true | 延迟保护(暂不使用) |
87
+ | 1.12 | 20 | pressure_AH_F | Bool | false | 压力上上限标志 |
88
+ | 1.13 | 21 | pressure_WH_F | Bool | false | 压力上限标志 |
89
+ | 1.14 | 22 | pressure_WL_F | Bool | false | 压力下限标志 |
90
+ | 1.15 | 23 | pressure_AL_F | Bool | false | 压力下下限标志 |
91
+ | 2 | | temperature | Real | 0 | 温度值 |
92
+ | 4 | | pressure | Real | 0 | 压力值 |
93
+ | 6 | | flowmeter | Real | 0 | 流量值 |
94
+ | 8 | | response_code | Word | 0 | 执行应答(各位含义同命令字,置位表示该命令已执行)(G5无需响应码,应当改为UDInt) |
95
+ | 8.0 | 136 | stop_pumps | Bool | false | 停泵命令(应答位) |
96
+ | 8.1 | 137 | cancel_stop | Bool | false | 取消停泵(应答位) |
97
+ | 8.2 | 138 | horn | Bool | false | 输出报警(应答位) |
98
+ | 8.3 | 139 | reset_horn | Bool | false | 停止报警(应答位) |
99
+ | 8.4 | 140 | enable_pressure_SD | Bool | false | 设置压力联锁停泵(应答位) |
100
+ | 8.5 | 141 | disable_pressure_SD | Bool | false | 取消压力联锁停泵(应答位) |
101
+ | 8.6 | 142 | read_paras | Bool | false | 读取所有参数(应答位)(已不需要实际发送) |
102
+ | 8.7 | 143 | write_paras | Bool | false | 写参数命令(应答位) |
103
+ | 8.8 | 128 | enable_pressure_alarm | Bool | false | 允许压力报警(应答位) |
104
+ | 8.9 | 129 | disable_pressure_alarm | Bool | false | 禁止压力报警(应答位) |
105
+ | 8.10 | 130 | enable | Bool | false | 允许该执行器工作(应答位) |
106
+ | 8.11 | 131 | disable | Bool | false | 禁止该执行器工作(应答位) |
107
+ | 8.12 | 132 | reset_CPU | Bool | false | 重置CPU(应答位) |
108
+ | 8.13 | 133 | reset_conn | Bool | false | 重置连接(应答位) |
109
+ | 8.14 | 134 | reserve | Bool | false | 保留(应答位) |
110
+ | 8.15 | 135 | executing | Bool | false | 命令执行中(应答位) |
111
+ | 9 | | temperature_zero_raw | Int | 0 | 温度原始零点值 |
112
+ | 10 | | temperature_span_raw | Int | 27648 | 温度原始量程值 |
113
+ | 11 | | temperature_underflow | Int | -500 | 温度下溢出设置值 |
114
+ | 12 | | temperature_overflow | Int | 28000 | 温度上溢出设置值 |
115
+ | 13 | | temperature_zero | Real | 0 | 温度零点值(以实际为准) |
116
+ | 15 | | temperature_span | Real | 100 | 温度量程值(以实际为准) |
117
+ | 17 | | temperature_AH | Real | 0 | 温度高高值 |
118
+ | 19 | | temperature_WH | Real | 0 | 温度高值 |
119
+ | 21 | | temperature_WL | Real | 0 | 温度低值 |
120
+ | 23 | | temperature_AL | Real | 0 | 温度低低值 |
121
+ | 25 | | temperature_DZ | Real | 0.5 | 温度比较死区 |
122
+ | 27 | | temperature_FT | UDInt | 0 | 温度比较容错时间 |
123
+ | 29 | | pressure_zero_raw | Int | 0 | 压力原始零点值 |
124
+ | 30 | | pressure_span_raw | Int | 27648 | 压力原始量程值 |
125
+ | 31 | | pressure_underflow | Int | -500 | 压力下溢出设置值 |
126
+ | 32 | | pressure_overflow | Int | 28000 | 压力上溢出设置值 |
127
+ | 33 | | pressure_zero | Real | 0 | 压力零点值(以实际为准) |
128
+ | 35 | | pressure_span | Real | 4 | 压力量程值(以实际为准) |
129
+ | 37 | | pressure_AH | Real | 0 | 压力高高值 |
130
+ | 39 | | pressure_WH | Real | 0 | 压力高值 |
131
+ | 41 | | pressure_WL | Real | 0 | 压力低值 |
132
+ | 43 | | pressure_AL | Real | 0 | 压力低低值 |
133
+ | 45 | | pressure_DZ | Real | 0.05 | 压力比较死区 |
134
+ | 47 | | pressure_FT | UDInt | 0 | 压力比较容错时间 |
135
+ | 49 | | reserve1 | Real | 0 | 预留(原流量数据) |
136
+ | 51 | | reserve2 | Real | 0 | 预留 |
137
+ | 53 | | reserve3 | Real | 0 | 预留 |
138
+ | 55 | | invalid_value_of_AI | Real | -100000 | 模拟量无效时的预置值(暂时没实现) |
139
+ | 57 | | delay_protect_time | UDInt | 5000 | 通讯中断延后挂起时间 |
140
+ | 59 | | flow_smooth_factor | Real | 0.9 | 流量平滑权值 |
141
+ | 61 | | flow1_k_factor | DInt | 10000 | 流量1 K 系数(脉冲/m³) |
142
+ | 63 | | flow2_k_factor | DInt | 10000 | 流量2 K 系数(脉冲/m³) |
143
+ | 65 | | flow3_k_factor | DInt | 10000 | 流量3 K 系数(脉冲/m³) |
144
+ | 67 | | flow4_k_factor | DInt | 10000 | 流量4 K 系数(脉冲/m³) |
145
+ | 69 | | flow5_k_factor | DInt | 10000 | 流量5 K 系数(脉冲/m³) |
146
+ | 71 | | pump_change_delay | UDInt | 180000 | 泵操作延时 |
147
+
148
+ ## 5. 命令块(COMMAND,74 个寄存器,执行器单元寄存器 200 起)
149
+
150
+ 寄存器 0–7 为控制器本地区,不与执行器交换;寄存器 8 起(`ID`、命令字、参数块)与执行器命令区交换。
151
+
152
+ - 命令:HMI 置位命令字中的相应位,控制器下发给执行器,收到应答后自动清除。
153
+ - 参数:参数块初始等于执行器上报的参数;HMI 修改参数后置位 `write_paras`,控制器把参数写回执行器。
154
+
155
+ | 寄存器 | 线圈 | 名称 | 类型 | 初值 | 说明 |
156
+ | --- | --- | --- | --- | --- | --- |
157
+ | 0 | | response_code | Word | 0 | 执行器执行后的应答代码 |
158
+ | 1 | | overtime | Int | 5000 | 应答超时设定 (毫秒) |
159
+ | 3 | | extra_commands | Word | 0 | 扩展命令字 |
160
+ | 3.0 | 56 | has_commands | Bool | false | 当前有命令需要发送 |
161
+ | 3.1 | 57 | reset_paras | Bool | false | 将命令参数值重置为执行器参数值(将取消) |
162
+ | 8 | | ID | UInt | 0 | 执行器ID |
163
+ | 9 | | commands | Word | 0 | 命令字 |
164
+ | 9.0 | 152 | stop_pumps | Bool | false | 停泵命令 |
165
+ | 9.1 | 153 | cancel_stop | Bool | false | 取消停泵 |
166
+ | 9.2 | 154 | horn | Bool | false | 输出报警 |
167
+ | 9.3 | 155 | reset_horn | Bool | false | 停止报警 |
168
+ | 9.4 | 156 | enable_pressure_SD | Bool | false | 设置压力联锁停泵 |
169
+ | 9.5 | 157 | disable_pressure_SD | Bool | false | 取消压力联锁停泵 |
170
+ | 9.6 | 158 | read_paras | Bool | false | 读取所有参数(已不需要实际发送) |
171
+ | 9.7 | 159 | write_paras | Bool | false | 写参数命令 |
172
+ | 9.8 | 144 | enable_pressure_alarm | Bool | false | 允许压力报警 |
173
+ | 9.9 | 145 | disable_pressure_alarm | Bool | false | 禁止压力报警 |
174
+ | 9.10 | 146 | enable | Bool | false | 允许该执行器工作 |
175
+ | 9.11 | 147 | disable | Bool | false | 禁止该执行器工作 |
176
+ | 9.12 | 148 | reset_CPU | Bool | false | 重置CPU |
177
+ | 9.13 | 149 | reset_conn | Bool | false | 重置连接 |
178
+ | 9.14 | 150 | reserve | Bool | false | 保留 |
179
+ | 9.15 | 151 | executing | Bool | false | 命令执行中 |
180
+ | 10 | | temperature_zero_raw | Int | 0 | 温度原始零点值 |
181
+ | 11 | | temperature_span_raw | Int | 27648 | 温度原始量程值 |
182
+ | 12 | | temperature_underflow | Int | -500 | 温度下溢出设置值 |
183
+ | 13 | | temperature_overflow | Int | 28000 | 温度上溢出设置值 |
184
+ | 14 | | temperature_zero | Real | 0 | 零点值 |
185
+ | 16 | | temperature_span | Real | 100 | 量程值 |
186
+ | 18 | | temperature_AH | Real | 0 | 高高值 |
187
+ | 20 | | temperature_WH | Real | 0 | 高值 |
188
+ | 22 | | temperature_WL | Real | 0 | 低值 |
189
+ | 24 | | temperature_AL | Real | 0 | 低低值 |
190
+ | 26 | | temperature_DZ | Real | 0.5 | 温度比较死区 |
191
+ | 28 | | temperature_FT | UDInt | 0 | 温度比较容错时间 |
192
+ | 30 | | pressure_zero_raw | Int | 0 | 压力原始零点值 |
193
+ | 31 | | pressure_span_raw | Int | 27648 | 压力原始量程值 |
194
+ | 32 | | pressure_underflow | Int | -500 | 压力下溢出设置值 |
195
+ | 33 | | pressure_overflow | Int | 28000 | 压力上溢出设置值 |
196
+ | 34 | | pressure_zero | Real | 0 | 零点值 |
197
+ | 36 | | pressure_span | Real | 4 | 量程值 |
198
+ | 38 | | pressure_AH | Real | 0 | 高高值 |
199
+ | 40 | | pressure_WH | Real | 0 | 高值 |
200
+ | 42 | | pressure_WL | Real | 0 | 低值 |
201
+ | 44 | | pressure_AL | Real | 0 | 低低值 |
202
+ | 46 | | pressure_DZ | Real | 0.05 | 压力比较死区 |
203
+ | 48 | | pressure_FT | UDInt | 0 | 压力比较容错时间 |
204
+ | 50 | | reserve1 | Real | 0 | 预留 |
205
+ | 52 | | reserve2 | Real | 0 | 预留 |
206
+ | 54 | | reserve3 | Real | 0 | 预留 |
207
+ | 56 | | invalid_value_of_AI | Real | -100000 | 模拟量无效时的预置值(暂时没实现) |
208
+ | 58 | | delay_protect_time | UDInt | 5000 | 通讯中断延后挂起时间 |
209
+ | 60 | | flow_smooth_factor | Real | 0.9 | 流量平滑权值 |
210
+ | 62 | | flow1_k_factor | DInt | 10000 | 流量1 K 系数(脉冲/m³) |
211
+ | 64 | | flow2_k_factor | DInt | 10000 | 流量2 K 系数(脉冲/m³) |
212
+ | 66 | | flow3_k_factor | DInt | 10000 | 流量3 K 系数(脉冲/m³) |
213
+ | 68 | | flow4_k_factor | DInt | 10000 | 流量4 K 系数(脉冲/m³) |
214
+ | 70 | | flow5_k_factor | DInt | 10000 | 流量5 K 系数(脉冲/m³) |
215
+ | 72 | | pump_change_delay | UDInt | 180000 | 泵操作延时 |
216
+
217
+ ## 6. 动作记录(RECORD,27 个寄存器)
218
+
219
+ 数据区显示一条记录。写入 `index` 选择要查看的记录:0 为最新,1 为上一条,依此类推;`-1` 表示没有记录。
220
+
221
+ | 寄存器 | 线圈 | 名称 | 类型 | 初值 | 说明 |
222
+ | --- | --- | --- | --- | --- | --- |
223
+ | 0 | | year | Uint | 0 | 年 |
224
+ | 1 | | month | Uint | 0 | 月 |
225
+ | 2 | | day | Uint | 0 | 日 |
226
+ | 3 | | hour | Uint | 0 | 时 |
227
+ | 4 | | minute | Uint | 0 | 分 |
228
+ | 5 | | second | Uint | 0 | 秒 |
229
+ | 6 | | section_ID | UInt | 0 | 引发动作的段ID 为0表示还没有记录 |
230
+ | 7 | | flow_begin | Real | 0 | 动作段首端执行器流量和 |
231
+ | 9 | | flow_end | Real | 0 | 动作段末端执行器流量和 |
232
+ | 11 | | flow_diff | Real | 0 | 动作段流差 |
233
+ | 13 | | node1_press | Real | 0 | 动作段执行器1压力 |
234
+ | 15 | | node2_press | Real | 0 | 动作段执行器2压力 |
235
+ | 17 | | node3_press | Real | 0 | 动作段执行器3压力 |
236
+ | 19 | | node4_press | Real | 0 | 动作段执行器4压力 |
237
+ | 21 | | node1_ID | UInt | 0 | 动作段执行器1ID |
238
+ | 22 | | node2_ID | UInt | 0 | 动作段执行器2ID |
239
+ | 23 | | node3_ID | UInt | 0 | 动作段执行器3ID |
240
+ | 24 | | node4_ID | UInt | 0 | 动作段执行器4ID |
241
+ | 25 | | status | Word | 0 | 动作状态字 |
242
+ | 25.0 | 408 | press_action | Bool | false | 压力超限动作 |
243
+ | 25.1 | 409 | flow_action | Bool | false | 输差超限动作 |
244
+ | 25.2 | 410 | node1_pump_run | Bool | false | 动作段首端执行器1有开泵 |
245
+ | 25.3 | 411 | node2_pump_run | Bool | false | 动作段首端执行器2有开泵 |
246
+ | 25.4 | 412 | node3_pump_run | Bool | false | 动作段首端执行器3有开泵 |
247
+ | 25.5 | 413 | node4_pump_run | Bool | false | 动作段首端执行器4有开泵 |
248
+ | 26 | | index | Int | -1 | 倒数第几个记录,0为最新 |
249
+
250
+ ## 7. 与 2025 版点表(data_structure2025.xlsx)的差异
251
+
252
+ 以下差异以代码为准,本文已按代码编写:
253
+
254
+ | 位置 | 2025 版点表 | 代码 |
255
+ | --- | --- | --- |
256
+ | 段数据区长度 | 22 个寄存器,寄存器 20 为内部位字(含 `action_F_edge`、`stop_edge`) | 20 个寄存器,无内部位字 |
257
+ | 节点数据区的参数区寄存器 55–58 | `reserve4`(Real)、`delay_protect_time`(Real) | `invalid_value_of_AI`(Real)、`delay_protect_time`(UDInt) |
258
+ | 节点数据区 raw 量程 / 溢出初值 | 20000 / 20500 | 27648 / 28000 |
259
+ | 节点数据区 `response_code` 类型 | UInt | Word(按命令位组织) |
260
+ | 命令块参数 `delay_hangup` | 名称为 `delay_hangup` | 名称为 `delay_protect_time` |
261
+ | 动作记录状态字 | `node1..3_pump_run` | 另有 `node4_pump_run` |