On this page
MC 3E ASCII
This plugin accesses PLC devices through MC 3E ASCII frames. ASCII describes the wire representation, not the business variable type: a hexadecimal D100 response still becomes UInt16. A PLC configured for Binary does not convert automatically; select MC 3E Binary or coordinate a PLC data-code change.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| MELSEC iQ-F: FX5U, FX5UC, FX5UJ, FX5S | Enable 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. |
Configure the PLC interface
Applicable targets include FX5U/FX5UC/FX5UJ/FX5S with SLMP 3E, QnU built-in Ethernet QCPUs, built-in Ethernet LCPUs and matching QJ/LJ Ethernet modules. Check the exact CPU/module and current code; not every FX or MC-compatible device supports 3E ASCII. Use MC R Binary for its extended R areas. An ordinary FX serial programming port does not follow this setup.
FX5 / GX Works3
- Open the correct CPU project and select Parameter → module → Module Parameter → Ethernet Port → Basic Settings → Own Node Settings. Set the actual IP/mask/routes and choose Communication Data Code = ASCII. This original image from SH-082625ENG-F, section 6.2 retains Binary to identify the setting location; change it to ASCII for this plugin.

- Open External Device Configuration → Detailed Setting. Drag SLMP Connection Module, select TCP and set a PLC listening port such as 2000. The gateway destination is that PLC’s actual IP and port 2000, not a MELSOFT or no-protocol connection.

The FX5 port range here is decimal 1–5548 and 5570–65534; 5549–5569 are reserved. UDP also requires the actual peer IP and matching gateway local binding/return path. Write and activate the parameters as instructed, then confirm online. An offline edit alone does not open the service. Passive SLMP collection does not require SP.SLMPSND in the PLC program.
QnU built-in Ethernet / GX Works2
- Open Parameter → PLC Parameter → Built-in Ethernet Port Setting. Configure the actual IP/mask and select Communication Data Code = ASCII Code. The following original dialog from SH-080813CHN-C, printed page 35, retains Binary to show the choice location; change that selection to ASCII Code for this plugin. Read-only collection does not require enabling RUN-state writing.

- In Open Setting, configure TCP + MC Protocol and the host station port. The original page-36 input format is HEX:
0401His gateway decimal port 1025; decimal 2000 is07D0H. Check DEC/HEX before copying numbers.

This QnU edition permits 0401H–1387H and 1392H–FFFEH, reserving 1388H–1391H, unlike FX5. Write and activate the PLC parameters before reconnecting. Use the matching LCPU project for L. QJ71E71-100/LJ71E71-100 require the actual module’s operation/open settings, not merely the CPU’s separate built-in port.
Connect the appropriate Ethernet interfaces and use reachable network settings, e.g. PLC 192.168.3.250/24, gateway 192.168.3.10/24. A data-code change can affect existing MC clients; confirm their expected code first.
Gateway channel and all device properties
Under Development Configuration → Collection Configuration, create a TCP Client targeting the PLC IP/open MC port. Bind a device using MC 3E ASCII, start with an observable interval such as 1000 ms and enable both. See Collection Configuration for shared fields.
UDP, TCP Server and Serial Port are also selectable only for peers/transparent links that actually support those transports. Normal passive PLC Ethernet access uses TCP Client. The serial choice does not imply arbitrary FX programming-protocol support.
Set the actual endpoint and complete the PLC settings above, then enable the channel and device.


