IEC 104 Write
x/iec104Write component: v0.37.0+ IEC 104 control commands - single/double command, scaled/short-float setpoint. Routes to Success/Failure.
Requires: rulego-components-iot (opens new window)
# Configuration
Same as x/iec104Read (server/commonAddr/timeout/points). Write points are passed via msg.Data.
# Command Types
| Type | Description | Value Format |
|---|---|---|
| C_SC_NA_1 | Single command (control) | true/false or 1/0 |
| C_DC_NA_1 | Double command (control) | 1(on)/2(off) |
| C_SE_NB_1 | Scaled setpoint (regulation) | Integer (int16 range) |
| C_SE_NC_1 | Short float setpoint (regulation) | Float |
# Input/Output
- Input:
msg.Datawith point list[{"name","addr","type","value"}], fields support${msg.xx}templates - Output: Success/Failure routing
# Example
{
"id": "iec104_write",
"type": "x/iec104Write",
"configuration": {
"server": "192.168.1.10:2404",
"commonAddr": 1
}
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
msg.Data with write points:
[
{"name": "close", "addr": "100", "type": "C_SC_NA_1", "value": "true"},
{"name": "setPower", "addr": "700", "type": "C_SE_NC_1", "value": "50.5"}
]
1
2
3
4
2
3
4
# Related
- Read: x/iec104Read
- Universal write entry: x/iotWrite (driver=iec104)
Edit this page on GitHub (opens new window)
Last Updated: 2026/07/29, 07:07:39