On this page
MC R Binary
This plugin uses 3E Binary framing with iQ-R device encoding: four-byte device numbers, two-byte device codes and iQ-R WORD/bit subcommands. It is not a 4E plugin, and ordinary MC 3E addressing is not interchangeable with its R-specific rules.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| MELSEC iQ-R (R04CPU, R08CPU) | The controller Ethernet interface must expose an MC binary service matching this plugin’s iQ-R device encoding. Configure the actual network number, module I/O number and station. |
Configure the CPU or Ethernet module in GX Works3
Identify the actual cable connection, IP, module parameters and control CPU. R04CPU/R08CPU built-in Ethernet, RJ71EN71, and the CPU/network parts of RnENCPU are distinct interfaces.
- Open Parameter → target module → Module Parameter → Basic Settings in the actual project. Add RJ71EN71 under Module Information only when that module is installed; built-in CPU Ethernet does not require it.
- Set the actual IP/mask and any required gateway in Own Node Settings. Select Binary for Communication Data Code. Normally retain Do Not Open by Program; selecting Open by Program requires working open/close logic.

- Open External Device Configuration, drag in SLMP Connection Module, select TCP, and assign the PLC listening port, for example decimal 2000. This manual’s connection-port ranges are 1–4999 and 5010–65534; avoid 5000–5009 rather than copying FX5 reservations. The vendor image retains an existing MELSOFT row; add the SLMP module shown on the right instead of treating that row as a completed SLMP setup.

- Select Close with Reflecting the Setting → Apply → Online / Write to PLC. Reset or power-cycle as instructed and read back. An SLMP server responds automatically and does not need to poll the gateway. Although the PLC has auto-open UDP, this plugin supports only TCP Client/Server.
- Only when RUN writes are required and permitted, change Enable/Disable Online Change from Disable All (SLMP) to Enable All (SLMP). Read-only acquisition does not need this write switch. Check actual remote-password, IP-filter and write restrictions rather than increasing retries.
See Mitsubishi’s MELSEC iQ-R Ethernet User’s Manual (Application), sections 1.2/2.1/2.2 and MC Protocol Reference, sections 8.1/8.2 .
Gateway channel and all twelve device properties
Create a TCP Client channel in Development Configuration → Collection Configuration, targeting the actual interface’s SLMP IP/port. Add MC R Binary, bind and enable it, and start with an observable interval such as 1000 ms. TCP Server is for a peer that initiates a connection to the gateway. See Collection configuration for common fields.
Set the actual endpoint and complete the PLC settings above, then enable the channel and device.


| Property | Meaning and configuration |
|---|---|
| NetWorkID | Default 0, directly connected station. Use the project’s actual destination network for routed access, ordinarily 1–239. Do not infer it from an IP unless the engineering project explicitly uses IP-derived network/station settings. |
| PLCID | Default 255 / FFH, with network 0 for the connected station. Remote access uses the actual destination station, distinct from IOModuleStation and a Modbus unit ID. |
| IOModuleID | Default 1023 / 03FFH, normally the connected station’s control CPU. Enter decimal. Multiple-CPU routes may use 03E0H–03E3H = 992–995; confirm the actual CPU/module path rather than a rack-slot guess. |
| IOModuleStation | Default 0 for ordinary direct access. Use another value only for a corresponding module/multidrop route; it does not replace PLCID. |
| MaxPack | Default 256, continuous address span within one group, interval and area. WORD spans count registers; bit areas align to 16 points. It is neither variable count nor packet bytes. Direct iQ-R batch WORD reads permit up to 960 WORDs; routes, commands and special devices may allow less. A 16-bit quantity field does not authorize 65535-WORD requests. Individual values and gaps must also fit valid memory. |
| Timeout | Default 3000 ms, application wait separate from connect timeout. Frame monitoring divides milliseconds by 250: default 12 = 000CH. Current checked conversion first requires a 16-bit millisecond value; values above 65535 fail. Values below 250 may produce protocol timer 0. Use a suitable positive value, normally a 250-ms multiple. |
| SendDelayTime | Default 0 ms before each request; required spacing adds to cycle time. |
| RetryCount | Default 3. Adds failure time; does not fix invalid routes, device codes, permissions or ranges. |
| DutyCycle | Default 3, minimum 1. Schedule reads after every n sustained writes to maintain feedback; not a PLC scan count. |
| WritePriority | Default false. Can cancel a read to prioritize writing; frequent writes affect sampling. |
| DataFormat | Default DCBA; ABCD/BADC/CDAB/DCBA numeric conversion. Check raw WORDs and source type; does not change device indices or frame generation. |
| IsStringReverseByteWord | Default false, applied by this R plugin. Swaps bytes inside each string WORD, not the whole string. Verify character storage before enabling. |
Ordinary direct routes are 0 / 255 / 1023 / 0. There are no extra plugin variable properties; adding Modbus s= to a variable does not change the route.
Open Plugin Properties and scroll down to check runtime and conversion settings as well as the protocol fields.


