Skip to Content
On this page

MC 3E Binary

This plugin accesses Mitsubishi PLC devices using MC 3E binary frames. Enable a matching MC/SLMP connection on the PLC and select Binary data code. An engineering-tool connection does not establish that the MC port is open. This is neither the FX programming-port protocol nor Modbus 40001 addressing. Use MC 3E ASCII when the target requires ASCII frames.

Compatible devices and models

Device series / model examplesConnection requirements
MELSEC iQ-F: FX5U, FX5UC, FX5UJ, FX5SEnable SLMP 3E in GX Works3 Ethernet settings and match the ASCII/binary data code, TCP/UDP transport, port and destination. Use devices within the CPU supported ranges.
MELSEC-Q (QnU CPU with built-in Ethernet, or QJ71E71-100)Enable QnA-compatible 3E frames. Match encoding, port and destination to the CPU’s built-in interface or Ethernet module configuration.
MELSEC-L (LCPU with built-in Ethernet, or LJ71E71-100)Configure an MC 3E service and match ASCII/binary encoding, port and destination to the plugin.

Select the actual PLC interface

PLC/interfaceRequirements
FX5U, FX5UC, FX5UJ, FX5S built-in EthernetConfigure an SLMP Connection Module in GX Works3 with Binary data code. Device areas and capacity depend on the CPU. Do not confuse 3E support with version-dependent 1E support.
QnU built-in Ethernet QCPU, built-in Ethernet LCPUEnable an MC Protocol open connection and Binary code in the matching PLC project. QnU steps are illustrated below; use the corresponding LCPU project for L.
QJ71E71-100, LJ71E71-100 Ethernet modulesConfigure the module’s IP, open connection and code; connect to that IP. Multiple CPUs, redundancy and remote networks also require the correct target route.
FX3 Ethernet modules or third-party MC-compatible devicesCheck the exact module’s frame generation, commands and areas. An Ethernet socket or a Mitsubishi-compatible label does not establish 3E support.

Connect the appropriate Ethernet interface to the gateway/switch and check link indicators. For example, PLC 192.168.3.250/24 and gateway 192.168.3.10/24 share a network; routed networks require working routes at both ends. Do not treat CC-Link IE or EtherCAT interfaces as ordinary MC TCP ports.

FX5: enable SLMP in GX Works3

These original GX Works3 images are from Mitsubishi SH-082625ENG-F, section 6.2 .

  1. Open the project matching the CPU. Select Parameter → module → Module Parameter → Ethernet Port → Basic Settings → Own Node Settings. Set the actual IP, mask and required default gateway. Select Communication Data Code = Binary. The image’s 192.168.3.250 is a manufacturer example, not a universal default.

FX5 IP address and Binary Communication Data Code in GX Works3

  1. Open External Device Configuration → Detailed Setting → Ethernet Configuration (Built-in Ethernet Port). Drag SLMP Connection Module from Module List, choose TCP and set the PLC Port No., for example 2000. A MELSOFT Connection Module or a plain no-protocol connection does not replace SLMP.

GX Works3 SLMP Connection Module with TCP and PLC port 2000

The FX5 setting permits decimal ports 1–5548 and 5570–65534; 5549–5569 are reserved. UDP additionally requires the actual peer IP and a matching gateway local binding/return path. This TCP example gives gateway destination 192.168.3.250:2000; this is the PLC listening port, not the gateway web port.

  1. Reflect the settings, write the module/PLC parameters to the correct CPU and apply them as instructed by the engineering tool. Reconnect and confirm the active configuration. Passive SLMP collection does not require an SP.SLMPSND instruction in the PLC program. Editing an offline project alone does not activate the port.

QnU: configure built-in Ethernet

Open Parameter → PLC Parameter → Built-in Ethernet Port Setting. These original dialogs are from Mitsubishi’s QnUCPU built-in Ethernet manual SH-080813CHN-C, printed pages 35–36.

  1. Set the actual IP/mask and select Communication Data Code = Binary Code. Read-only collection does not require enabling RUN-state writes. If writing an approved test device, separately check Enable online change (FTP, MC Protocol) and project restrictions.

QnU Binary Code, online-change option and Open Setting button

  1. Click Open Setting and add Protocol = TCP, Open System = MC Protocol. Set Host Station Port No. The original input format is HEX: 0401 means decimal 1025, which is the gateway port when following the image. Decimal 2000 requires DEC input 2000 or HEX input 07D0.

QnU MC Protocol open connection; HEX 0401 corresponds to decimal port 1025

This QnU edition permits 0401H–1387H and 1392H–FFFEH, reserving 1388H–1391H; do not copy the FX5 reserved range. Write and activate parameters according to the CPU’s reset/power-cycle requirements, then confirm online. QJ/LJ Ethernet modules use their own Ethernet Operation/Open Settings; the CPU’s built-in port dialog is not their universal menu.