| Property | Meaning, default and constraints |
|---|---|
| NetWorkID | Default 0 for the connected station. For remote access use the actual target network; ordinary remote numbers are 1–239. Byte storage 0–255 does not make all values valid routes. It is not an IP subnet number. |
| PLCID | Default 255 (FFH), paired with network 0 for the connected station. For remote access it is the network-module station, not an IP suffix. |
| IOModuleID | Default 1023 (03FFH), normally the connected station’s control CPU. Enter decimal. Multiple CPU values 03E0H–03E3H equal 992–995 and require a matching system, not a guessed rack slot. |
| IOModuleStation | Default 0 for ordinary CPU access. Multidrop routing uses the actual module station; it is a different routing level from PLCID. |
| MaxPack | Default 256, a contiguous span within a collection group/interval/area, not 256 variables or ASCII characters. One WORD uses four wire characters. Fit each variable and the valid PLC range; bit polling has the limitation below. |
| Timeout | Default 3000 ms for gateway response waiting. The current ASCII PLC monitoring timer is fixed at 0010H = 16×250 ms = 4 s, independent of this setting. A 3000 ms gateway wait can expire first. TCP connection timeout is separate. |
| SendDelayTime | Default 0 ms before each request. Added delay extends the complete collection cycle; it is not a serial character interval. |
| RetryCount | Default 3. Retries cannot correct invalid addresses, a data-code mismatch or write protection. |
| DutyCycle | Default 3, minimum 1; arrange a read after every n writes under continuous writing. |
| WritePriority | Default false. Enabling can cancel reads to prioritize writes and affect refresh. |
| DataFormat | Default DCBA. ASCII WORDs are first decoded into little-endian raw bytes, then converted using this order. ABCD/BADC/CDAB/DCBA do not change the wire data code. Check a known two-WORD pattern. |
| IsStringReverseByteWord | Default false, applied by this ASCII plugin. Swaps the two bytes inside each string WORD, not the entire string, numeric values or ASCII protocol characters. Establish the actual PLC storage first. |
Ordinary direct access uses 0 / 255 / 1023 / 0. See MC Reference, sections 5.3 and 6.2 for monitoring and route definitions. There are no additional per-variable station/plugin properties.
Open Plugin Properties and scroll down to check runtime and conversion settings as well as the protocol fields.


Address fields and numbering
| Field | Configuration |
|---|---|
| Area | Choose an area supported by the actual CPU; candidates are not the entire MC/R family device list. |
| Offset | Numeric device location, not bytes. D/100 produces D100; W/256 produces W100. Check the generated address instead of entering hexadecimal text as a decimal number. |
| Bit | WORD Boolean syntax requires .0–.15; bit areas have no extra suffix. The generic control’s 0–31 range does not override 3E’s 0–15 limit. Valid syntax does not establish correct ASCII Boolean conversion below. |
| DataFormat override | Empty inherits device DCBA; affects this variable’s conversion only. |
| Encoding override | Default UTF-8; choose ASCII when that is the actual D-memory text encoding. ASCII protocol does not imply ASCII string content. |
| StringLength | len= is the raw string slot capacity in bytes, with no default. Specify it for periodic strings. len=4 uses two WORDs; array count 1 means one string. |
| BCD override | Use C8421/C5421/C2421/C3/Gray only for a corresponding actual encoding. Leave ordinary binary values unset. |
| VariableStringLength | Default false. Raw D memory has no universal string header; this does not automatically locate/skip a custom header. Keep false and select the body address/len. |
See common register options. D200;len=4;encoding=ASCII specifies text capacity; D200.4 specifies WORD bit 4.
| Area | Rule |
|---|---|
| Decimal bit areas M, SM, S, L, F, V, TS, TC, CS, CC | E.g. M100, TS2 and CS3. Contacts/coils differ from current-value WORDs. Readability does not establish writability. |
| Hexadecimal bit areas X, Y, B, SB, DX, DY | X10 means 0x10; leading zero in raw X/Y/DX/DY selects octal, so X010 means decimal 8. Do not add arbitrary zero padding. |
| Decimal WORD areas D, SD, R, Z, ZR, TN, CN | D100 and user-entered ZR100 both mean number 100. The driver converts ZR to its wire radix; do not convert twice. PLC file/capacity settings still apply. |
| Hexadecimal WORD areas W, SW | W100 means 0x100; one WORD has 16 bits. |
| Manual SN, SS, SC | Current 3E retentive-timer spellings, absent from structured candidates. Do not substitute R-frame STN/STS/STC; retain manual addresses and confirm CPU support. |
The ASCII start field has six characters: decimal areas up to 999999, hexadecimal areas and wire ZR up to FFFFFFH. These frame bounds do not establish PLC memory allocation, accepted command sizes or valid periodic grouping.
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.