Address fields and R-specific rules
| Field | Meaning and limits |
|---|---|
| Area | Choose an area below that the CPU allocates. This parser does not include ZR, LZ, RD or U\G module-buffer addresses. Vendor device codes do not establish plugin implementation. |
| Offset | Numeric device index, not byte offset. D=100 produces D100; W=256 produces W100. X/Y/DX/DY always use hexadecimal here: X010 = hexadecimal 10 = decimal 16, unlike the leading-zero octal rule of ordinary 3E/1E. |
| Bit | Explicit 0–15 for a Boolean inside a WORD, e.g. D140.3. The generic editor’s upper limit 31 does not widen the protocol. Do not append .0 to bit areas. Long-device current values/status require their own layout. |
| DataFormat override | Blank inherits device DCBA; only this variable’s numeric conversion changes. |
| Encoding override | Default UTF-8; select ASCII for actual ASCII character data. |
| StringLength | len= is bytes per string slot, with no MC default. len=4 occupies two WORDs. Point at actual characters; .4 is a bit suffix, not length. |
| BCD override | C8421/C5421/C2421/C3/Gray only for genuinely coded source data; leave ordinary binary/REAL data unchanged. |
| VariableStringLength | Default false. Raw MC strings do not automatically identify custom PLC length headers. |
| Areas | Type, numbering and constraints |
|---|---|
| SM, M, L, F, V, S | Special/internal/latch/annunciator/edge/step bits, decimal; permissions and special ranges depend on the CPU. |
| X, Y, B, SB, DX, DY | Input/output/link/link-special/direct-I/O bits, hexadecimal, including leading-zero text. Inputs/status are not unrestricted writable memory. |
| D, SD, R, Z | Data/special/file/index WORDs, decimal. Allocate file registers; per-program file registers are not ordinary externally accessible memory. |
| W, SW | Link/link-special WORDs, hexadecimal. |
| TN, TS, TC; CN, CS, CC | Timer/counter current values, contacts and coils, decimal. WORD current values differ from status bits. |
| STN, STS, STC | Retentive timer current WORD/contact/coil, decimal. R spelling differs from ordinary 3E SN/SS/SC. |
| LTN, LTS, LTC; LSTN, LSTS, LSTC | Long/long-retentive timers, decimal. Current values are 32-bit but batch reads use the four-WORD layout below. Contacts/coils do not support arbitrary ordinary bit reads/writes. |
| LCN, LCS, LCC | Long-counter 32-bit current value and contacts/coils, decimal. Each LCN is not one 16-bit CN. |
Four-byte framing does not guarantee arbitrary high-address acquisition. Current text parsing and periodic merging have additional numeric and 16-bit range boundaries. Do not deploy periodic D65536+ or groups crossing that boundary merely because an address saves. Map required high data to a verified ordinary D area in the PLC and validate it first.
Create a read-only variable with the address and actual PLC type described here. Open Field Editor, check the decoded fields and confirm to fill the address back in. These scalar examples keep array length at 0.


