scada-points.csv led with a scada_tag column of PS_* names derived from
the PLC register map - PS_STN_WET_WELL_LEVEL and the like. CI Server never
adopted them. They named nothing that exists, nothing in this repo read
them, and read as if authoritative they have already caused a real defect
in a downstream project.
Replaced with ci-server-points.csv, the as-built delivery from the CI
Server side (copied from yau-plant-assistant, not re-derived). It is keyed
on the CI Server item, with the station and point name beside it:
ci_item,ci_station,ci_point,description,poll_group,...
gen_scada_points.py now reproduces that file byte-identically, taking the
names from the LEAF table in gen_ciserver_qli.py so the CSV and the .qli
cannot disagree. tag_for() is gone. Verified: the CSV and all three .qli
regenerate unchanged, and all six displays still build.
The four poll groups keep their PS_ names - PS_STATUS_BITS, PS_PUBLISHED,
PS_SETPOINTS, PS_SIM_CONTROL. Those are live configuration, and are the
only legitimate PS_ names.
modbus_points/README.md gains a 'four namespaces' section - instrument tag,
PLC address, CI Server point, CI Server item - since confusing them is what
produced the placeholder column in the first place.
Also settles the historian drift left open in the previous commit. The
live export is the authority: the server runs WRPS_ONE_SEC at 5 SECONDS,
not 1, and WRPS_THIRTY_SEC at 30 seconds rather than a 60 second
WRPS_ONE_MIN. Code assuming 60 s was wrong by twelvefold. Recorded in
historian/README.md with a caution never to hardcode a sample interval.
Every .qli in the delivery was byte-identical to ours - only the CSV
differed.
7 KiB
7 KiB
| 1 | ci_item | ci_station | ci_point | description | poll_group | function_code | modbus_address | data_type | access | eng_units | raw_to_eng | eng_gain | format_mask | iec_address | plc_tag | notes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | AID.WRPS.PU301.RUN_CMD | WRPS_PLC | PU301_RUN_CMD | Run command | PS_STATUS_BITS | FC01 | 0 | Boolean | Read | value | 1.0 | 99999 | %QX0.0 | PU-301 | ||
| 3 | AID.WRPS.PU302.RUN_CMD | WRPS_PLC | PU302_RUN_CMD | Run command | PS_STATUS_BITS | FC01 | 1 | Boolean | Read | value | 1.0 | 99999 | %QX0.1 | PU-302 | ||
| 4 | AID.WRPS.PU303.RUN_CMD | WRPS_PLC | PU303_RUN_CMD | Run command | PS_STATUS_BITS | FC01 | 2 | Boolean | Read | value | 1.0 | 99999 | %QX0.2 | PU-303 | ||
| 5 | AID.WRPS.PU301.RUNNING | WRPS_PLC | PU301_RUNNING | Running | PS_STATUS_BITS | FC01 | 3 | Boolean | Read | value | 1.0 | 99999 | %QX0.3 | PU-301 | ||
| 6 | AID.WRPS.PU302.RUNNING | WRPS_PLC | PU302_RUNNING | Running | PS_STATUS_BITS | FC01 | 4 | Boolean | Read | value | 1.0 | 99999 | %QX0.4 | PU-302 | ||
| 7 | AID.WRPS.PU303.RUNNING | WRPS_PLC | PU303_RUNNING | Running | PS_STATUS_BITS | FC01 | 5 | Boolean | Read | value | 1.0 | 99999 | %QX0.5 | PU-303 | ||
| 8 | AID.WRPS.PU301.AVAILABLE | WRPS_PLC | PU301_AVAILABLE | Available | PS_STATUS_BITS | FC01 | 6 | Boolean | Read | value | 1.0 | 99999 | %QX0.6 | PU-301 | ||
| 9 | AID.WRPS.PU302.AVAILABLE | WRPS_PLC | PU302_AVAILABLE | Available | PS_STATUS_BITS | FC01 | 7 | Boolean | Read | value | 1.0 | 99999 | %QX0.7 | PU-302 | ||
| 10 | AID.WRPS.PU303.AVAILABLE | WRPS_PLC | PU303_AVAILABLE | Available | PS_STATUS_BITS | FC01 | 8 | Boolean | Read | value | 1.0 | 99999 | %QX1.0 | PU-303 | ||
| 11 | AID.WRPS.STN.IN_AUTO | WRPS_PLC | STN_IN_AUTO | Station in auto | PS_STATUS_BITS | FC01 | 9 | Boolean | Read | value | 1.0 | 99999 | %QX1.1 | STN | ||
| 12 | AID.WRPS.STN.HIGH_LEVEL | WRPS_PLC | STN_HIGH_LEVEL | High level alarm | PS_STATUS_BITS | FC01 | 10 | Boolean | Read | value | 1.0 | 99999 | %QX1.2 | STN | ||
| 13 | AID.WRPS.STN.SPILL_ACTIVE | WRPS_PLC | STN_SPILL_ACTIVE | Spill active | PS_STATUS_BITS | FC01 | 11 | Boolean | Read | value | 1.0 | 99999 | %QX1.3 | STN | ||
| 14 | AID.WRPS.PU301.TRIPPED | WRPS_PLC | PU301_TRIPPED | Tripped | PS_STATUS_BITS | FC01 | 12 | Boolean | Read | value | 1.0 | 99999 | %QX1.4 | PU-301 | ||
| 15 | AID.WRPS.PU302.TRIPPED | WRPS_PLC | PU302_TRIPPED | Tripped | PS_STATUS_BITS | FC01 | 13 | Boolean | Read | value | 1.0 | 99999 | %QX1.5 | PU-302 | ||
| 16 | AID.WRPS.PU303.TRIPPED | WRPS_PLC | PU303_TRIPPED | Tripped | PS_STATUS_BITS | FC01 | 14 | Boolean | Read | value | 1.0 | 99999 | %QX1.6 | PU-303 | ||
| 17 | AID.WRPS.STN.LEVEL | WRPS_PLC | STN_LEVEL | Wet well level | PS_PUBLISHED | FC03 | 0 | Signed 16-bit | Read | % | value / 60 | 0.016666666666666666 | 999.9 | %QW0 | STN | |
| 18 | AID.WRPS.STN.INFLOW | WRPS_PLC | STN_INFLOW | Inflow | PS_PUBLISHED | FC03 | 1 | Signed 16-bit | Read | m3/h | value * 0.36 | 0.36 | 9999.9 | %QW1 | STN | |
| 19 | AID.WRPS.STN.DISCHARGE | WRPS_PLC | STN_DISCHARGE | Total discharge flow | PS_PUBLISHED | FC03 | 2 | Signed 16-bit | Read | m3/h | value * 0.36 | 0.36 | 9999.9 | %QW2 | STN | |
| 20 | AID.WRPS.STN.PUMPS_RUNNING | WRPS_PLC | STN_PUMPS_RUNNING | Pumps running | PS_PUBLISHED | FC03 | 3 | Signed 16-bit | Read | count | value | 1.0 | 9 | %QW3 | STN | |
| 21 | AID.WRPS.STN.SPEED | WRPS_PLC | STN_SPEED | Common drive speed | PS_PUBLISHED | FC03 | 4 | Signed 16-bit | Read | % | value * 0.2 | 0.2 | 999.9 | %QW4 | STN | |
| 22 | AID.WRPS.STN.TIME_TO_SPILL | WRPS_PLC | STN_TIME_TO_SPILL | Time to spill weir (32767 = drawing down) | PS_PUBLISHED | FC03 | 5 | Signed 16-bit | Read | s | value | 1.0 | 99999 | %QW5 | STN | |
| 23 | AID.WRPS.STN.TIME_TO_LSHH | WRPS_PLC | STN_TIME_TO_LSHH | Time to LSHH (32767 = drawing down) | PS_PUBLISHED | FC03 | 6 | Signed 16-bit | Read | s | value | 1.0 | 99999 | %QW6 | STN | |
| 24 | AID.WRPS.STN.NET_ACCUM | WRPS_PLC | STN_NET_ACCUM | Net accumulation (signed) | PS_PUBLISHED | FC03 | 7 | Signed 16-bit | Read | m3/h | value * 0.36 | 0.36 | 9999.9 | %QW7 | STN | |
| 25 | AID.WRPS.PU301.RUN_HOURS | WRPS_PLC | PU301_RUN_HOURS | Run hours | PS_PUBLISHED | FC03 | 8 | Signed 16-bit | Read | h | value | 1.0 | 99999 | %QW8 | PU-301 | |
| 26 | AID.WRPS.PU302.RUN_HOURS | WRPS_PLC | PU302_RUN_HOURS | Run hours | PS_PUBLISHED | FC03 | 9 | Signed 16-bit | Read | h | value | 1.0 | 99999 | %QW9 | PU-302 | |
| 27 | AID.WRPS.PU303.RUN_HOURS | WRPS_PLC | PU303_RUN_HOURS | Run hours | PS_PUBLISHED | FC03 | 10 | Signed 16-bit | Read | h | value | 1.0 | 99999 | %QW10 | PU-303 | |
| 28 | AID.WRPS.STN.VOL_TO_SPILL | WRPS_PLC | STN_VOL_TO_SPILL | Volume remaining to spill | PS_PUBLISHED | FC03 | 11 | Signed 16-bit | Read | m3 | value | 1.0 | 9999 | %QW11 | STN | |
| 29 | AID.WRPS.STN.STATE | WRPS_PLC | STN_STATE | Station state (enum 3.1) | PS_PUBLISHED | FC03 | 12 | Signed 16-bit | Read | value | 1.0 | 9 | %QW12 | STN | ||
| 30 | AID.WRPS.PU301.STATE | WRPS_PLC | PU301_STATE | Pump state (enum 3.2) | PS_PUBLISHED | FC03 | 13 | Signed 16-bit | Read | value | 1.0 | 9 | %QW13 | PU-301 | ||
| 31 | AID.WRPS.PU302.STATE | WRPS_PLC | PU302_STATE | Pump state (enum 3.2) | PS_PUBLISHED | FC03 | 14 | Signed 16-bit | Read | value | 1.0 | 9 | %QW14 | PU-302 | ||
| 32 | AID.WRPS.PU303.STATE | WRPS_PLC | PU303_STATE | Pump state (enum 3.2) | PS_PUBLISHED | FC03 | 15 | Signed 16-bit | Read | value | 1.0 | 9 | %QW15 | PU-303 | ||
| 33 | AID.WRPS.STN.DUTY_PUMP | WRPS_PLC | STN_DUTY_PUMP | Current duty pump (0 = none, 1-3) | PS_PUBLISHED | FC03 | 16 | Signed 16-bit | Read | value | 1.0 | 9 | %QW16 | STN | ||
| 34 | AID.WRPS.STN.ALARM_WORD | WRPS_PLC | STN_ALARM_WORD | Alarm bitmask (section 6) - READ AS UNSIGNED | PS_PUBLISHED | FC03 | 17 | Unsigned 16-bit | Read | value | 1.0 | 99999 | %QW17 | STN | ||
| 35 | AID.WRPS.STN.CMD_ACK | WRPS_PLC | STN_CMD_ACK | Command acknowledge (echoes %MW1) | PS_PUBLISHED | FC03 | 20 | Signed 16-bit | Read | value | 1.0 | 99 | %QW20 | STN | ||
| 36 | AID.WRPS.SP.MODE | WRPS_PLC | SP_MODE | Station mode: 1 = auto, 2 = off | PS_SETPOINTS | FC03/FC06 | 1024 | Signed 16-bit | Read/Write | value | 1.0 | 9 | %MW0 | STN | ||
| 37 | AID.WRPS.SP.CMD_WORD | WRPS_PLC | SP_CMD_WORD | Command word (section 3.3) | PS_SETPOINTS | FC03/FC06 | 1025 | Signed 16-bit | Read/Write | value | 1.0 | 99 | %MW1 | STN | ||
| 38 | AID.WRPS.SP.CMD_PARAM | WRPS_PLC | SP_CMD_PARAM | Command parameter (pump number) | PS_SETPOINTS | FC03/FC06 | 1026 | Signed 16-bit | Read/Write | value | 1.0 | 9 | %MW2 | STN | ||
| 39 | AID.WRPS.SP.LEVEL_SP | WRPS_PLC | SP_LEVEL_SP | Level control setpoint | PS_SETPOINTS | FC03/FC06 | 1027 | Signed 16-bit | Read/Write | % | value / 60 | 0.016666666666666666 | 999.9 | %MW3 | STN | |
| 40 | AID.WRPS.SP.START_DUTY | WRPS_PLC | SP_START_DUTY | Start duty level | PS_SETPOINTS | FC03/FC06 | 1028 | Signed 16-bit | Read/Write | % | value / 60 | 0.016666666666666666 | 999.9 | %MW4 | STN | |
| 41 | AID.WRPS.SP.START_P2 | WRPS_PLC | SP_START_P2 | Start pump 2 level | PS_SETPOINTS | FC03/FC06 | 1029 | Signed 16-bit | Read/Write | % | value / 60 | 0.016666666666666666 | 999.9 | %MW5 | STN | |
| 42 | AID.WRPS.SP.START_P3 | WRPS_PLC | SP_START_P3 | Start pump 3 level | PS_SETPOINTS | FC03/FC06 | 1030 | Signed 16-bit | Read/Write | % | value / 60 | 0.016666666666666666 | 999.9 | %MW6 | STN | |
| 43 | AID.WRPS.SP.STOP_ALL | WRPS_PLC | SP_STOP_ALL | Stop all level | PS_SETPOINTS | FC03/FC06 | 1031 | Signed 16-bit | Read/Write | % | value / 60 | 0.016666666666666666 | 999.9 | %MW7 | STN | |
| 44 | AID.WRPS.SP.HIGH_ALARM | WRPS_PLC | SP_HIGH_ALARM | High level alarm | PS_SETPOINTS | FC03/FC06 | 1032 | Signed 16-bit | Read/Write | % | value / 60 | 0.016666666666666666 | 999.9 | %MW8 | STN | |
| 45 | AID.WRPS.SP.MIN_SPEED | WRPS_PLC | SP_MIN_SPEED | Minimum drive speed | PS_SETPOINTS | FC03/FC06 | 1033 | Signed 16-bit | Read/Write | % | value * 0.2 | 0.2 | 999.9 | %MW9 | STN | |
| 46 | AID.WRPS.SP.SERVICE_HRS | WRPS_PLC | SP_SERVICE_HRS | Service interval | PS_SETPOINTS | FC03/FC06 | 1034 | Signed 16-bit | Read/Write | h | value | 1.0 | 99999 | %MW10 | STN | |
| 47 | AID.WRPS.SIM.INFLOW | WRPS_PLC | SIM_INFLOW | manual inflow (mode 0) | PS_SIM_CONTROL | FC03/FC06 | 1044 | Signed 16-bit | Read/Write | m3/h | value * 0.36 | 0.36 | 9999.9 | %MW20 | SIM | SIMULATION CONTROL - simulation build only |
| 48 | AID.WRPS.SIM.SCENARIO | WRPS_PLC | SIM_SCENARIO | scenario 0=man 1=diurnal 2=wet 3=ref | PS_SIM_CONTROL | FC03/FC06 | 1045 | Signed 16-bit | Read/Write | value | 1.0 | 9 | %MW21 | SIM | SIMULATION CONTROL - simulation build only | |
| 49 | AID.WRPS.SIM.RESET | WRPS_PLC | SIM_RESET | write 1 to reset scenario, self-clearing | PS_SIM_CONTROL | FC03/FC06 | 1046 | Signed 16-bit | Read/Write | value | 1.0 | 9 | %MW22 | SIM | SIMULATION CONTROL - simulation build only | |
| 50 | AID.WRPS.SIM.TIME_SCALE | WRPS_PLC | SIM_TIME_SCALE | time scale 1-120 | PS_SIM_CONTROL | FC03/FC06 | 1047 | Signed 16-bit | Read/Write | x | value | 1.0 | 999 | %MW23 | SIM | SIMULATION CONTROL - simulation build only |