MC Node
x/mcRead / x/mcWrite component: v0.35.0+ Mitsubishi MC protocol (3E frame/binary, SLMP) for reading and writing Q/L/R/iQ-R/iQ-F series PLC devices.
Requires: rulego-components-iot (opens new window)
# Page Navigation
- Read: x/mcRead
- Write: x/mcWrite
- Universal acquisition entry: x/iotRead (driver=mc)
- Universal write entry: x/iotWrite (driver=mc)
- To time-series storage: x/tsdbWrite (measurement configured)
# Shared Connection Configuration
| Field | Type | Description | Default |
|---|---|---|---|
| server | string | PLC address host:port, MC default port 6000 | 127.0.0.1:6000 |
| timeout | int | Request timeout (seconds) | 5 |
| points | array | Default point table. Points in msg.Data take precedence | - |
Network/PC number parameters are fixed by the underlying library (Ethernet direct-connect scenario).
# Point Table Fields
| Field | Description |
|---|---|
| name | Point name |
| addr | Device address (see below) |
| type | Data type |
| scale / offset | Engineering conversion |
| endian | Multi-register byte order: ABCD/CDAB/BADC/DCBA |
Engineering formula: eng = raw * scale + offset. For an offset-only shift set scale=1 explicitly; when scale=0 the result is offset.
All fields support ${msg.xx} / ${metadata.xx} templates.
# Address Format (Devices)
| Device | Word | Bit | Description |
|---|---|---|---|
| D | D100 | - | Data register |
| W | W200 | - | Link register |
| R | R200 | - | File register |
| ZR | ZR300 | - | File register (extended) |
| M | - | M10 | Internal relay |
| SM | - | SM400 | Special relay |
| X | - | X1A0 | Input (hex) |
| Y | - | Y30 | Output (hex) |
| B | - | B4 | Link relay |
| C | C10 | C10 | Counter |
| L | - | L10 | Latched relay |
# Data Types
BOOL, INT16, UINT16, INT32, UINT32, FLOAT32, FLOAT64 (per-point Endian: ABCD/CDAB/BADC/DCBA)
# Read vs Write
- Read: outputs unified
iot_points.Datalist tomsg.Data - Write: consumes point list from
msg.Dataas[{"name","addr","type","value"}] - Routing: success goes to
Success, failure goes toFailure
Edit this page on GitHub (opens new window)
Last Updated: 2026/08/01, 05:05:14