Skip to main content

MITSUBISHI MELSEC

Communicates with MITSUBISHI ELECTRIC PLC series using their standard communication protocol (MC protocol).

Supported series: Q / L / iQ-R / iQ-F / FX


Registration form entries

FieldWhat to enterExample
IP addressPLC's IP192.168.0.60
PortMC protocol port5000 (typical for Q/L) / 1500 (typical for iQ-R)
Controller Type (controller-type)PLC series typeQ_L (Q/L series, default) / QnA / IQ_R / A — iQ-F and FX families use Q_L
Read mode (read-mode)single (individual read per tag, default) / grouped (grouped batch read — minimizes round trips)single
Batch merge gap (batch-gap-words)Address gap within which word blocks may be merged in grouped mode16 (default)
String charset (string-charset)String tag encoding (Korean supported)MS949 (default)
iQ-R extended devices (enable-iqr-extended)Whether to use iQ-R extended devices such as LCN/LZ/LF/LSTN/LCC/LSCtrue to enable (disabled by default)

MITSUBISHI PLCs also do not use a username or password. The PLC side must have "MC protocol / TCP / port" enabled (configured in GX Works).

Default port / Controller Type by series

SeriesCommon portcontroller-type
Q / L5000 or 1029Q_L
QnA(PLC configured value)QnA
iQ-R1500IQ_R
iQ-F1500Q_L (3E frame compatible)
A(PLC configured value)A
FX(PLC configured value)Q_L (3E frame compatible)
The PLC-side setting is the authoritative port

On MITSUBISHI equipment, the port is assigned freely to the Ethernet module in GX Works / GX Developer. The table above lists only commonly used defaults; check the value actually in use with the PLC engineer or under [Ethernet Parameters] in GX Works.


PLC address notation for tags

MITSUBISHI PLC memory areas and their short notation:

NotationAreaNotes
D100Data Register 100Most common, 16-bit
M100Internal Relay 1001 bit
X100Input X100Input bit
Y100Output Y100Output bit
B0Link Relay 01 bit
W100Link Register 10016-bit
R100File Register 10016-bit
T100Timer
C100Counter

Reading 32-bit / 64-bit values as a pair

A single D100 location is 16-bit, so storing a 32-bit integer or float uses two locations (D100 + D101) together. In the gateway, specify the width in the [Format modifier] field.

Value in the PLCData typeFormat modifierPLC address example
Bit (M, X, Y)Boolean(leave empty)M100, X100, Y100
16-bit integerInteger(leave empty)D100
16-bit unsignedIntegerUID100
32-bit integerIntegerDWD100 (uses D100–D101)
32-bit unsignedIntegerUDWD100
32-bit float (most common float type)FloatREALD200
64-bit floatDoubleLREALD300
String of N words (= 2N characters)StringSTR[N]D500 (uses D500–D515)

Common problems and fixes

Symptom / messagePossible causeFix
"Connection refused"MC protocol disabled on the PLC sideGX Works → PLC parameters → built-in Ethernet → enable MC protocol / TCP / port
"Wrong device code"Device type not supportedCheck that controller-type matches the PLC series (codes differ between Q and iQ-R)
32-bit values look wrongWidth not setSpecify DW (integer) / REAL (float) in the format modifier
All tags show 0Mismatch in the PLC-side Ethernet/station settingsThe gateway communicates using the default frame (direct local station) — check the Ethernet parameters (port/protocol) in GX Works
Korean strings appear garbled as ?String charset mismatchMatch the string-charset option to the PLC/HMI code page (default MS949)

Frequently used examples

Registering run status, counter, and pressure together

Tag namePLC addressData typeFormat modifier
Pump runningM100Boolean(leave empty)
Production counterD100Integer(leave empty)
Pressure (Pa)D200FloatREAL
Cumulative run timeD102IntegerDW

More detailed examples / automated registration

See the MELSEC examples in Advanced — REST API.