Long timers are not ordinary two-WORD values
The MC reference requires four WORDs per LTN/LSTN timer in a batch read: WORDs 1–2 contain the 32-bit current value; WORD3 bit0 is coil, bit1 contact, with other bits and WORD4 reserved. WORDs 3–4 are not the next timer’s value.
To inspect LT0, use LTN0 / UInt16 / count 4 in a dedicated group and combine only the first two WORDs in the confirmed order. Two timers require eight WORDs. Current generic periodic merging uses WORD indices; mixing LTN0/LTN1 or multiple LCN variables does not automatically account for long-device stride. Prefer explicitly mapped PLC D values and status WORDs for production variables.
Direct bit reads of LTS/LTC/LSTS/LSTC and batch writes of long-timer current values are not permitted by the vendor’s corresponding commands. Ordinary batch services in this plugin do not substitute for required random-write services. Inspect the raw layout read-only; expose a writable D parameter through the PLC program when adjustment is needed. LCN permissions differ and require separate two-WORD-per-point and CPU verification.
Defined values and read/write comparison
Preset an independent area in GX Works3 online device monitoring. Compare the same addresses and types in the PLC and gateway.
| PLC definition | Gateway address / type / count | Compare |
|---|---|---|
| D100=04D2H | D100 / UInt16 / 1 | 1234. |
| D110=5678H, D111=1234H | D110 / UInt32 / 1 / DCBA | 305419896; one element is two WORDs. |
| D120–121 hold REAL 12.5 | D120 / Float / 1 / DCBA | 12.5, not integer bit-pattern display. |
| D130–135 hold three REALs | D130 / Float / 3 | Six WORDs, compare each element. |
| M100=ON, D140=0008H | M100 / Boolean / 1; D140.3 / Boolean / 1 | true; periodic bit areas align to 16 and WORD bit numbering starts at 0. |
| D200=4241H, D201=4443H | D200;len=4;encoding=ASCII / String / 1 | ABCD with low byte first; check whether string-word reversal is needed. |
Int16/UInt16 occupy one WORD, Int32/UInt32/Float two, Int64/UInt64/Double four. Decimal is a generic 16-byte layout, not PLC REAL. Byte does not change D addressing to bytes. WORD writes require even byte counts; scalar Byte and odd-byte strings are not arbitrary byte writes.
-
Open Protocol Debug → Read/Write, starting with D100 / UInt16 / count 1.
-
Expect Binary 3E request
50 00, responseD0 00, batch-read command0401H, and iQ-R WORD/bit subcommands0002H/0003H. Decode data only after successful completion0000H; ordinary Q/L subcommands or ASCII responses are not equivalent. -
Save periodic variables after online comparison, check quality/timestamps and changed PLC values, then verify arrays, strings and ordinary bits. High addresses, long devices and routed paths require their own comparisons.
-
For an independent D write, record the original, confirm RUN and variable permissions, write 2345, verify on the PLC, then restore/reread. D140.3 uses whole-WORD read/modify/write, not an atomic bit write; concurrent updates can be overwritten. Do not batch across a WORD boundary.
| Symptom | Check first |
|---|---|
| GX Works3 connects, SLMP does not | Actual interface/module part, applied SLMP connection, Binary, TCP and route. MELSOFT connectivity is insufficient. |
| D works, extended R devices fail | iQ-R subcommands, area allocation, long-device command permissions and four-WORD layout. |
| X/Y differs from other MC pages | R uses hexadecimal consistently; leading zero does not select octal. |
| Reads work, RUN writes fail | Online Change, target area, password/IP filter, gateway permission and program overwrite. |
| Long arrays misalign or high periodic addresses fail | Stride/merging limitations above; use verified D mappings. |
After saving, check the name, address and type under Real-time Variables. Enable the channel, device and variable, then compare the known value, quality and advancing collection time as described above.