WORD, array and string examples
Monitor an independent PLC D test region online before configuring the gateway. Preset the values below and compare the same addresses and types in the gateway.
| PLC value | Gateway configuration | Interpretation |
|---|---|---|
| D100=04D2H = decimal 1234 | D100, UInt16, count 1 | 1234; wire characters 04D2 are not a business String value. |
| D110=5678H, D111=1234H | D110, UInt32, 1, DCBA | 12345678H = 305419896, occupying two WORDs. |
| D120–D121 contain REAL 12.5 | D120, Float, 1 | Compare the engineering tool’s floating-point 12.5. |
| D130–D135 contain three REALs | D130, Float, 3 | Six WORDs, 24 hexadecimal wire characters, decoded to 12 bytes. |
| D200=4241H, D201=4443H | D200;len=4;encoding=ASCII, String, 1, string reversal false | Low-byte-first content is ABCD. Enable per-WORD string reversal only after confirming opposite PLC storage. |
Int16/UInt16 consume one WORD; Int32/UInt32/Float two; Int64/UInt64/Double four. Byte is not a separate byte-device address. WORD writes require even byte counts; scalar Byte and odd-byte strings are rejected. Decimal is a generic 16-byte layout, not PLC REAL or a decimal-place setting; avoid it without an explicit matching definition.
Current ASCII bit-access boundary
Raw bit syntax includes M100 and X10; WORD internal bits use D140.3. ASCII bit responses decode each point into a byte, while periodic grouping still uses shared WORD/bit indexing. WORD-internal Boolean conversion also cannot simply reuse Binary packed-bit assumptions. A successful single M100 debug read does not validate periodic group alignment, and saving D140.3 does not establish a correct read value.
Prefer MC 3E Binary for periodic Booleans. When ASCII is mandatory, first collect the containing WORD as UInt16 and compare it online, then apply a bit mask: for D140=0008H, (value & 8) != 0 represents bit 3. Testing whether a whole byte is nonzero is not an equivalent bit test.
Debugging and writing
-
Enable the channel/device and open Protocol Debug → Read/Write. Start with D100 / UInt16 / count 1. Configure the actual TCP target and test value, then enter the read parameters in this panel.
-
Inspect messages: ASCII requests begin
5000, responsesD000; read command0401, WORD subcommand0000, bit subcommand0001, normal end code0000. A hexadecimal-byte log represents5000as35 30 30 30, not Binary50 00. -
Once a scalar matches the PLC, save the same periodic variable, change an independent PLC test value and check quality/timestamps before expanding to arrays. Check complete end codes, address gaps, response sizes, uppercase hexadecimal fields and frame lengths when requests fail.
-
For an approved writable D test, record the original, check RUN-state permission and program ownership, write 2345, confirm in the PLC, restore and reread. WORD-bit writing performs a read/modify/whole-WORD write, is not atomic, and cannot cross the current 16-bit boundary. It can overwrite concurrent changes. Given the read boundary above, do not use gateway Boolean readback alone to confirm a bit write.
| Symptom | Checks |
|---|---|
| Engineering tool connects, TCP fails | Active MC/SLMP connection, actual interface IP, HEX/DEC port and downloaded parameters. |
| TCP connects but times out | ASCII data code, 3E generation, route 0/255/1023/0; distinguish gateway Timeout from the fixed 4 s monitor. |
| Numbers correct, text swapped | Actual WORD bytes, encoding, len and per-WORD string reversal. Numeric DataFormat is not text encoding. |
| D values correct, bits wrong | Current ASCII layout boundary; compare a UInt16 mask or use Binary before increasing MaxPack. |
| Scalar works, arrays/groups fail | Complete range, typed WORD count, wire-character length and collection span. |
| Reads work, writes fail | PLC RUN writing, region access, even-byte requirement and gateway permission; preserve the end code. |
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.
