MC Write
x/mcWrite component: v0.37.0+ Writes PLC devices via the Mitsubishi MC protocol (3E frame/binary, SLMP). Routes to Success or Failure.
Requires: rulego-components-iot (opens new window)
# Configuration
Connection settings are the same as x/mcRead (server/timeout/points). Write points are passed via msg.Data.
# Input/Output
- Input:
msg.Datawith point list[{"name","addr","type","value"}] - Output: success routes to
Success, failure routes toFailure
# Example
{
"id": "mc_write",
"type": "x/mcWrite",
"configuration": {
"server": "192.168.1.30:6000"
}
}
1
2
3
4
5
6
7
2
3
4
5
6
7
msg.Data with write points:
[
{"name": "setSpeed", "addr": "D200", "type": "UINT16", "value": "1500"},
{"name": "start", "addr": "M10", "type": "BOOL", "value": "true"}
]
1
2
3
4
2
3
4
# Related
- Overview: x/mc
- Read: x/mcRead
- Universal write entry: x/iotWrite (driver=mc)
Edit this page on GitHub (opens new window)
Last Updated: 2026/07/29, 07:07:39