Gateway channel and all device properties

Under Development Configuration → Collection Configuration, create a TCP Client channel targeting the actual PLC IP/open port. Bind a device using MC 3E Binary, start with an observable interval such as 1000 ms and enable both. Shared fields are documented in Collection Configuration.

UDP, TCP Server and Serial Port are also selectable, but require a peer or transparent link that actually supports that transport. A normal passive PLC Ethernet connection uses TCP Client. The Serial Port choice does not turn an FX programming port or Q serial module into a 3E connection.

Set the actual endpoint and complete the PLC settings above, then enable the channel and device.

Dedicated MC 3E Binary channel settings

Select MC 3E Binary and associate its channel

PropertyMeaning and configuration
NetWorkIDDefault 0 for the connected station. For remote networks, use the actual target network parameters; ordinary remote MC network numbers are 1–239. Byte storage 0–255 does not make every value a valid route. It is not part of the IP address.
PLCIDDefault 255 (FFH), together with network 0 for the connected station. For remote access it represents the target network-module station, not an IP suffix or Modbus station.
IOModuleIDDefault 1023 (03FFH), normally the connected station’s control CPU. Enter decimal values. Multiple CPU No.1–4 can use 03E0H–03E3H, decimal 992–995, only in a matching system; do not guess from a physical slot.
IOModuleStationDefault 0 for ordinary CPU access. For multidrop module routing use the actual destination module station with its I/O number. This is a different routing level from PLCID.
MaxPackDefault 256, controlling contiguous address span within the same collection group, interval and area. It is not a variable count or frame-byte size. WORD areas use register spans; bit areas are organized into 16-point WORD reads. Use a positive budget that fits an individual variable and the PLC’s actual range/command limits.
TimeoutDefault 3000 ms for responses, separate from TCP connection timeout. Binary also converts this to 250 ms PLC monitoring units after a 16-bit millisecond value; values above 65535 ms do not reliably extend that timer. Prefer ordinary multiples of 250 ms.
SendDelayTimeDefault 0 ms before each request. Increase only for required peer pacing; it extends the total collection cycle.
RetryCountDefault 3. Repeating invalid addresses/routes or protected writes cannot repair them.
DutyCycleDefault 3, minimum 1; arrange a read after every n writes under continuous writing. It is not the PLC scan period.
WritePriorityDefault false. Enabling can cancel a current read to prioritize writing and affect polling refresh.
DataFormatDefault DCBA, choices ABCD/BADC/CDAB/DCBA for numeric conversion. Establish the order using known UInt16 and 32-bit patterns. This does not change Binary/ASCII or device numbering.
IsStringReverseByteWordVisible default false. This Binary plugin currently does not apply the switch during initialization, so it cannot be relied on to fix swapped string bytes. Check original WORD bytes and use an appropriate data conversion when necessary.

Ordinary direct access uses network 0 / PLC ID 255 / module I/O 1023 / module station 0. See MC Reference, section 6.2  for routing and multiple CPU constraints. There is no additional per-variable MC station property; a Modbus-style s= suffix does not replace these device routes.

Open Plugin Properties and scroll down to check runtime and conversion settings as well as the protocol fields.

MC 3E Binary protocol and packing properties

MC 3E Binary runtime and conversion properties

Address editor and PLC device areas

There are no additional plugin-specific variable properties. Configure address, type, array length, permission and collection group. Array length counts typed elements: one UInt32 occupies two D registers.

Address fieldRule
AreaSelect an area actually present on the CPU. The editor filters for this 3E profile; it is not the complete R extended-device list.
OffsetNumeric device location, not a byte offset. D/100 produces D100. W/100 produces W64; W100 requires numeric offset 256. Check the generated address.
BitEmpty means a whole device. A WORD Boolean requires explicit 0–15, e.g. D100.3. Although the generic control can show 0–31, 3E rejects 16–31. Bit devices such as M/X do not accept another .0.
DataFormat overrideEmpty inherits device DCBA. Changes conversion only, not the PLC declaration.
Encoding overrideDefault UTF-8; explicitly choose ASCII for ASCII text stored by the PLC program. Raw D memory does not declare its encoding.
StringLengthlen= is the string slot size in bytes, with no MC default. Specify it for periodic strings. len=4 occupies two WORDs, not four.
BCD overrideSelect C8421/C5421/C2421/C3/Gray only for matching actual encoded data. Leave ordinary binary integers/REAL unset.
VariableStringLengthDefault false. Raw MC strings use the specified len; this does not automatically recognize or skip a custom PLC string-length header. Keep false and address the actual body.

