Skip to Content
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 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.

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

  1. 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.

FX5 IP and Communication Data Code location; the original Binary selection must be changed to ASCII

  1. 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.

GX Works3 SLMP Connection Module, TCP and PLC listening port

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

  1. 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.

QnU ASCII/Binary selection location; the manufacturer example currently selects Binary

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

QnU MC Protocol connection; HEX 0401 means decimal port 1025

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.

Dedicated MC 3E ASCII channel settings

Select MC 3E ASCII and associate its channel

PropertyMeaning, default and constraints
NetWorkIDDefault 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.
PLCIDDefault 255 (FFH), paired with network 0 for the connected station. For remote access it is the network-module station, not an IP suffix.
IOModuleIDDefault 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.
IOModuleStationDefault 0 for ordinary CPU access. Multidrop routing uses the actual module station; it is a different routing level from PLCID.
MaxPackDefault 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.
TimeoutDefault 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.
SendDelayTimeDefault 0 ms before each request. Added delay extends the complete collection cycle; it is not a serial character interval.
RetryCountDefault 3. Retries cannot correct invalid addresses, a data-code mismatch or write protection.
DutyCycleDefault 3, minimum 1; arrange a read after every n writes under continuous writing.
WritePriorityDefault false. Enabling can cancel reads to prioritize writes and affect refresh.
DataFormatDefault 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.
IsStringReverseByteWordDefault 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.

MC 3E ASCII protocol and packing properties

MC 3E ASCII runtime and conversion properties

Address fields and numbering

FieldConfiguration
AreaChoose an area supported by the actual CPU; candidates are not the entire MC/R family device list.
OffsetNumeric 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.
BitWORD 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 overrideEmpty inherits device DCBA; affects this variable’s conversion only.
Encoding overrideDefault UTF-8; choose ASCII when that is the actual D-memory text encoding. ASCII protocol does not imply ASCII string content.
StringLengthlen= 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 overrideUse C8421/C5421/C2421/C3/Gray only for a corresponding actual encoding. Leave ordinary binary values unset.
VariableStringLengthDefault 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.

AreaRule
Decimal bit areas M, SM, S, L, F, V, TS, TC, CS, CCE.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, DYX10 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, CND100 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, SWW100 means 0x100; one WORD has 16 bits.
Manual SN, SS, SCCurrent 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.

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

Structured fields of this MC 3E ASCII address

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 valueGateway configurationInterpretation
D100=04D2H = decimal 1234D100, UInt16, count 11234; wire characters 04D2 are not a business String value.
D110=5678H, D111=1234HD110, UInt32, 1, DCBA12345678H = 305419896, occupying two WORDs.
D120–D121 contain REAL 12.5D120, Float, 1Compare the engineering tool’s floating-point 12.5.
D130–D135 contain three REALsD130, Float, 3Six WORDs, 24 hexadecimal wire characters, decoded to 12 bytes.
D200=4241H, D201=4443HD200;len=4;encoding=ASCII, String, 1, string reversal falseLow-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

  1. 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.

  2. Inspect messages: ASCII requests begin 5000, responses D000; read command 0401, WORD subcommand 0000, bit subcommand 0001, normal end code 0000. A hexadecimal-byte log represents 5000 as 35 30 30 30, not Binary 50 00.

  3. 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.

  4. 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.

SymptomChecks
Engineering tool connects, TCP failsActive MC/SLMP connection, actual interface IP, HEX/DEC port and downloaded parameters.
TCP connects but times outASCII data code, 3E generation, route 0/255/1023/0; distinguish gateway Timeout from the fixed 4 s monitor.
Numbers correct, text swappedActual WORD bytes, encoding, len and per-WORD string reversal. Numeric DataFormat is not text encoding.
D values correct, bits wrongCurrent ASCII layout boundary; compare a UInt16 mask or use Binary before increasing MaxPack.
Scalar works, arrays/groups failComplete range, typed WORD count, wire-character length and collection span.
Reads work, writes failPLC 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.

Saved MC 3E ASCII variable