For example, D200;len=4;encoding=ASCII uses common register options. D200.4 instead identifies WORD bit 4.

AreaPurpose and numbering
M, SM, S, L, F, VInternal/special/step/latch/annunciator/edge bits, decimal numbers. Special states and inputs are not ordinary writable memory.
X, Y, B, SB, DX, DYInput/output/link/special-link/direct I/O bits, normally hexadecimal. A leading zero in raw X/Y/DX/DY numbers selects octal: X10 = hex 10 = decimal 16; X010 = octal 10 = decimal 8. Do not add zero padding casually.
D, SD, R, Z, ZRData/special/file/index/continuous-file WORDs, decimal user addresses. ZR100 means device 100. Actual file capacity/bank settings come from the PLC project.
W, SWLink/special-link WORDs, hexadecimal: W100 means 0x100.
TN, TS, TCTimer current WORD, contact bit and coil bit, decimal. Current value and completion contact differ; the PLC program defines the time base.
CN, CS, CCCounter current WORD, contact bit and coil bit, decimal. A single UInt16 rule does not describe all CPUs’ long counters.
SN, SS, SCRetentive-timer current/contact/coil spellings accepted by the current raw 3E parser. They are absent from structured-editor candidates. Do not substitute R-frame STN/STS/STC; retain manual addresses and confirm CPU support.

The Binary start field is three bytes, up to FFFFFFH; this is a frame limit, not allocated PLC memory or a guarantee for periodic grouping. Confirm every complete requested range.

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. For this single-element example, set array length to 1.

MC 3E Binary variable address, type and read-only permission

Structured fields of this MC 3E Binary address

Define known PLC values and compare

Use an independent test region monitored online by the engineering tool. Compare the configured address and type with the online PLC value.

PLC valueGateway address/type/countExpected comparison
D100 = decimal 1234 = 04D2HD100, UInt16, 11234; use Int16 only for an actual signed value.
D110=5678H, D111=1234HD110, UInt32, 1, DCBA12345678H = 305419896, consuming two WORDs.
D120–D121 contain REAL 12.5D120, Float, 1, DCBACompare 12.5, not the raw integer pattern.
D130–D135 contain three REALsD130, Float, 3Three elements occupy six WORDs.
M100 is ONM100, Boolean, 1Compare M100, not M100.0; periodic reads may align down to a 16-point boundary.
D140=0008HD140.3, Boolean, 1Bit 3 is true; bit 0 is the least significant bit. D140.16 is invalid.
D200=4241H, D201=4443HD200;len=4;encoding=ASCII, String, 1Low-byte-first text is ABCD. Check original bytes before changing conversion.

A Byte is a view into WORD data, not a separate byte-device address. WORD writes require even byte counts; scalar Byte or odd-length string writes are not arbitrary byte writes. Int64/UInt64/Double occupy four WORDs per element. Decimal uses a generic 16-byte layout, not PLC REAL or decimal display formatting; avoid it without an explicit matching PLC layout.

For numeric WORD reads of bit devices, start at a multiple of 16, e.g. M96 UInt16 represents M96–M111. Do not assume M100 UInt16 is automatically shifted to M100–M115. Grouping can include address gaps; separate sparse ranges to avoid invalid/protected memory.

Debug and write checks

  1. Select Protocol Debug → Read/Write and start with D100 / UInt16 / count 1. Configure the actual TCP channel and known value, then use this panel to run the read.

  2. Compare messages: standard Binary 3E request starts 50 00, response D0 00; normal end code is 0000H. Confirm the response source and retain the complete nonzero end code when checking the CPU manual.

  3. After the value matches engineering monitoring, save the same periodic variable. Check quality/timestamps and an independent PLC value change before adding arrays and bits. A scalar success does not validate a large grouped range.

  4. For an approved writable independent D test, record the original, check RUN-state writing and gateway permission, write 2345, confirm in the PLC, restore and reread. WORD-bit writing performs read WORD → change bit → write whole WORD; it is not atomic and can overwrite concurrent changes. Do not batch Boolean writes across a WORD boundary.

SymptomChecks
Engineering tool connects, TCP failsA separate MC/SLMP connection, active port, HEX/DEC conversion; not a MELSOFT-only connection.
TCP connects, no valid responseBinary/ASCII, 3E/1E, actual IP/port, four routing fields and active PLC parameters.
Some addresses failCPU area support, radix, array WORD span and grouping across invalid boundaries.
UInt16 works, larger values/text swapOriginal WORD/byte values; numeric DataFormat versus text encoding/len and the Binary switch limitation.
Reads work, writes fail/revertPLC RUN writing, region access, gateway permission and program ownership.
Debug bit works, periodic bit differs16-point alignment, group start, mixed bit/numeric variables and array boundaries.

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.

Saved MC 3E Binary variable