FX5U PLC Manual
FX5U PLC Manual
Depending on the circumstances, procedures indicated by [ CAUTION] may also cause severe injury.
It is important to follow all precautions for personal safety.
Store this manual in a safe place so that it can be read whenever necessary. Always forward it to the end user.
1
[DESIGN PRECAUTIONS]
WARNING
● Make sure to set up the following safety circuits outside the PLC to ensure safe system operation
even during external power supply problems or PLC failure. Otherwise, malfunctions may cause
serious accidents.
- Note that when the CPU module detects an error, such as a watchdog timer error, during self-
diagnosis, all outputs are turned off. Also, when an error that cannot be detected by the CPU
module occurs in an input/output control block, output control may be disabled. External circuits
and mechanisms should be designed to ensure safe machinery operation in such a case.
● Construct an interlock circuit in the program so that the whole system always operates on the safe
side before executing the control (for data change) of the PLC in operation. Read the manual
thoroughly and ensure complete safety before executing other controls (for program change,
parameter change, forcible output and operation status change) to the PLC in operation. Otherwise,
the machine may be damaged and accidents may occur due to erroneous operations.
● For the operating status of each station after a communication failure of the network, refer to relevant
manuals for the network. Incorrect output or malfunction may result in an accident.
● Do not write any data to the "system area" of the buffer memory in an intelligent function module.
Doing so may cause malfunction of the programmable controller system.
● When executing control (data change) to a running other station programmable controller by
connecting the external device to the SLMP-compatible device or MC protocol-compatible device,
configure interlock circuits in the program of the other station programmable controller to ensure that
the entire system operates safely at any time.
For other controls to a running other station programmable controller (such as program modification or
operating status change), read the relevant manuals carefully and ensure the safety before the
operation. Especially, in the case of a control from an external device to a remote other station
programmable controller, immediate action cannot be taken for a problem on the programmable
controller due to communication failure.
Determine the handling method as a system when communication failure occurs along with
configuration of interlock circuit on other station PLC program, by considering external equipment and
other station PLC.
● Do not write any data into the "system area" or "write protect area" of the buffer memory in the SLMP-
compatible device or MC protocol-compatible device or intelligent function module. Also, do not output
(ON) any "use prohibited" signals among the signals which are output to the SLMP-compatible device
or MC protocol-compatible device and intelligent function device. Executing data writing to the
"system area" or "write protect area", or outputting "use prohibited" signals may cause malfunction of
the programmable controller alarm.
● Do not write any data to the "system area" and "write-protect area" of the buffer memory in the
intelligent function module. Executing data writing to the "system area" or "write-protect area" may
cause malfunction of the programmable controller alarm. For the "system area" or "write protect area",
refer to Page 872 List of Buffer Memory Applications and Assignments.
● If a communication cable is disconnected, the network may be unstable, resulting in a communication
failure of multiple stations. Construct an interlock circuit in the program so that the system always
operates on the safe side even if communications fail. Incorrect output or malfunction may result in an
accident.
2
[SECURITY PRECAUTIONS]
WARNING
● To maintain the security (confidentiality, integrity, and availability) of the programmable controller and
the system against unauthorized access, denial-of-service (DoS) attacks, computer viruses, and other
cyberattacks from unreliable networks and devices via the network, take appropriate measures such
as firewalls, virtual private networks (VPNs), and antivirus solutions.
[INSTALLATION PRECAUTIONS]
CAUTION
● Connect/disconnect the Ethernet cable by holding the connector and keeping it straight. If the cable
connected to the module is pulled, the module or cable may be damaged, or malfunction may be
caused by cable contact failure.
[WIRING PRECAUTIONS]
WARNING
● Make sure to cut off all phases of the power supply externally before attempting installation or wiring
work. Failure to do so may cause electric shock or damage to the product.
● Make sure to attach the terminal cover, provided as an accessory, before turning on the power or
initiating operation after installation or wiring work. Failure to do so may cause electric shock.
● The temperature rating of the cable should be 80 or more.
● Make sure to wire the screw terminal block in accordance with the following precautions. Failure to do
so may cause electric shock, equipment failures, a short-circuit, wire breakage, malfunctions, or
damage to the product.
- The disposal size of the cable end should follow the dimensions described in the manual.
- Tightening torque should follow the specifications in the manual.
- Tighten the screws using a Phillips-head screwdriver No.2 (shaft diameter 6 mm or less). Make
sure that the screwdriver does not touch the partition part of the terminal block.
● Make sure to properly wire to the terminal block (European type) in accordance with the following
precautions. Failure to do so may cause electric shock, equipment failures, a short-circuit, wire
breakage, malfunctions, or damage to the product.
- The disposal size of the cable end should follow the dimensions described in the manual.
- Tightening torque should follow the specifications in the manual.
- Twist the ends of stranded wires and make sure that there are no loose wires.
- Do not solder-plate the electric wire ends.
- Do not connect more than the specified number of wires or electric wires of unspecified size.
- Fix the electric wires so that neither the terminal block nor the connected parts are directly
stressed.
3
[WIRING PRECAUTIONS]
CAUTION
● Install module so that excessive force will not be applied to terminal blocks, power connectors, I/O
connectors, communication connectors, or communication cables. Failure to do so may result in wire
damage/breakage or PLC failure.
● Make sure to observe the following precautions in order to prevent any damage to the machinery or
accidents due to malfunction of the PLC caused by abnormal data written to the PLC due to the
effects of noise:
- Do not bundle the power line, control line and communication cables together with or lay them
close to the main circuit, high-voltage line, load line or power line. As a guideline, lay the power
line, control line and communication cables at least 100 mm away from the main circuit, high-
voltage line, load line or power line.
- Ground the shield of the shield wire or shielded cable at one point on the PLC. However, do not
use common grounding with heavy electrical systems.
4
[STARTUP AND MAINTENANCE PRECAUTIONS]
CAUTION
● When connecting an external device with a CPU module or intelligent function module to modify data
of a running programmable controller, configure an interlock circuit in the program to ensure that the
entire system will always operate safely. Read the manual thoroughly and ensure complete safety
before executing other controls (for program change, parameter change, forcible output and operation
status change) to the PLC in operation. Improper operation may damage machines or cause
accidents.
● Especially, when a remote programmable controller is controlled by an external device, immediate
action cannot be taken if a problem occurs in the programmable controller due to a communication
failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions
to be taken between the external device and CPU module in case of a communication failure.
● Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions.
For repair, contact your local Mitsubishi Electric representative.
● After the first use of the SD memory card, do not insert/remove the memory card more than 500 times.
500 times or more may cause malfunction.
● Turn off the power to the PLC before connecting or disconnecting any extension cable. Failure to do
so may cause equipment failures or malfunctions.
● Turn off the power to the PLC before attaching or detaching the following devices. Failure to do so
may cause equipment failures or malfunctions.
- Peripheral devices, expansion board, expansion adapter, and connector conversion adapter
- Extension modules, bus conversion module and connector conversion module
- Battery
● Read relevant manuals carefully and ensure the safety before performing online operations (operation
status change) with peripheral devices connected to the running SLMP-compatible device or MC
protocol-compatible device or CPU modules of other stations. Improper operation may damage
machines or cause accidents.
[OPERATION PRECAUTIONS]
CAUTION
● Construct an interlock circuit in the program so that the whole system always operates on the safe
side before executing the control (for data change) of the PLC in operation. Read the manual
thoroughly and ensure complete safety before executing other controls (for program change,
parameter change, forcible output and operation status change) to the PLC in operation. Otherwise,
the machine may be damaged and accidents may occur by erroneous operations.
● Do not power off the CPU module or reset the CPU module while the setting values in the buffer
memory are being written to the flash ROM in the intelligent function module. Doing so will make the
data in the flash ROM card undefined. The values need to be set in the buffer memory and written to
the flash ROM again. Doing so can cause malfunction or failure of the module.
● Note that the whole system may not be reset by the RUN/STOP/RESET switch when the CPU module
or intelligent function module detects an error, such as a watchdog timer error, during self-diagnosis.
In such cases, turn the power off and on again.
5
INTRODUCTION
This manual contains text, diagrams and explanations which will guide the reader in the correct installation, safe use and
operation of the Ethernet communication function, serial communication, MODBUS communication, SLMP function, and MC
protocol of the CPU module and Ethernet module.
It should be read and understood before attempting to install or use the unit.
Store this manual in a safe place so that you can read it whenever necessary. Always forward it to the end user.
Note
• If in doubt at any stage during the installation of the product, always consult a professional electrical engineer who is
qualified and trained in the local and national standards. If in doubt about the operation or use, please consult the nearest
Mitsubishi Electric representative.
• Mitsubishi Electric will not accept responsibility for actual use of the product based on these illustrative examples.
• This manual content, specification etc. may be changed, without a notice, for improvement.
• The information in this manual has been carefully checked and is believed to be accurate; however, if you notice a doubtful
point, an error, etc., please contact the nearest Mitsubishi Electric representative. When doing so, please provide the
manual number given at the end of this manual.
6
CONTENTS
SAFETY PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6
RELEVANT MANUALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
TERMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
GENERIC TERMS AND ABBREVIATIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
CONTENTS
CHAPTER 1 OUTLINE 24
CHAPTER 2 SPECIFICATIONS 26
2.1 Communication Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.2 Connection Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
7
6.4 Data Communication Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
6.5 Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
8
CHAPTER 11 TIME SETTING FUNCTION (SNTP CLIENT) 203
CONTENTS
Historical graph display (WSHstgrp) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Write button (WSWrtBtn) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Logout button (WSLogoutBtn) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
12.2 CGI Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Data specified for CGI object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Device read CGI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Device write CGI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227
12.3 Error Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
9
Termination resistor setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Connection diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
16.6 Communication Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
16.7 Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Communication setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Contents of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
Communication test. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Creating programs for the master station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Creating programs for the local stations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
Cautions on program creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
16.8 Related Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
List of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Details of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
10
Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
Termination resistor setting (RS-485) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 317
Connection diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
18.6 Communication Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
18.7 MC Protocol Command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Command list. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
Applicable device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323
18.8 Related Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
CONTENTS
List of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
Details of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
11
CHAPTER 20 NON-PROTOCOL COMMUNICATION 411
20.1 Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
20.2 Procedure Before Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
20.3 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
20.4 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
20.5 Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
Wiring procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
Termination resistor setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417
Connection diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 418
Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
20.6 Communication Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420
20.7 Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
Serial data transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423
Operation of control line (RS-232C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
Precautions for program creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
Example of printing using RS2 instruction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
20.8 Caution on Write During RUN, When RS2 Instruction Is Driven . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
20.9 Related Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
List of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
Details of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
12
Details of related devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
CONTENTS
23.1 Communication Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 502
13
For RS-232C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
For RS-485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
Connecting cables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
Termination resistor setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 530
31.3 Connection Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
Connection diagram for RS-232C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
Connection diagram for RS-485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
31.4 Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532
PART 5 SLMP
14
Message format and control procedure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Application data specification items. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
Transfer data in character area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
Character areas. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
CONTENTS
Device range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611
Device Read (Batch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614
Device Write (Batch) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 618
Device Read Random . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
Device Write Random . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627
Device Read Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
Device Write Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642
38.3 Remote Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
Before the remote operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
Remote RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
Remote STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
Remote PAUSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
Remote latch clear. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
Remote RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
Processor type read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656
38.4 Clear Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
38.5 Self-Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
38.6 Remote Password Unlock or Lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Unlock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664
PART 6 MC PROTOCOL
15
CHAPTER 41 MC PROTOCOL DATA COMMUNICATION 686
41.1 Type and Application of the Data Communication Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686
41.2 Concept of Control Procedure of MC Protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687
41.3 Access Timing of the CPU Module Side . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 688
41.4 Transfer Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 689
41.5 CPU Module Processing Time of MC Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 691
16
43.3 Remote Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 758
Before the remote operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 758
Remote RUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 758
Remote STOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 760
Remote PAUSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 760
Remote latch clear. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 761
Remote RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762
Read CPU model name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763
43.4 Clear Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 766
CONTENTS
43.5 Loopback Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767
PART 7 TROUBLESHOOTING
17
CHAPTER 46 TROUBLESHOOTING BY SYMPTOM 805
46.1 Troubleshooting Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
Error during communication between Ethernet-equipped module and other device. . . . . . . . . . . . . . . . . . . . . 805
Errors during SLMP communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807
Errors during file transfer function (FTP server) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 808
Errors during file transfer function (FTP client) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809
46.2 IP Address Duplication Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
46.3 When the Simple CPU Communication Function Is Used. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811
46.4 When Using the File Transfer Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 813
46.5 When Using the Inverter Communication Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 814
46.6 MODBUS/TCP Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 814
APPENDICES 859
Appendix 1 List of Special Device Applications and Assignments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 859
Appendix 2 List of Buffer Memory Applications and Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 872
Appendix 3 Port Numbers Used by Ethernet-equipped Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 875
Appendix 4 Combined Use of Serial Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 876
Appendix 5 Operation Image and Data Structure of Predefined Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 877
Operation image of each communication type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 877
Verification operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 881
Data examples of Length. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 882
Data examples of Non-conversion Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 884
Data examples of Conversion Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 885
Data examples of Check Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 889
Data examples of Non-verified reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895
Appendix 6 ASCII Code Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896
Appendix 7 Frame Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897
Procedure for generating of CRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 897
MODBUS protocol data unit formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 899
Appendix 8 Initial Values of MODBUS Device Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 909
18
Appendix 9 Device Memory Extension Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 911
Access to module access device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 911
Access with indirect specification of the device No. by using index register or long index register. . . . . . . . . . 914
Access with indirect specification of the device No. by using the values stored in word device . . . . . . . . . . . . 919
Appendix 10Command Comparison between MC Protocol and SLMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 922
Appendix 11 Device Memory Extension Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 923
Access to module access device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 923
Access with indirect specification of the device No. by using index register or long index register. . . . . . . . . . 926
Access with indirect specification of the device No. by using the values stored in word device . . . . . . . . . . . . 931
CONTENTS
Appendix 12Software Licenses and Copyrights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 934
Appendix 13Added and Changed Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 935
INDEX 940
REVISIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .942
WARRANTY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .943
TRADEMARKS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .944
19
RELEVANT MANUALS
Manual name <manual number> Description
MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Details of hardware of the CPU module, including I/O specifications, wiring,
<SH-082452ENG> installation, and maintenance.
MELSEC iQ-F FX5 User's Manual (Application) Describes the basic knowledge required for program design, functions of
<JY997D55401> the CPU module, devices/labels, and parameters.
MELSEC iQ-F FX5 Programming Manual (Program Design) Describes the specifications of ladder, ST, FBD/LD, and SFC programs, and
<JY997D55701> labels.
MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Describes the specifications of instructions and functions that can be used
Function Blocks) in programs.
<JY997D55801>
MELSEC iQ-F FX5 User's Manual (Communication) Describes the communication function of the built-in CPU module and the
<SH-082625ENG> (this manual) Ethernet module
MELSEC iQ-F FX5-ENET User's Manual Describes the FX5-ENET.
<SH-082026ENG>
MELSEC iQ-F FX5-ENET/IP User's Manual Describes the FX5-ENET/IP.
<SH-082027ENG>
MELSEC iQ-F FX5 User's Manual (BACnet) Describes the BACnet functions of the Ethernet module.
<SH-082218ENG>
GX Works3 Operating Manual Describes the system configuration, parameter settings, and online
<SH-081215ENG> operations of GX Works3.
TERMS
Unless otherwise specified, this manual uses the following terms.
Term Description
Engineering tool The product name of the software package for the MELSEC programmable controllers
Connected station (host station) Connected station (host station) indicates a station directly connected to an external device.
Other station indicates a station connected to the connected station (host station) on the network.
Other station
Relay station A station that includes two or more network modules. Transient transmission is performed through this
station to stations on other networks.
Data logging file The file which stored data collected by data logging function.
Built-in RS-485 port Built-in RS-485 port of the CPU module
Buffer memory Memory areas of intelligent function modules and SLMP-compatible devices for storing setting values and
monitor values.
20
Generic term/abbreviation Description
FX5UC CPU module A generic term for FX5UC-32MT/D, FX5UC-32MT/DSS, FX5UC-64MT/D, FX5UC-64MT/DSS, FX5UC-
96MT/D, FX5UC-96MT/DSS, FX5UC-32MT/DS-TS, FX5UC-32MT/DSS-TS, and FX5UC-32MR/DS-TS
FX5UJ CPU module A generic term for FX5UJ-24MR/ES, FX5UJ-24MT/ES, FX5UJ-24MT/ESS, FX5UJ-24MR/DS, FX5UJ-
24MT/DS, FX5UJ-24MT/DSS, FX5UJ-40MR/ES, FX5UJ-40MT/ES, FX5UJ-40MT/ESS, FX5UJ-40MR/DS,
FX5UJ-40MT/DS, FX5UJ-40MT/DSS, FX5UJ-60MR/ES, FX5UJ-60MT/ES, FX5UJ-60MT/ESS, FX5UJ-
60MR/DS, FX5UJ-60MT/DS, and FX5UJ-60MT/DSS
GOT A generic term for Mitsubishi Electric Graphic Operation Terminal GOT1000 and GOT2000 series
GX Works3 The product name of the software package, SWnDND-GXW3, for the MELSEC programmable controllers
(The 'n' represents a version.)
Device supporting iQSS A generic term for a device which supports iQ Sensor Solution
For details on iQ Sensor Solution, refer to the following.
iQ Sensor Solution Reference Manual
MC protocol An abbreviation of the MELSEC communication protocol.
A protocol for accessing MC protocol-compatible devices and PLCs that are connected to MC protocol-
compatible devices from external devices.
MC protocol-compatible device A generic term for devices that can receive MC protocol messages.
MODBUS/TCP A generic term for the protocol designed to use MODBUS protocol messages on a TCP/IP network.
OPEN instruction A generic term for SP.SOCOPEN instruction and GP.OPEN instruction
SD memory card A generic term for NZ1MEM-2GBSD, NZ1MEM-4GBSD, NZ1MEM-8GBSD, NZ1MEM-16GBSD, L1MEM-
2GBSD, and L1MEM-4GBSD SD memory cards.
An abbreviation for Secure Digital Memory Card. Device that stores data using flash memory.
SLMP An abbreviation for Seamless Message Protocol.
A protocol for accessing SLMP-compatible devices and PLCs that are connected to SLMP-compatible
devices from external devices.
SLMP-compatible device A generic term for devices that can receive SLMP messages.
SOCRCV instruction A generic term for SP.SOCRCV instruction and GP.SOCRCV instruction
SOCSND instruction A generic term for SP.SOCSND instruction and GP.SOCSND instruction
TCP An abbreviation for Transmission Control Protocol.
In communications among programmable controllers and networked devices, this protocol establishes a
connection between port numbers of the two devices to perform reliable data communications.
UDP An abbreviation for User Datagram Protocol.
This is a connectionless protocol and thereby its speed is faster than that of TCP, but less reliable. (Data
may be lost or not be received in correct order.)
External device A generic term for personal computers connected by Ethernet for data communication and other Ethernet-
equipped modules.
Intelligent function module A generic term for modules that have functions other than input and output
Expansion adapter A generic term for adapter for FX5 CPU module
Expansion board A generic term for boards for FX5S CPU module, FX5UJ CPU module, and FX5U CPU module
Peripheral device A generic term for engineering tools and GOTs
Serial port A generic term for CPU module built-in RS-485 port (CH1), communication board (CH2), communication
adapter 1 (CH3), and communication adapter 2 (CH4) (4 ports)
Extension module A generic term for FX5 extension modules, FX3 extension modules, Extension modules (extension cable
type) and Extension modules (extension connector type)
Communication adapter A generic term for FX5-232ADP and FX5-485ADP
Communication board A generic term for FX5-232-BD, FX5-485-BD, and FX5-422-BD-GOT
Battery A different name for FX3U-32BL
Module access device A generic term for the module access devices of the MELSEC iQ-R series/MELSEC iQ-F series and
intelligent function module devices of the MELSEC-Q/L series
*1 Area-specific model
21
MEMO
22
PART 1
PART 1 Ethernet
COMMUNICATION
1 OUTLINE
2 SPECIFICATIONS
3 LIST OF FUNCTIONS
6 SLMP FUNCTION
13 SECURITY FUNCTION
23
1 OUTLINE
The following describes the Ethernet communication function of CPU module and Ethernet module.
Socket communication
The socket communication function allows data communication with the external devices on Ethernet by TCP or UDP using
the socket communication instructions.
MODBUS/TCP communication
By using sequence program, MODBUS devices of the external devices connected through Ethernet can be read/written.
For details, refer to the following.
Page 500 OUTLINE
1 OUTLINE
24
Web server function
Monitors and diagnoses the CPU module using a Web browser via connected network.
1
IP filter function
This function identifies IP address of the access source and prevents access by unauthorized IP addresses.
Remote password
Unauthorized access from the outside can be prevented and the security can be enhanced by setting the remote password.
EtherNet/IP communication
The module can communicate seamlessly with an EtherNet/IP network by using the communication protocol (CIP).
For details, refer to MELSEC iQ-F FX5-ENET/IP User's Manual.
1 OUTLINE
25
2 SPECIFICATIONS
CPU module
The following describes the communication specifications of the built-in Ethernet port of the CPU module.
Item Specification
Transmission Data transfer speed 100/10 Mbps
specifications
Communication mode Full-duplex or half-duplex*1
Interface RJ45 connector
Transmission method Base band
Maximum segment length 100m (length between hub and node)*2
Number of cascade 100BASE-TX 2 levels maximum*3
connections
10BASE-T 4 levels maximum*3
Protocol type CC-Link IE Field Network Basic, MELSOFT connection, SLMP server (3E/1E frame),
Socket communication, Predefined protocol support, FTP Server, FTP Client, MODBUS/
TCP communication, SNTP client, Web server (HTTP), Simple CPU communication
function
Number of connections Total of 8 connections*4*5
(Up to 8 external devices can access one CPU module at the same time.)
Hub*1 Hubs with 100BASE-TX or 10BASE-T ports*6 can be used.
IP address*7 Initial value: 192.168.3.250
Connection 100BASE-TX Ethernet cable of category 5 or higher (STP cable)
cable*8
10BASE-T Ethernet cable of category 3 or higher (STP cable)
• When connected to a hub, the CPU module determines the cable used (100BASE-TX or 10BASE-T) and
the communication mode (full-duplex or half-duplex) according to the hub. Set the hub into the half-duplex
mode if the hub that does not have the auto-negotiation function.
• If broadcast storm occurs in the network, scan time may be increased.
• If the destination device of the CPU module does not respond due to power off or other reasons, Ethernet
communication of the CPU module may get delayed by up to 500 ms.
Precautions
The operation of the following connections is not guaranteed. Check the operation before using the module.
• Connection using the Internet (general public line) (Internet-access service offered by an Internet service provider or a
telecommunications carrier)
• Connection using firewall device(s)
• Connection using broadband router(s)
• Connection using wireless LAN
2 SPECIFICATIONS
26 2.1 Communication Specifications
Ethernet module
The describes the communication specifications of the Ethernet port of the Ethernet module.
For another specifications, refer to the following manuals.
MELSEC iQ-F FX5-ENET User's Manual
MELSEC iQ-F FX5-ENET/IP User's Manual
2
Item Specification
Transmission Data transfer speed 100/10 Mbps
specifications
Communication mode Full-duplex or half-duplex*1
Interface RJ45 connector
Transmission method Base band
Maximum segment length 100m (length between hub and node)*2
Number of cascade 100BASE-TX 2 levels maximum*3
connections
10BASE-T 4 levels maximum*3
Protocol type FX5-ENET CC-Link IE Field Network Basic, MELSOFT connection, SLMP server (3E/1E frame),
socket communication, simple CPU communication, BACnet/IP
FX5-ENET/IP EtherNet/IP communication, MELSOFT connection, SLMP server (3E/1E frame), socket
communication, simple CPU communication, BACnet/IP
Number of connections Total of 32 connections*4
(Up to 32 external devices can access one Ethernet module at the same time.)
Hub*1 Hubs with 100BASE-TX or 10BASE-T ports*5 can be used.
IP address Initial value: 192.168.3.251
Connection 100BASE-TX Ethernet cable of category 5 or higher (STP cable)
cable*6
10BASE-T Ethernet cable of category 3 or higher (STP cable)
• If the destination device of the Ethernet module does not respond due to power off or other reasons,
Ethernet communication of the Ethernet module may get delayed by up to 500 ms.
• In the case of general-purpose Ethernet communication, when Ethernet module is connected with a hub, it
distinguishes between 100BASE-TX and 10BASE-T and between full-duplex and half-duplex
communication modes according to the hub. Set the hub to half-duplex mode if the hub does not have the
auto-negotiation function.
Precautions
The operation of the following connections is not guaranteed. Check the operation before using the module.
• Connection using the Internet (general public line) (Internet-access service offered by an Internet service provider or a
telecommunications carrier)
• Connection using firewall device(s)
• Connection using broadband router(s)
• Connection using wireless LAN
2 SPECIFICATIONS
2.1 Communication Specifications 27
2.2 Connection Specifications
Ethernet cable
Use one of the cables listed below for the Ethernet cable (100BASE-TX/10BASE-T cable) to connect to the Ethernet port of
Ethernet-equipped module.
Item Specifications
When using 100BASE-TX Ethernet cable: Category 5 or higher (STP cable*1)
When using 10BASE-T Ethernet cable: Category 3 or higher (STP cable*1)
■CPU module
A straight cable can be used. A cross cable can also be used when using direct connection between the personal computer
and the built-in Ethernet.
■Ethernet module
A straight/cross cable can be used.
RJ45 type RJ45 type modular RJ45 type modular jack RJ45 type modular
modular jack Ethernet cable Ethernet cable
(category 3,5 or higher) (category 3,5 or higher)
• When connected to a hub, the Ethernet-equipped module determines the cable used (100BASE-TX or
10BASE-T) and the communication mode (full-duplex or half-duplex) according to the hub (Auto-negotiation
function). Set the hub to the half-duplex mode if the hub that does not support the auto-negotiation function.
• When the ground terminal of the Ethernet-equipped module cannot be grounded, the communication line
may be closed due to the effects of noise, making it impossible to communicate with other devices.
2 SPECIFICATIONS
28 2.2 Connection Specifications
3 LIST OF FUNCTIONS
The following table lists the functions of the built-in Ethernet of the Ethernet-equipped module.
Some functions have restrictions on the firmware version and production information of the CPU module or the version of the
engineering tool. (Page 935 Added and Changed Functions)
: Supported, : Partially supported, : Not supported
Function Outline of system Supported function Reference
CPU module Ethernet 3
module
FX5S FX5UJ FX5U/ FX5- FX5-
FX5UC ENET ENET/
IP
Direct Ethernet-equipped module and MELSOFT product Page 31 Direct Connection
connection with (GX Works3, etc.) are connected by single with Engineering Tool
MELSOFT Ethernet cable without using a hub.
Communication is done by simply specifying the
connection destination; setting the IP address is
not required.
MELSOFT Communication with MELSOFT products (GX Page 38 Connection via a
connection Works3, etc.) is done within LAN such as company Hub
internal LAN.
Connected Searches for Ethernet-equipped module connected Page 44 Searching
module search with personal computer using GX Works3 within Ethernet-equipped modules
function the same hub. Acquires IP address by selecting on network
from search results list.
MELSOFT Diagnoses Ethernet port of CPU module and Page 799 Ethernet
diagnosis Ethernet module from GX Works3. (Ethernet diagnostics
function diagnostics)
Simple CPU Allows data communications between specified Page 49 SIMPLE CPU
communication devices at the specified timing just by doing simple COMMUNICATION
function parameter settings from an engineering tool for the FUNCTION
CPU module.
SLMP Reads and writes data from other device. Page 90 SLMP FUNCTION
communication
function
Predefined When the predefined protocol support function is Page 100 PREDEFINED
protocol support used, data can be exchanged with the external PROTOCOL SUPPORT
function device. FUNCTION
Socket By using socket communication instructions, any Page 129 SOCKET
communication data can be transferred from and to the external COMMUNICATION
function devices connected through Ethernet using TCP or FUNCTION
UDP.
MODBUS/TCP By using sequence program, MODBUS devices of Page 500 OUTLINE
communication the external devices connected through Ethernet
can be read/written.
File transfer Using the dedicated FTP commands enables an *1 Page 178 FILE TRANSFER
function (FTP external device to read out, write, and delete FUNCTION (FTP SERVER)
server) individual data file.
File transfer The CPU module becomes an FTP client and can *1 Page 190 FILE TRANSFER
function (FTP execute file transfer with the FTP server connected FUNCTION (FTP CLIENT)
client) to Ethernet using the file transfer function
instruction.
Time setting Time information is collected from the time Page 203 TIME SETTING
function (SNTP information server (SNTP server) connected on the FUNCTION (SNTP CLIENT)
client) LAN at the specified timing, and the CPU module's
time is automatically set.
Web server Monitors and diagnoses the CPU module using a *1 Page 206 WEB SERVER
function Web browser via connected network. FUNCTION
MELSEC iQ-R/
MELSEC iQ-F Web Server
Function Guide Book
3 LIST OF FUNCTIONS
29
Function Outline of system Supported function Reference
CPU module Ethernet
module
FX5S FX5UJ FX5U/ FX5- FX5-
FX5UC ENET ENET/
IP
IP filter function This function identifies IP address of the access Page 232 IP Filter Function
source and prevents access by unauthorized IP
addresses.
Remote Remote password setting can prevent Page 235 Remote
password unauthorized access from the outside and enhance Password
the security of the system.
IP address This function is provided to change the IP address Page 240 IP ADDRESS
change function of the CPU module by setting the desired IP CHANGE FUNCTION
address to special registers from a peripheral unit
or another unit and turning ON a special relay.
CC-Link IE Data is periodically communicated between the CC-Link IE Field
Field Network master station and remote stations using link Network Basic Reference
Basic devices (cyclic transmission). Manual
EtherNet/IP The module can communicate seamlessly with an MELSEC iQ-F FX5-
communication EtherNet/IP network by using the communication ENET/IP User's Manual
protocol (CIP).
Automatic Detects devices supporting iQSS which are iQ Sensor Solution
detection of connected to the CPU module (built-in Ethernet Reference Manual
connected port), and automatically displays them on "List of
devices devices" and "Device map area" using an
engineering tool.
Communication Reflects the communication settings (such as IP
setting addresses) in devices supporting iQSS in "Device
reflection of map area" which are connected over Ethernet.
Ethernet device
Sensor Reads/writes parameters from/to iQSS-compatible
parameter read/ devices.
write
BACnet Uses a PLC system as a BACnet device. MELSEC iQ-F FX5
function User's Manual (BACnet)
E-mail function Sends email messages via mail servers over MELSEC iQ-F FX5-
networks to personal computers or smartphones in ENET User's Manual
remote locations.
DNS setting Specifies the IP address of the DNS server to set
the host name as a domain name in the e-mail
function or the MQTT communication function.
MQTT Publishes (submits) information collected on a
communication programmable controller (such as information input
function from sensors) to an MQTT broker (on the cloud or
a local network) or subscribes information from an
MQTT broker.
3 LIST OF FUNCTIONS
30
4 CONNECTION WITH MELSOFT PRODUCT AND
GOT
This chapter describes the method of communication between the Ethernet-equipped module and MELSOFT Product
(engineering tool, MX Component, etc.) or GOT.
Ethernet cable
Engineering tool
An Ethernet cable used for direct connection will be longer compared with the USB cable. This can cause an
unauthorized connection from a remote location.
With GX Works3, you can prevent hacking by opting to "Disable" for "Direct Connection with MELSOFT" by
the following operation.
[CPU module]
Navigation window [Parameter] Module model name [Module Parameter] [Ethernet Port]
[Application Settings] [Security]
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Application
Settings] [Security]
1.
2.
1. Select [Direct Coupled Setting] on the "Connection Destination Simple Setting Connection" screen.
The Ethernet adapter on the personal computer side used for the Ethernet port direct connection can be
specified. Select an item appropriate to the operating environment.
2. Click the [Communication Test] button and check if the connection for the Ethernet-equipped module is possible.
1. On the "Connection Destination Simple Setting Connection" screen, select [Other Connection Method] and click the
[Other Connection Method (Open the Specify Connection Destination window)] button.
2. 4
3.
4.
5.
6.
3. Select "PLC Module" for "PLC side I/F" and double-click it.
In the "PLC side I/F Detailed Setting of PLC Module" screen, select the "Ethernet Port Direct Connection" as shown below.
The Ethernet adapter on the personal computer side used for the Ethernet port direct connection can be
specified.
Select an item appropriate to the operating environment.
6. Click the [Connection Test] button on the "Specify Connection Destination Connection" screen and check if the
connection for the CPU module is possible.
1. On the "Connection Destination Simple Setting Connection" screen, select [Other Connection Method] and click the
[Other Connection Method (Open the Specify Connection Destination window)] button.
2.
3. 4
4.
5.
6.
The Ethernet adapter on the personal computer side used for the Ethernet port direct connection can be
specified. Select an item appropriate to the operating environment.
6. Click the [Connection Test] button on the "Specify Connection Destination Connection" screen, and check if the module
can be connected with the Ethernet module.
Indirect connection 4
When an Ethernet-equipped module is connected to an external device via a hub, communication cannot be performed by
direct connection. (Page 38 Connection via a Hub)
Ethernet-equipped module
Hub
Ex.
IP address of the Ethernet-equipped module: 64. 64. 255. 255
Personal computer IP address: 64. 64. 1. 1
Personal computer-side subnet mask: 255. 255. 0. 0
• In the Ethernet-equipped module IP address bits, if the bits corresponding to the host address of the class of the personal
computer IP address are all ON or all OFF.
Ex.
Personal computer IP address: 192.168.0.1 Class C and the host address is the fourth octet because the IP address is
192.x.x.x.
Personal computer-side subnet mask: 255. 0. 0. 0
IP address of the Ethernet-equipped module: 64.64.255.255 Each bit turns ON because the fourth octet is 255.
Ethernet
Hub
Drag and drop "MELSOFT Connection Module" from the "Module List" to the left side of the screen.
CPU module
1. On the "Connection Destination Simple Setting Connection" screen, select [Other Connection Method] and click the
[Other Connection Method (Open the Specify Connection Destination window)] button.
4
2.
3.
4.
2.
3.
4
4.
3. Select "Ethernet module" for PLC side I/F, and double-click it.
Input the IP address or host name of the Ethernet module in the "PLC side I/F Detailed Setting of Ethernet Module" screen as
shown below.
In case of host name, set the name specified in the Microsoft Windows hosts file.
Target modules
• Ethernet-equipped modules connected to the same hub as GX Works3
• Ethernet-equipped modules connected to cascaded hubs
When a search is performed from the Ethernet module, only the Ethernet-equipped modules of iQ-F Series
will be targets.
The module selecting "Do Not Respond" in "Do Not Respond to CPU Module Search" in GX Works3 can be
excluded from the target.
[CPU module]
Navigation window [Parameter] Module model name [Module Parameter] [Ethernet Port]
[Application Settings] [Security]
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Application
Settings] [Security]
Precautions
If multiple Ethernet-equipped modules with the same IP address are found in the list, check the IP address parameters for the
Ethernet-equipped modules. Starting communication with the IP address duplicated will cause a communication error.
When the appropriate Ethernet-equipped module cannot be searched, increase the response waiting time
value, or change the service processing counts in the service processing settings of the CPU parameters.
Router
Corporate
LAN
Personal
Ethernet-equipped module computer
*1 Communication through routers is impossible for some functions. The following functions do not support communication via routers.
Searching Ethernet-equipped modules on Network
For access via router, set the subnet mask pattern and default gateway IP address in addition to IP address as per Page
39 Setting module parameters.
[CPU module]
Navigation window [Parameter] Module name [Module Parameter] [Ethernet Port] [Basic Settings] [Own
Node Settings]
Precautions
IP address duplication
Check that the IP address is not duplicated when configuring a network or connecting a new device to a network.
If the IP address is duplicated, a device may communicate with the wrong device.
Check for IP address duplication with the connected CPU search function.
KeepAlive check
When the protocol is set to TCP, KeepAlive check is performed. (Response to KeepAlive ACK message)
An alive check message is sent five seconds after reception of the last message from the connected device to check if the
device returns a response or not. If no response is received, the alive check message will be resent at intervals of five
seconds. When no response is received for 45 seconds, the connected device is regarded as non-existent and the connection
is disconnected.
If the connected device does not support the TCP KeepAlive function, the connection may be disconnected.
Ethernet-equipped module
Ethernet
Hub
When all MELSOFT devices start communicating at the same time, devices may fail to communicate because
of the congestion in communication. In such a case, schedule the timing for when each device starts
communicating so that the communication congestion will not occur. When using GOTs, for example, set
different rise time and time-out values in the GOTs.
Remote STOP
When remote STOP is executed using the engineering tool, execute remote RUN before turning OFF the power of the CPU
module.
Ethernet
Device
Sending/receiving device data is available by simply setting parameters.
5
data
Hub
Ethernet
MELSEC iQ-F series MELSEC iQ-R series PLC product MODBUS/TCP SLMP
MELSEC-F series MELSEC-Q series manufactured by compatible device compatible
MELSEC-L series other company device
MELSEC iQ-L series
• The following are the maximum numbers of communication target devices that can be connected.
- FX5S/FX5UJ CPU module: 8 devices
- FX5U/FX5UC CPU module: 16 devices
- Ethernet module: 32 devices
• Access via routers is also available. For the access, set the subnet mask and default gateway. (Page
46 Communication via router)
*1 To connect the QJ71E71-100 with the module, set the device type to "SLMP-compatible device (QnA-compatible 3E frame)". ( Page
53 Device type)
Hub
ÔEthernet cable
ÖPersonal computer
GX Works3
Configuration tool for
other company devices
ÕUSB cable
Ethernet Ethernet
Personal computer
Ethernet
Usage flow
Based on the setting example 1, the following shows the flow for using the simple CPU communication function.
1. Set the IP addresses to the CPU modules. ( Page 56 Setting the IP address)
2. Set the simple CPU communication setting. ( Page 56 Setting the simple CPU communication)
4. Power off and on or reset the CPU modules to enable the written parameters.
5. Check if data is being read and written correctly. ( Page 58 Checking the communication status)
1. Select "Use" for "To Use or Not to Use Simple CPU Communication".
Navigation window [Parameter] [FX5S CPU] [Module Parameter] [Ethernet Port] [Application Settings]
[Simple CPU Communication Setting]
Setting Communication Communication Destination (IP Address) Bit Device Word Device
No. Pattern Source Destination Source Destination Source Destination
1 Read • Device Type: MELSEC • Type: M Type: M
iQ-F (built-in Ethernet) • Start: 0 • Start: 400
• IP Address: • End: 15 5
192.168.3.250
2 Write • Device Type: MELSEC • Type: D • Type: D
iQ-F (built-in Ethernet) • Start: 100 • Start: 1100
• IP Address: • End: 101
192.168.3.250
3 Read • Device Type: MELSEC Type: M Type: M
iQ-R (built-in Ethernet) Start: 16 • Start: 416
• IP Address: 192.168.3.39 • End: 31
4 Write • Device Type: MELSEC Type: D Type: D
iQ-R (built-in Ethernet) Start: 102 • Start: 1102
• IP Address: 192.168.3.39 • End: 103
3. From the Watch window for each project, perform operations and check the communication status.
• Write check
- Modify the current value on the own station (FX5S CPU module) and then confirm that the current value is changed on the
communication target devices (FX5U CPU module and programmable controller CPU).
• Read check
- Modify the current value on the communication target devices (FX5U CPU module and programmable controller CPU) and
then confirm that the current value is changed on the own station (FX5S CPU module).
For how to check devices in the Watch window, refer to the following manual.
GX Works3 Operating Manual
Writing data
to the KV-8000
Ethernet
Personal computer
USB 5
USB
Usage flow
The following shows the flow for using the simple CPU communication function. Details of the procedure are described using
this setting example.
1. Set the IP addresses to the CPU modules. ( Page 60 Setting the IP address)
2. Set the simple CPU communication setting. ( Page 60 Setting the simple CPU communication)
4. On the communication target device, configure the settings for receiving communication.
5. Power off and on or reset the CPU modules to enable the written parameters.
6. Check if data is being read and written correctly. ( Page 61 Checking the communication status)
*1 For how to set the IP address, refer to the manual for the communication target device.
1. Select "Use" for "To Use or Not to Use Simple CPU Communication".
Navigation window [Parameter] [FX5S CPU] [Module Parameter] [Ethernet Port] [Application Settings]
[Simple CPU Communication Setting]
3. Configure the settings that are used to read and write device data from the FX5S CPU module (own station) to the
communication target devices.
Configure the communication destinations (source and destination) on a one-to-one basis. Also, use the default values for
settings that are not listed below.
Setting Communication Communication Destination (IP Address) Bit Device Word Device
No. Pattern Source Destination Source Destination Source Destination
1 Read • Device Type: KEYENCE • Type: MR • Type: M
(KV series) • Start: 0 • Start: 400
• IP Address: 192.168.0.10 • End: 15
• TCP/UDP: UDP
• Port No.: 5000
• Host Station Port No.:
8000
2 Write • Device Type: KEYENCE • Type: D • Type: DM
(KV series) • Start: 10 • Start: 100
• IP Address: 192.168.0.10 • End: 11
• TCP/UDP: UDP
• Port No.: 5000
• Host Station Port No.:
8500
In this example, since the setting configured in "Simple CPU Communication Setting" fits the MC protocol port
number (UDP) for KV-8000, the default setting can be used for communication.
*1 For how to monitor devices, refer to the manual for the communication target device.
3. From the Watch window for each project, perform operations and check the communication status.
• Write check
- Modify the current value on the own station (FX5S CPU module) and then confirm that the current value is changed on the
communication target device (KV-8000).
• Read check
- Modify the current value on the communication target device (KV-8000) and then confirm that the current value is changed
on the own station (FX5S CPU module).
For how to check devices in the Watch window, refer to the following manual.
GX Works3 Operating Manual
Ex.
Operation at communication stop/restart for setting No.1 (when the own station is a CPU module)
Stop Communication Restart Communication
request stop request restart
Simple CPU
communication status 3H: Communicating 4H: Communication stop 1H: Preparing 3H: Communicating
(SD10380)
Ex.
Operation at communication start for setting No.1 (when the own station is an Ethernet module)
Restart
request
Ready ON
(Un\G316.b0) OFF
Simple CPU
1H: Preparing 2H: Waiting for request 3H: Communicating 2H: Waiting for request
communication status
(Un\G352)
END processing
Number of settings
The number of settings is as follows.
Setting type Number of settings
Setting No. • FX5S/FX5UJ CPU module: 1 to 16
• FX5U/FX5UC CPU module: 1 to 32
• Ethernet module: 1 to 32
Communication pattern 5
Select the communication pattern from the following items.
Item Description Setting range
Communication Pattern Set whether to read or write the data. • Read
• Read: Read the data of the specified destination device • Write
(transmission source) to the specified device of the own station (Default: Blank)
(transmission destination).
• Write: Write the data of the specified device of the own station
(transmission source) to the specified destination device
(transmission destination).
• Actual time of execution interval may be longer than the value of the setting because the time is affected by
the specified communication destinations or Ethernet line congestion. (Page 811 When the Simple
CPU Communication Function Is Used)
• If latency time is set, data communication is started after the latency time has passed. ( Page 83
Latency Time)
• The execution interval becomes larger than the setting value when the execution interval is set smaller than
the scan time in the execution interval setting, because the communication of data is executed by the END
processing.
■Device Type
Select the device type of the communication destination. For details, refer to the following.
Page 53 Device type
*1 The protocols that support the device types are displayed. (Fixed)
*2 When the communication destination is the QJ71E71-100, set the port number to enable auto open UDP port (default: 5000).
*3 For the supported versions of each model, refer to the following.
Page 935 Added and Changed Functions
*4 The port number can be changed. (Default: 80 (file transfer function), 502 (MODBUS/TCP function (slave station)))
*5 When changing the port number by the Web server function, set the port number so that the port number and the own port number to be
set by the simple CPU communication function do not overlap.
Option (Hexadecimal)
When the communication destination is "MODBUS/TCP-compatible device", set the setting value for the module ID of the
MODBUS application header. For the supported versions of each model, refer to the following.
Page 935 Added and Changed Functions
Item Setting range
Option (Hexadecimal) ■When communicating with a MODBUS/TCP-compatible device
00H or FFH
■When communicating with a MODBUS RTU/ASCII-compatible device via a gateway device
• 00H: Broadcast
• 01H to F7H: Station number of a MODBUS RTU/ASCII-compatible device
(Default: 00H)
Device setting
Set the device that sends/receives data to/from the communication destination.
Item Description Setting range
Bit Device Points Set the type, start number, and end number of the "Source" bit The devices that can be specified as
device and the type and start number of the "Destination" bit transmission source and transmission
Type
device. When these values are input, the number of points will be destination vary depending on the
Start displayed automatically. communication destination. Bit device and 5
End word device can be set together for each
setting number.*1
Word Device Points Set the type, start number and end number of the "Source" word
device and the type and start number of the "Destination" word
Type
device. When these values are input, the number of points will be
Start displayed automatically.
End
Word Device
SM
D
0 to 9999
0 to 7999
5
W 0H to 7FFFH 0H to 3FFH
R 0 to 32767
SW 0H to 7FFFH 0H to 3FFH
SD 0 to 11999
G 6400 to 8447*1
*1 Un\G6400 to Un\G8447 can be used as devices for the simple CPU communication function.
Set the devices within the device range specified in the device/label memory area setting.
MELSEC iQ-F FX5 User's Manual (Application)
Set the devices within the device range specified in "Device/Label Memory Area Setting".
Set the devices within the device range specified in "Device/Label Memory Area Setting".
Set the devices within the device range specified in "Device/Label Memory Area Setting".
MELSEC iQ-F FX5 User's Manual (Application)
Set the devices within the device range specified in "Device/Label Memory Area Setting".
MELSEC iQ-F FX5 User's Manual (Application)
Set the devices within the device range specified in "Device Setting".
Set the devices within the device range specified in "Device Setting".
In the IP address table on the communication destination side, set the IP address and node address to be
assigned to the FX5 CPU module or Ethernet module. (Specify "1" for the node address.)
Access is executed in units of words. The upper byte and lower byte of reading/writing value may be
interchanged depending on the setting in the communication destination.
Precautions
Do not perform settings that span the DB, such as DB001510 to DB002509.
*1 When the communication destination is set to "MELSEC-FX3 (Ethernet block/adapter)", "SLMP-compatible device (QnA-compatible 3E
frame)" or "KEYENCE (KV series)", the value is fixed at 65535ms.
*2 When the communication destination is set to "MELSEC-FX3 (Ethernet block/adapter)", "SLMP-compatible device (QnA-compatible 3E
frame)" or "KEYENCE (KV series)", the value is fixed at 0 times.
*3 Only FX5U/FX5UC CPU modules are supported. For the supported versions of each model, refer to the following.
Page 935 Added and Changed Functions
When an error response is received from the communication destination or no response is returned within the communication
time-out period, the communication will be retried (resent).
When the communication setting is "Fixed", when the communication time-out period has elapsed after the set number of
retries is performed, the fixed interval communication is performed during the monitoring time at error. If the communication
destination responds after these communications, the communications at the execution interval specified with the parameters
are restarted.
When the communication setting is "On Request", when the communication time-out period has elapsed after the set number
of retries is performed, the communication fails.
Ex.
Error detection timing when 2 is set for the communication retry count
Retry of Retry of
Interval communication, communication,
first time second time
Communication
Communication
Communication
Communication
Communication
Communication
Error
detection
The error is detected if the communication destination does not respond or communications fail by when the
following time has passed: (communication retry count + 1) communication time-out period.
By setting the latency time, the start timing in the communications can be switched in the following cases.
• To prevent an error due to the overlap of the start timing in the communications
• To start communications after the communication destination is ready for the communications
During the latency time, "Preparing" is indicated in the communication status.
BFFF M4095
Word device
W0 Writing to 256 points D0
WFF D255
*1 Change the value in "Memory/Device Setting" in "CPU Parameter" since the device range is B0 to BFF by default.
■Program
BFFF M4095
5
Word device
W0 Writing to 256 points D0
WFF D255
■Program
To communicate at the set execution interval, reducing the communication frequency is recommended. (For example,
increase the execution interval, communication time-out period, and monitoring time at error for the simple CPU
communication, and reduce the number of settings.) If checking the execution interval is required, perform actual
communications and check them with the "Simple CPU Communication Diagnostics" window.
IP filter function
The simple CPU communication is not performed when the IP filter function interrupts the communication destination. In
addition, if any unique security function specific to the communication destination (programmable controller manufactured by
other companies) is working, disable the function.
Remote password
The simple CPU communication cannot be performed when a remote password is set for the CPU module which performs the
simple CPU communication. Disable the remote password setting of the communication destination.
When using the special relay (SM) and special register (SD)
Do not write any data to the special relay (SM) and the special register (SD) that are set on the system side. Doing so may
cause a system failure or communication failure.
Redundant system
If the communication destination is a redundant system, on the process CPU (in a redundant mode) side, use a control
system IP address with redundant settings, and set the control system IP address as the communication destination IP
address of the simple CPU communication.
■Condition 5
• Communication setting: "Fixed"
• Own station sequence scan time =: 1ms (scan time before execution of simple CPU communication function)
• Communication destination: MELSEC iQ-F (built-in Ethernet)
• Communication destination sequence scan time: 1ms (for any models)
• Device data: Bit device = M, Word device = D
• The number of settings is as shown in the table (1, 8, 16, 32), and all must be different communication destinations (not the
same communication destination).
• Communication retry has not occurred.
Hub
SLMP communication
GOT
2. Setting parameters
Configure the module parameters with the engineering tool. ( Page 93 Setting Method)
Access through routers is also available. In order to configure this, set the subnet mask pattern and default
gateway IP address. ( Page 46 Communication via router)
6 SLMP FUNCTION
90
6.1 Specifications
Communication specifications
Communication by the SLMP function is implemented with the following specifications, and they can be configured in module
parameters in the GX Works3.
Item Specification
CPU module Ethernet module
Transmission Data transfer speed 100/10 Mbps
specifications
Communication mode Full-duplex or half-duplex*1
Interface RJ45 connector
Transmission method Base band
Maximum segment length 100m (length between hub and node)*2
Number of cascade 100BASE-TX 2 levels maximum*3
connections
10BASE-T 4 levels maximum*3
Number of ports 1 port 2 port
Number of connections 8 connections maximum*4 32 connections maximum*5
6
*1 IEEE802.3x flow control is not supported.
*2 For maximum segment length (length between hubs), consult the manufacturer of the hub used.
*3 This number applies when a repeater hub is used. When using a switching hub, check the number of cascaded stages with the
manufacturer of the hub to be used.
*4 Maximum of 8 connections including SLMP server, MELSOFT connections, socket communication, MODBUS/TCP communication, and
predefined protocol support.
*5 Up to 32 connections for SLMP server, MELSOFT connection, socket communication, simple CPU communication and BACnet
6 SLMP FUNCTION
6.1 Specifications 91
Link specifications
The method for calculating the link time of the CPU module is shown below.
For applicable commands and devices, refer to Page 95 SLMP Commands.
The link time between Ethernet modules varies depending on the usage of other intelligent function modules.
Link time
Calculate the minimum processing time for transmission by SLMP with the following formula.
However, the processing time may become longer depending on the load of the network (how much a line is crowded),
window size of each connecting device, number of connections to be used simultaneously, and system configuration. Use the
result of this formula as a guideline value of the processing time, when only 1 connection is being used.
• Minimum processing time of the SLMP communication (for batch read or batch write)
Tfs = Ke + (Kdt Df) + Scr Number of scans required for processing + ACK processing time of external equipment
Tfs: The time from when the personal computer receives the request data until the CPU module finishes processing (unit:
ms)*1
Ke, Kdt: Constant (Refer to the following table.)
Df: Number of words of the request data + Number of words of the response data (application data part)
Scr: Scan time
*1 The following shows the timing from when the personal computer receives the request data until the CPU module finishes processing.
Target device
(personal computer)
Tfs
Ex.
[Calculation example 1]
When performing TCP/IP communication with a personal computer and reading 32 points (devices) of data from the own
station's data register (D) as binary code data, using SLMP communication, the time from when the computer request data is
received until processing is finished (unit: ms)
Connected station scan time is 40ms.
Tfs=1+(0.00132)+401+other device ACK processing time
[Calculation example 2]
When performing TCP/IP communication with a personal computer and writing 32 points (devices) of data to the own station's
data register (D) as binary code data, using SLMP communication, the time from when the computer request data is received
until processing is finished (unit: ms)
Connected station scan time is 40ms.
Tfs=1+(0.00132)+401+other device ACK processing time
6 SLMP FUNCTION
92 6.1 Specifications
6.2 Setting Method
The following shows the configuration for communication by SLMP.
CPU module
Navigation window [Parameter] Module name [Module Parameter] [Ethernet Port] [Basic Settings] [Own
Node Settings]
1. Under "Own Node Settings", set "IP Address" setting items and "Communication Data Code".
3. Drag and drop "SLMP Connection Module" under "Module List" to the left side of the screen. Select protocol (TCP or
UDP) that matches the other device in "Protocol". Set the host station port number (setting range: 1 to 5548 and 5570 to
65534) for the "Port No." and the IP address of the target device (only UDP). Do not specify the port numbers 5549 to
5569 because these ports are used by the system.
6 SLMP FUNCTION
6.2 Setting Method 93
Ethernet module
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Basic Settings] [Own
Node Settings]
1. Under "Own Node Settings", set "IP Address" setting items and "Communication Data Code".
3. Drag and drop "SLMP Connection Module" under "Module List" to the left side of the screen. Select protocol (TCP or
UDP) that matches the other device in "Protocol". Set the host station port number (setting range: 1 to 5548 and 5570 to
65534) in "Port No." Do not specify the port numbers 5549 to 5569 because these ports are used by the system.
6 SLMP FUNCTION
94 6.2 Setting Method
6.3 SLMP Commands
For details on the SLMP commands, refer to the following.
Page 602 3E FRAME COMMANDS
Page 666 1E FRAME COMMANDS
Specify the external device and SLMP command to SP.SLMPSND instruction, execute SP.SLMPSND instruction in the
program, and the request message is sent from the CPU module to the external device. The response message from the
external device is stored to the device specified by SP.SLMPSND instruction. 6
SP.SLMPSND instruction
Request message
CPU module Message format of SLMP Counterpart
Header Sub device
Address Command
header
Ethernet
Response message
For details on SP.SLMPSND instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard
Functions/Function Blocks)
6 SLMP FUNCTION
6.3 SLMP Commands 95
6.5 Precautions
The LED flashes brightly when performing SLMP (3E frame) communication normally.
If the LED is not flashing, check the wiring and the communication settings.
Target
device (Client)
Ethernet-equipped module
Maintenance
GX Works3, etc. (MELSOFT connection)
For connections with external devices by SLMP, the number of possible simultaneous connections is the number of devices
configured in the Ethernet configuration settings only.
Port number
Host station port number, 1 to 1023 (0001H to 03FFH), are assigned for reserved port numbers (WELL KNOWN PORT
NUMBERS) and 61440 to 65534 (F000H to FFFEH) are for other communication functions. Therefore, using 1024 to 5548,
5570 to 61439 (0400H to 15ACH, 15C2H to EFFFH) is recommended.
6 SLMP FUNCTION
96 6.5 Precautions
Access range
• Only the connected Ethernet-equipped module can be accessed. Transmissions to other modules will result in an error.
• Communication with other stations such as CC-Link via the connected Ethernet-equipped module cannot be done.
For details on the access range, refer to the following.
Page 559 Access range
NO
Is TCP connection open?
YES
NO
Is receive data-size
sufficient?
YES
Process the response message
YES
End Error handling
For Ethernet communication, TCP socket functions are used inside personal computers.
These functions have no concept of boundaries. When the sender sends data by calling the send function
once, the receiver will call the recv function once or more to read that data. (Send and recv do not have a one-
to-one correspondence.)
Therefore, the processing shown above is always required in the program of the receiving device.
When the recv function is used with the blocking mode, data may be read by calling the function once.
6 SLMP FUNCTION
6.5 Precautions 97
CPU module processing time of SLMP
When accessing the CPU module from an external device using SLMP communication, the following "intervention time to the
scan time" and "number of scans for processing" of the CPU module side are required. On the request from the external
device using SLMP communication, the CPU module processes a specified number of points during each END processing in
case the CPU module is running.
The processing time of the following modules depends on the usage of other intelligent function modules.
• FX5-ENET
• FX5-ENET/IP
• FX5-CCLGN-MS
• FX5-CCLIEF
• FX5-40SSC-G, FX5-80SSC-G
■3E frame
Item Command Sub- Access Intervention time [ms]*2 (extension of scan time) Number of
Type Operation commands points 1) / 2) Access point 1) Access point 2) scans
required for
FX5S FX5UJ FX5U/ FX5S FX5UJ FX5U/
processing
FX5UC FX5UC
Device Read 0401 0001 1/3584 0.04 0.04 0.03 2.30 2.23 1.33 1
0000 1/960 0.04 0.04 0.03 0.25 0.24 0.14 1
Write 1401 0001 1/3584 0.04 0.04 0.04 1.46 1.42 1.06 1
0000 1/960 0.04 0.04 0.03 0.28 0.26 0.20 1
Read Random 0403 0000 1/192 0.04 0.04 0.03 2.23 1.55 1.48 1
Write Random 1402 0001 1/188 0.04 0.04 0.03 2.11 1.49 1.41 1
0000 1/160*1 0.04 0.04 0.04 1.90 1.33 1.26 1
Read Block 0406 0000 1/960 0.04 0.04 0.03 0.26 0.24 0.14 1
Write Block 1406 0000 1/770 0.04 0.04 0.03 0.24 0.22 0.17 1
Remote Read Type 0101 0000 (one station) 0.04 0.04 0.02 1
Control Name
*1 This is the processing time when accessing with only word access points specified.
*2 This is the processing time (an average of actual measurements) when 1 is set to "CPU Parameter" - "Service Processing Setting" -
"Device/Label Access Service Processing Setting" - "Set Processing Counts" of GX Works3.
6 SLMP FUNCTION
98 6.5 Precautions
■1E frame
• When communicating data in ASCII code
Operation Command Access points Intervention time [ms]*2 (extension of scan time) Number of
1) / 2) Access point 1) Access point 2) scans
required for
processing
Batch Reading 00H 1/256 0.0187 0.0646 1
01H 1/64 0.0196 0.0232 1
Batch Writing 02H 1/160 0.0206 0.0524 1
03H 1/64 0.0212 0.0268 1
Test (Random Write) 04H 1/80 0.0221 0.5200 1
05H 1/10*1 0.0230 0.0788 1
Remote RUN 13H 0.0184 1
Remote STOP 14H 0.0187 1
Read PC Type Name 15H 0.0129 1
Loopback Test 16H 1/254 0.0201 0.0480 1
*1 This is the processing time when accessing with only word access points specified.
*2 This is the processing time (an average of actual measurements) when 1 is set to "CPU Parameter" - "Service Processing Setting" -
"Device/Label Access Service Processing Setting" - "Set Processing Counts" of GX Works3. 6
• When communicating data in binary code
Operation Command Access points Intervention time [ms]*4 (extension of scan time) Number of
1) / 2) Access point 1) Access point 2) scans
required for
processing
Batch Reading 00H 1/256 0.0267 0.1250 1
01H 1/64 0.0287 0.1050 1
Batch Writing 02H 1/160 0.0290 0.0950 1
03H 1/64 0.0304 0.0895 1
Test (Random Write) 04H 1/80 0.0308 0.8010 1
05H 1/10*3 0.0323 0.1210 1
Remote RUN 13H 0.0210 1
Remote STOP 14H 0.0222 1
Read PC Type Name 15H 0.0240 1
Loopback Test 16H 1/254 0.0265 0.2620 1
*3 This is the processing time when accessing with only word access points specified.
*4 This is the processing time (an average of actual measurements) when 1 is set to "CPU Parameter" - "Service Processing Setting" -
"Device/Label Access Service Processing Setting" - "Set Processing Counts" of GX Works3.
6 SLMP FUNCTION
6.5 Precautions 99
7 PREDEFINED PROTOCOL SUPPORT
FUNCTION
This chapter describes the predefined protocol support function (built-in Ethernet).
For details on the predefined protocol support function (serial communication), refer to the following.
Page 452 PREDEFINED PROTOCOL SUPPORT FUNCTION
Outline
Data can be exchanged between the external device (such as measuring instrument and bar code reader) and the CPU
module following the protocol of the device.
Data that varies according to communication session can be handled by incorporating a device or buffer memory into the
communication packet.
Sets the protocol required for communication with the external device using the engineering tool.
The protocol can be set by selecting from the predefined protocol library (SLMP (4E frame), MODBUS/TCP*1 etc.), or it can
be created and edited freely.
*1 The SLMP (4E frame) and MODBUS/TCP are available only for the client.
Protocols can be set easily using the predefined Write the set protocols in the CPU module.
protocol support function of GX Works3.
GX Works3
Sending
Applicable connections
The connections Nos. 1 to 8 can be used for communications using the communication protocol support function.
1. Select the protocol with the predefined protocol support function, create or edit the data, and write the protocol setting
data. ( Page 101 Creating the protocol setting data)
2. Set the module parameter. ( Page 106 Module parameter setting procedure)
4. Perform the open processing to establish a connection between the CPU module and external device.
The communication data code is binary code communication regardless of the selected settings.
Item Description
Protocol No. Displays the protocol number used with the dedicated instruction.
Manufacturer Displays the name of the manufacturer of the device for which the protocol is being set.
Model Displays the model of the protocol to be set.
Protocol Name Displays the name of the protocol to be set.
Communication Type Displays the communication type of the protocol to be set.
Send only: Sends one send packet once.
Receive only: If there is a matching packet within up to 16 registered receive packets, it is received.
Send & receive: After sending one send packet, if there is a matching packet within up to 16 registered receive
packets, it is received.
Send/Receive Displays the packet send direction.
: For send
(1) to (16): For receive, the received packet number is displayed in parentheses.
Packet Name Displays the packet name.
Packet Setting Displays the validity of variables in the packet elements and the variable setting state.
If Variable Unset, Elements Unset, or Element Error, the protocol is not written to the CPU module.
No Variable: When there is no variable in the elements
Variable Set: Only when all variables have been set
Variable Unset: When there is an unset variable
Elements Unset: When there are no elements in an editable protocol
Element Error: When elements do not satisfy requirements
7
Item Description Setting range
Type Select the type of protocol to be added. • Predefined Protocol Library
• User Protocol Library
• Add New
Protocol No. Select the protocol number to be added. 1 to 64
Manufacturer*1 Set the maker of the protocol to be added.
Model*1 Set the type of protocol to be added.
Protocol Name*1 Set the name of the protocol to be added.
*1 The name can be set only when "Predefined Protocol Library" is selected for "Type".
Item Description
Connected Device Manufacturer Set the protocol maker name.
Information*1
Type Set the protocol device type.
Model Set the protocol model.
Version Set the protocol device version.
Explanation Set a description of the protocol device.
Protocol Setting Protocol No. The protocol number for the selected protocol is displayed.
Information*1
Protocol Name Set the protocol name.
Communication Type Type Set the protocol communication type.
Receive Setting Receive Wait Time Set the time for wait after the module enters the receive data wait state.
If communication with the external device is disabled because of a disconnection and matching packet
data is not received within the specified time, the module judges that an error has occurred and cancels
the receive data wait state.
Send Setting Standby Time Set the time to wait from when the protocol set for the module enters the execution state to when the
data is actually sent. The time for the external device to enter the receive enable state can be adjusted
with this in respect to the module's send timing.
*1 The setting cannot be changed if the protocol was selected from the predefined protocol library.
Send/receive parameters can be set for multiple protocols by clicking the [Communication Parameter Batch
Setting] button and setting the range of the set protocol numbers, receive settings, and send settings.
The above screen opens when "Predefined Protocol Library" is selected on the "Add Protocol" screen.
When "Add New" or "User Protocol Library" has been selected, configure the packets with the [Change Type] button and [Add
New] button.
For details on the packet elements, refer to the following.
Page 107 Packet Elements
Select the module and memory into which the protocol data is to be written, and execute write.
The protocol setting data is written into the module extension parameters.
When the predefined protocol settings are written into multiple target memories, the following operation will take place.
The predefined protocol settings written in the SD memory card can be transferred to the CPU built-in memory by using boot
operation. For details on boot operation, refer to the following.
( MELSEC iQ-F FX5 User's Manual (Application))
For TCP/IP
Header Maximum data length: 2046 bytes
Destination Sender's
Type: IP: UDP:
MAC address: MAC address: Data
2 bytes 20 bytes 8 bytes
6 bytes 6 bytes
Ethernet header UDP/IP header
With the predefined protocol support function, data is exchanged with the external device with the procedures (communication
type) shown below.
Communication type Description
Send Only The send packet is sent once.
Receive Only If there is a packet that matches within the maximum of 16 registered receive packets, the packet is received.
Send & Receive After sending the send packets, if there are packets that match the up to 16 registered receive packets, the packets are
received.
Use when there are specific codes and character strings, such as commands, in the packet.
• When sending: The specified code and character string are sent.
• When receiving: The received data is verified.
Multiple static data elements can be placed anywhere in the data part.
The following table lists the items.
Item Description Remarks
Element Name Set the element name.
Code Type Select a data type of the setting value.
ASCII String/ASCII Control Code/HEX
Setting Value Set data within 1 to 50 bytes. Setting example
Code type and setting range are as follows: ASCII String: "ABC"
• ASCII String: 20H to 7EH ASCII Control Code: STX
• ASCII Control Code: Control code of 00H to 1FH and 7FH HEX: FFFF
• HEX: Hexadecimal data of 00H to FFH
The length code is used when there is an element that indicates the data length in the packet.
• When sending: Automatically calculates the data length in the specified range, and adds it to the packet.
• When receiving: From the received data, the data (value) corresponding to the length is verified as the specified range's
data length.
Length elements can be placed anywhere in the data part.
Multiple length elements can be set placed in one packet.
The following table lists the items.
Item Description Remarks
Element Name Set the element name.
Code Type Select a data type of the setting value.
ASCII hexadecimal/HEX
Data Length Select the data length on the line.
The range is 1 to 4 bytes.
Data Flow Forward Direction When sending: Sends a calculated length from the upper byte. This cannot be set if the
(Upper byte Lower byte) When receiving: Receives data from the upper byte. data length is 1 byte.
Reverse Direction When sending: Sends a calculated length from the lower byte.
(Lower byte Upper byte) When receiving: Receives data from the lower byte.
Byte Swap (by Word)*1 When sending: Sends a calculated length swapping the upper
byte and lower byte by word.
When receiving: Receives data swapping the upper byte and
lower byte by word.
Calculating Start Select the start packet element number for the range to be calculated.
Range The range is 1 to 32.
End Select the end packet element number for the range to be calculated.
The range is 1 to 32.
*1 This can be selected only when the data length is set to 4 bytes.
Use this to send the CPU module device data as part of the send packet, or to store part of the received packet in the CPU
module device.
Multiple non-conversion variable can be arranged in one packet.
The following table lists the items.
Item Description
Element Name Set the element name.
Fixed Length/Variable Fixed Length The data whose length is fixed is sent and received.
Length
Variable Length When sending: Specifies the data length at the time of the protocol execution and sends data.
When receiving: Receives data whose data length is variable.
Data Length/Maximum Set the data length of the send/receive data.
Data Length (For a variable length, set the maximum data length that can be specified for the data length storage area.)
The range is 1 to 2046.
Unit of Stored Data Lower byte + Upper When sending: Sends each one word (2 bytes) data in the data storage area in the order of the lower byte
byte to the upper byte.
When receiving: Stores the received data to the data storage area in the order of the lower byte to the
upper byte.
Lower Bytes Only When sending: Sends only lower byte of data in the data storage area. The CPU module ignores the upper
byte data.
When receiving: Stores the received data in the only lower byte of the data storage area. The CPU module
stores 00H in the upper byte.
Byte Swap Disable (Lower When sending: When "Enable (Upper Lower)" is selected, data in the upper byte and lower byte are
Upper)/Enable (Upper swapped by one word (2 bytes) and sent. When "Unit of Stored Data" is "Lower Byte + Upper Byte" and
Lower) "Data Length" is an odd number of bytes, the upper byte is sent at transmission of the last byte. When
"Unit of Stored Data" is "Lower Bytes Only" and "Data Length" is an odd number of bytes, data without any
byte swap is sent at transmission of the last byte.
When receiving: When "Enable (Upper Lower)" is selected, data in the upper byte and lower byte are
swapped by word and sent. When "Unit of Stored Data" is "Lower Byte + Upper Byte" and "Data Length" is
an odd number of bytes, the last byte is stored to the upper byte. When "Unit of Stored Data" is "Lower
Bytes Only" and "Data Length" is an odd number of bytes, the last byte is stored without any byte swap.
Data Storage Area Specify the start device for storing the variable value.
Specification The settable devices are listed below.
User device*1
• Input (X)
• Output (Y)
• Internal relay (M)
• Latch relay (L)
• Link relay (B)
• Data register (D)
• Link register (W)
File register*1
• File register (R)
*1 Set within the device range specified with "Device/Label Memory Area Setting" in "Memory/Device Setting" under "CPU Parameters".
+0
Send
Data storage area
packet
Receive
Data storage area
packet
+n
+1
Send
Data storage area
packet
Receive
Data storage area
packet
+n
Non-verified reception
When "Data Length" is set to 0, an error will occur if the following layout is used.
• An element other than static data is placed behind a non-verified reception element when non-verified
reception is out of the length calculating range or when there is no length element (except for when non-
verified reception is placed at the end of the packet elements).
• Multiple non-verified reception elements are placed in the length calculating range, while a length element is
not placed.
• A non-verified reception element is placed before a length element in the length calculating range.
Remains "0".
System configuration
Sending side Receiving side
GX Works3
(192.168.3.250) (192.168.3.251)
Ethernet
Parameter settings
Connect GX Works3 to the CPU module and set the parameters.
■Sending side
1. Set the CPU module in the following.
[Project] [New]
2. Set the module labels and click the [OK] button shown below.
• Normal response
SLMP communication frame for the predefined protocol library is 4E frame in the element. When using 3E frame, configure
the settings as below.
• Enable a protocol edit.
[Edit] [Editable Protocol]
• Set the element settings for 1 in "Element No." as below.
"Protocol Setting" screen Request "Packet Setting" screen
11. Write the set parameters to the CPU module. Then reset the CPU module or power off and on the system.
[Online] [Write to PLC]
■Receiving side 7
1. Set the CPU module and add the module labels of the CPU module. The setting method of the CPU module and addition
method of the module label are the same as those of when setting the sending side. ( Page 114 Sending side)
4. Write the set parameters to the CPU module. Then reset the CPU module or power off and on the system.
[Online] [Write to PLC]
SP.ECPRTCL
This instruction executes the communication protocol registered using the engineering tool via Ethernet built in the module.
Ladder diagram Structured text
ENO: =SP_ECPRTCL (EN, U0, s1, s2, s3, d);
FBD/LD
EN ENO
U0 d
s1
s2
s3
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(s3)
(d) *1
SP.ECPRTCL instruction
ON
OFF
Completion device (d)+0
ON When failed
OFF
Completion device (d)+1 1 scan when
Executing a
normally completed
protocol(s)
• Protocol execution can be canceled by setting a protocol cancel request. The protocol cancel request is specified in the
predefined protocol support function execution status check area (SD10740 to SD10899).
User
Protocol cancellation
(for the connection number 1: Cancellation requested 2: Cancellation completed
specified by (s1))
SP.ECPRTCL instruction
ON
Protocol cancellation
(for the connection number 1: Cancellation requested 2: Cancellation completed
specified by (s1))
Standby time
The CPU module will no
The processing stops. longer receive data nor
Send or receive data execute protocols.
Send packet
External device
Send packet 7
■If a cancel request is issued before completion of transmission
The following figure shows the operation when transmission has not been completed while the protocol execution status is "2: Sending".
SP.ECPRTCL instruction
ON
Protocol cancellation
(for the connection number 1: Cancellation requested 2: Cancellation completed
specified by (s1))
Standby time
SP.ECPRTCL instruction
ON
ON Completed with
an error
Completion status OFF OFF
indication device (d)+1
Protocol cancellation 1: 2:
(for the connection number Cancellation Cancellation
specified by (s1)) requested completed
Standby time
External device
Send packet
SP.ECPRTCL instruction
ON
Protocol cancellation
(for the connection number 1: Cancellation requested 2: Cancellation completed
specified by (s1))
The processing
stops.
External device
SP.ECPRTCL instruction
ON
Protocol cancellation
(for the connection number 1: Cancellation requested 2: Cancellation completed
specified by (s1))
• If same instructions are executed for the same connection, the subsequent instruction is ignored and is not executed until
the preceding instruction is completed.
• The SP.ECPRTCL instruction itself does not open/close a connection and therefore the SP.SOCOPEN/SP.SOCCLOSE
instructions need to be used to open/close the connection.
Page 143 SP.SOCOPENAlternatively, refer to Page 152 SP.SOCCLOSE.
Operation error
Error code Description
(SD0/SD8067)
2820H The device used exceeded the specified range.
2821H The device used to store data are overlapping.
2822H Device that cannot be specified is specified.
3405H The input data was out of range.
Port number
Host station port number, 1 to 1023 (0001H to 03FFH), are assigned for reserved port numbers (WELL KNOWN PORT
NUMBERS) and 61440 to 65534 (F000H to FFFEH) are for other communication functions. Therefore, using 1024 to 5548,
5570 to 61439 (0400H to 15ACH, 15C2H to EFFFH) is recommended.
Sending data
SOCSND instruction
Socket communication
receive area *1
Connection No. 1
Program
Connection No. 2
SOCRCV instruction Connection No. 3
External device
Reading receive data to Receiving data
Connection No. n
Ethernet-equipped module
*1 The area is used for storing data received from the connected open devices.
CPU module: Connection No.1 to No.8
Ethernet module: Connection No.1 to No.32
• For dedicated instructions used for the socket communication function, refer to Page 142 Socket
Communication Function Instructions.
• Access through routers is also available. When configuring the settings set the subnet mask pattern and
default gateway IP address. ( Page 46 Communication via router)
8
Port numbers
In socket communication, port numbers are used to identify respective communication and thereby multiple communications
are available both on TCP and UDP.
• For sending: Specify the port number of the Ethernet-equipped module from which data is sent, and the port number of the
destination device.
• For receiving: Specify the port number of the Ethernet-equipped module, and read the data sent to the port.
Ethernet-equipped module
(IP address: xx.xx.xx.xx) Ethernet
Sending UDP data from the port number A of
Ethernet-equipped module to the port number
L of the communication target device 1
Communication target device 1
(IP address: yy.yy.yy.yy)
Port Sending UDP data from the port number L Port
number A of the communication target device 1 to the number L
port number A of Ethernet-equipped module
TCP connection
There are two types of open operation for TCP connection: Active open and Passive open.
Firstly, the device waiting for a TCP connection performs a Passive open at the specified port.
The other device performs an Active open by specifying the port number of the device which is waiting in Passive open state.
Through the above process, a TCP connection is established and communication is available.
■Active open
Active open is a TCP connection method, which actively opens a connection to the device that is passively waiting for a TCP
connection.
■Passive open
The following two types of Passive open methods are available for TCP connection.
TCP connection Description
method
Unpassive Allows a connection regardless of the IP address and port number of the connected device. (The CPU module can acquire the IP
address and port number of the connected target device using the SP.SOCCINF instruction.)
Fullpassive Allows a connection to the device only when the specified IP address and port number are met. A connection made by another device
that does not have the specified IP address and port number is automatically disconnected before communication.
The expressions of Active and Passive opens may vary according to the device.
• Active open: TCP connection initiating device, client, connecting side, etc.
• Passive open: TCP connection waiting device, server, listening side, etc.
When the close processing is executed with a dedicated instruction from the Ethernet module, even if "Do Not
Open by Program" is set, the connection will not return to the open request standby state after the close
processing completes.
Program example
This section provides a program example for communication using TCP.
Start ... Specifies the port number of the communication target device that is
waiting for TCP connection and opens a connection by Active open
8
Open processing:
OPEN instruction
NO
Close processing:
Send by SOCSND
instruction or receive by CLOSE instruction
SOCRCV instruction
End
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Basic Settings]
[External Device Configuration] [Detailed Setting] [Ethernet Configuration (Mounting Position No.: n[Un])] screen
• Drag and drop the "Active Connection Module" from "Module List" to the left side on the screen. Execute the settings as
mentioned below.
Item Description
PLC Port No. 4096 (Setting range: 1 to 5548, 5570 to 65534)
Do not specify 5549 to 5569 because these ports are used by the system.
Sensor/Device IP Address 192.168.3.251 (Setting range: 0.0.0.1 to 223.255.255.254)
Port No. 4096 (Setting range: 1 to 65534)
END
....
<<When disconnected by the target device>>
.... TCP disconnection completed upon the response from the Ethernet-equipped module
CLOSE instruction
NO
Send and Receive?
YES
Send by SOCSND
instruction or receive by
SOCRCV instruction
■Parameter setting
The following parameters are set for the sample program.
[CPU module]
Navigation window [Parameter] Module model name [Module Parameter] [Ethernet Port] [Basic Settings]
[External Device Configuration] [Detailed Setting] [Ethernet Configuration (Built-in Ethernet Port)] screen
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Basic Settings]
[External Device Configuration] [Detailed Setting] [Ethernet Configuration (Mounting Position No.: n[Un])] screen
■Sample program
A program example using the CPU module is shown below.
<<Communication target confirmation processing>> *1
SD10680.0
SP.SOCCINF ″U0″ K1 D6000 D6010 Acquires information of the connected target
<<Data send processing>>
M3000 SD10680.0
MOVP K6 D300 Set length of the data to be sent
END
*1 For acquiring information of the device connected with TCP, run the program enclosed by the dotted line.
(It can be omitted when the information acquisition is not needed.)
• When a communication target is connected in the Passive open mode, the CPU module can acquire the IP address and
port number of the connected communication target using the SP.SOCCINF instruction.
• On TCP, one connection is established with one target device. To communicate with multiple devices from one port number,
prepare the same number of connections as the number of target devices. A connection that exceeds the preset number of
connections will be disconnected immediately.
• Do not accept a connection from a device until the Ethernet-equipped module is placed in the wait-for-open state. If a TCP
connection request is received before entering the wait-for-open state after completion of Ethernet-equipped startup, the
request will be recognized as an error, and a forced close message for the connection will be returned to the interfacing
device. In this case, wait until the state of Ethernet-equipped module side is changed to the wait-for-open state and then
retry the connection from the device.
• Do not execute the CLOSE instruction in a program. Doing so will disable data transfer since the Open completion signal 8
and Open request signal of the corresponding connection turn off for close processing. To reopen the closed connection,
execute the OPEN instruction.
When the close processing is executed with a dedicated instruction from the Ethernet module, even if "Do Not
Open by Program" is set, the close processing after the disconnection with the external device must be
executed by the program.
Parameter setting
[CPU module]
Navigation window [Parameter] Module model name [Module Parameter] [Ethernet Port] [Basic Settings]
[External Device Configuration] [Detailed Setting] [Ethernet Configuration (Built-in Ethernet Port)] screen
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Basic Settings]
[External Device Configuration] [Detailed Setting] [Ethernet Configuration (Mounting Position No.: n[Un])] screen
• Drag and drop the "UDP Connection Equipment" from "Module List" to the left side on the screen. Execute the settings as
mentioned below.
Item Description
PLC Port No. 4096 (Setting range: 1 to 5548, 5570 to 65534)
Do not specify 5549 to 5569 because these ports are used by the system.
Sensor/Device IP Address 192.168.3.251 (Setting range: 0.0.0.1 to 223.255.255.254)
Port No. 4096 (Setting range: 1 to 65534/65535)
Sample program
A program example using the CPU module is shown below.
<<Data send processing>>
M3000 SD10680.0
MOVP K6 D300 Set length of the data to be sent
END
*1 For acquiring information of the target device connected on UDP, run the program enclosed by the dotted line.
(It can be omitted when the information acquisition is not needed.)
■CLOSE instruction
Do not execute the CLOSE instruction in the program.
Doing so will disable data transfer since the Open completion signal and Open request signal of the corresponding connection
turn off for close processing.
To reopen the closed connection, execute the OPEN instruction.
For the OPEN instruction, refer to Page 143 Opening a connection.
• For configuration of data communication using the socket communication function, refer to Page 130
Communication Using TCP and Page 138 Communication Using UDP.
• If the instruction has a completion device, do not change any data, such as control data and request data,
that are specified for the instruction until the execution of the instruction is completed.
• Do not execute any socket communication function instruction in an interrupt program.
• For error codes, refer to Page 815 ERROR CODES or MELSEC iQ-F FX5 User's Manual
(Application).
SP.SOCOPEN
Establishes a connection. (CPU module dedicated instruction)
Ladder diagram Structured text
ENO: =SP_SOCOPEN(EN, U0, s1, s2, d);
FBD/LD
EN ENO
U0 d
s1
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U)*1 Dummy (Input the character string ['U0'].) Character string *2
(ANYSTRING_SINGLE)
(s1) Connection number 1 to 8 16-bit unsigned binary ANY16
8
(s2) Head device number for storing the control data Refer to Control data Word ANY16_ARRAY
( Page 144) (Number of elements: 10)
(d) Head device number which turns ON when the execution Bit ANYBIT_ARRAY
of the instruction is completed and remains on for 1 scan. (Number of elements: 2)
(d)+1 also turns on when failed.
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(U)
(s1)
(s2)
*1
(d)
0000H:
Connection is opened according to the settings set in
"External Device Configuration" of module parameter.
8000H:
Connection is opened according to the values specified for
control data (s2) +2 to (s2) +6.
(s2) + 1 Completion status Completion status is stored System
0000H: Completed
Other than 0000H: Failed (error code)
For the error codes, refer to Page 815 ERROR CODES.
(s2) + 2 Application setting area b15b14 b13 to b11 b10 b9 b8 b7 to b0 Shown on left side User
(s2)+2 [4] 0 [3] [2][1] 0
[1] Communication method (protocol)
0: TCP/IP
1: UDP/IP
[2] Socket communications function procedure
0: Communication protocol
1: Socket communications (No procedure)
[3] Communication protocol setting
0: Do not use the communication protocol support function
(use the socket communications function)
1: Use the protocol support function
[4] Open system
00: Active open or UDP/IP
10: Unpassive open
11: Fullpassive open
(s2) + 3 Host Station Port No. Specify the port number of the host station. 1 to 5548, 5570 to 65534
(0001H to 15ACH, 15C2H to
FFFEH)*3
(s2) + 4 Target device IP Specify the IP address of the target device. 1 to 3758096382
(s2) + 5 address*2 (00000001H to DFFFFFFEH)
(s2) + 6 Target device port Specify the port number of the target device. 1 to 65534 (0001H to
number*2 FFFEH)
(s2)+7 to Use prohibited System
(s2)+9
*1 User: Data to be set before the execution of the instruction. System: The CPU module stores the execution result of the instruction.
*2 When Unpassive open is selected, the target device IP address and target device port number are ignored.
*3 Of the host station port numbers, 1 to 1023 (0001H to 03FFH) are generally reserved port numbers and 61440 to 65534 (F000H to
FFFEH) are used by other communication functions. Thus, using 1024 to 5548 and 5570 to 61439 (0400H to 15ACH and 15C2H to
EFFFH) as the port numbers is recommended. Do not specify 5549 to 5569 (15ADH to 15C1H) since they are used by the system.
SP.SOCOPEN instruction
ON
OFF
Completion device (d)+0
ON When failed
OFF
Completion device (d)+1 1 scan when
Connection
normally completed
open
• The connection in which no protocol is set with the parameter can be opened and used. In this case, specify 8000H in
8
(s2)+0 and the contents of the open processing in (s2)+2 to (s2)+6.
Operation error
Error code Description
(SD0/SD8067)
3405H The connection number specified by (s1) is other than 1 to 8.
2820H The device number specified by (s2) or (d) is outside the range of the number of device points.
2822H Device that cannot be specified is specified.
3582H When an instruction which cannot be used in interruption routine program is used.
• Program
M1000 SD10680.0 SD10681.0 Set execution type/completion
MOVP H0 D100
type to 0H
SP.SOCOPEN ″U0″ K1 D100 M100 Open connection No.1
M100 M101
SET M150 Normal completion indication
M101
SET M151 Error completion indication
END
• Program
M1000 SD10680.0 SD10681.0 Set execution type/completion type
MOVP H8000 D100
to 8000H
END
FBD/LD
EN ENO
U d
s1
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U) Position number of the module connected ■FX5UJ CPU module 16-bit unsigned binary ANY16
1H to 8H
■FX5U/FX5UC CPU module
1H to 10H
(s1)
(s2)
Connection number
Head device number for storing the control data
1 to 32
Refer to Control data
16-bit unsigned binary
Word
ANY16
ANY16_ARRAY
8
( Page 148) (Number of elements:
10)
(d) Head device number which turns ON when the execution Bit ANYBIT_ARRAY
of the instruction is completed and remains on for 1 scan. (Number of elements: 2)
(d)+1 also turns on when failed.
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $ (U)
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(d) *1
*1 User: Data to be set before the execution of the instruction. System: The Ethernet module stores the execution result of the instruction.
*2 When Unpassive open is selected, the target device IP address and target device port number are ignored.
*3 Of the host station port numbers, 1 to 1023 (0001H to 03FFH) are generally reserved port numbers and 61440 to 65534 (F000H to
FFFEH) are used by other communication functions. Thus, using 1024 to 5548 and 5570 to 61439 (0400H to 15ACH and 15C2H to
EFFFH) as the port numbers is recommended. Do not specify 5549 to 5569 (15ADH to 15C1H) since they are used by the system.
• The connection in which no protocol is set with the parameter can be opened and used. In this case, specify 8000H in
(s2)+0 and the contents of the open processing in (s2)+2 to (s2)+6.
Operation error
Error code Description
((s2)+1)
1D80H An instruction other than executable dedicated instruction numbers has been specified.
1D83H The dedicated instruction request data from the CPU module was discarded because the data size was abnormal.
1D84H The dedicated instruction request data from the CPU module cannot be normally input.
1D85H A timeout error occurred in the dedicated instruction response data, and the data was discarded.
C029H Description of control data is not correct.
C1A6H A connection No. other than 1 to 32 has been specified.
8
• Program
• Program
SP.SOCCLOSE
Closes a connection. (CPU module dedicated instruction)
Ladder diagram Structured text
ENO: =SP_SOCCLOSE (EN, U0, s1, s2, d);
FBD/LD
EN ENO
U0 d
s1
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U)*1 Dummy (Input the character string ['U0'].) Character string *2
(ANYSTRING_SINGLE)
(s1) Connection number 1 to 8 16-bit unsigned binary ANY16
(s2) Head device number for storing the control data Refer to Control data Word ANY16_ARRAY
( Page 152) (Number of elements: 2)
(d) Head device number which turns ON when the execution Bit ANYBIT_ARRAY
of the instruction is completed and remains on for 1 scan. (Number of elements: 2)
(d)+1 also turns on when failed.
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(U)
(s1)
(s2)
*1
(d)
■Control data
Device Item Description Setting range Set by*1
(s2) + 0 System area
(s2) + 1 Completion status Completion status is stored System
0000H: Completed
Other than 0000H: Failed (error code)
For the error codes, refer to Page 815 ERROR CODES.
*1 System: The CPU module stores the execution result of the instruction.
SP.SOCCLOSE instruction
ON
OFF
Completion device (d)+0
ON When failed
OFF
Completion device (d)+1 1 scan when normally
Connection
completed
closed
Operation error 8
Error code Description
(SD0/SD8067)
3405H The connection number specified by (s1) is other than 1 to 8.
2820H The device number specified by (s2) or (d) is outside the range of the number of device points.
2822H Device that cannot be specified is specified.
3582H When an instruction which cannot be used in interruption routine program is used.
Do not use execute the SP.SOCCLOSE instruction for Passive open connection. Doing so will turn off the
Open completion signal and Open request signal of the connection and cause close processing, which
disables data transfer.
• Program
SD10680.0 SD10681.0 Processing when connection
PLS M161
No.1 is cut from the target device
M2000 SD10680.0 M210
SP.SOCCLOSE ″U0″ K1 D200 M200 Close connection No.1
M161 Set the SP.SOCCLOSE
SET M210
instruction execution flag
M200 M201
SET M202 Normal completion indication
M201
SET M203 Error completion indication
END
FBD/LD
EN ENO
U d
s1
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U) Position number of the module connected ■FX5UJ CPU module 16-bit unsigned binary ANY16
1H to 8H
■FX5U/FX5UC CPU
module
1H to 10H
(s1) Connection number 1 to 32 16-bit unsigned binary ANY16 8
(s2) Head device number for storing the control data Refer to Control data Word ANY16_ARRAY
( Page 155) (Number of elements: 2)
(d) Head device number which turns ON when the execution Bit ANYBIT_ARRAY
of the instruction is completed and remains on for 1 scan. (Number of elements: 2)
(d)+1 also turns on when failed.
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $ (U)
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(d) *1
■Control data
Device Item Description Setting range Set by*1
(s2) + 0 System area
(s2) + 1 Completion status Completion status is stored System
0000H: Completed
Other than 0000H: Failed (error code)
For the error codes, refer to Page 815 ERROR CODES.
*1 System: The Ethernet module stores the execution result of the instruction.
Operation error
Error code Description
((s2)+1)
1D80H An instruction other than executable dedicated instruction numbers has been specified.
1D83H The dedicated instruction request data from the CPU module was discarded because the data size was abnormal.
1D84H The dedicated instruction request data from the CPU module cannot be normally input.
1D85H A timeout error occurred in the dedicated instruction response data, and the data was discarded.
C029H Description of control data is not correct.
C1A6H A connection No. other than 1 to 32 has been specified.
Do not use execute the GP.CLOSE instruction for Passive open connection. Doing so will turn off the Open
completion signal and Open request signal of the connection and cause close processing, which disables
data transfer.
• Program
SP.SOCRCV
Reads the data received. (Read at END processing) (CPU module dedicated instruction)
Ladder diagram Structured text
ENO: =SP_SOCRCV (EN, U0, s1, s2, d1, d2);
FBD/LD
EN ENO
U0 d1
s1 d2
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U)*1 Dummy (Input the character string ['U0'].) Character string *2
(ANYSTRING_SINGLE)
(s1) Connection number 1 to 8 16-bit unsigned binary ANY16
(s2) Start number of the device where control data is specified Refer to Control data Word ANY16_ARRAY
( Page 159) (Number of elements: 2)
(d1) Start number of the device in which received data is stored Word ANY16
(d2) Head device number which turns ON when the execution Bit ANYBIT_ARRAY
of the instruction is completed and remains on for 1 scan. (Number of elements: 2)
(d2)+1 also turns on when failed.
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(d1)
(d2) *1
*1 System: The CPU module stores the execution result of the instruction.
• When the SP.SOCRCV instruction is executed, data is read from socket communication receiving data area
at END processing. Therefore, executing the SP.SOCRCV instruction will increase the scan time.
• When odd-byte data is received, an invalid byte is stored to the higher byte of the device that stores the last
received data.
Processing details
This instruction reads received data of the connection specified in (s1) from the socket communication receive data area in
the END processing after execution of the SP.SOCRCV instruction.
CPU module
Receive data Socket
(d1)+0 length communication 8
(d1)+1 Receive data receive data area
The result of the SP.SOCRCV instruction can be checked with the completion device (d2)+0 and (d2)+1.
• Completion device (d2)+0: Turns on in the END processing of the scan after completion of the SP.SOCRCV instruction, and
turns off in the next END processing.
• Completion device (d2)+1: Turns on or off according to the status at the time of completion of the SP.SOCRCV instruction.
Status Description
When completed Remains off.
When failed Turns on in the END processing of the scan after completion of the SP.SOCRCV instruction, and turns off in the next END
processing.
ON
Open completion signal OFF
(SD10680.n)
END processing END processing END processing END processing
Sequence program
ON
Receive state signal OFF
(SD10682.n) Execute SP.SOCRCV instruction
SP.SOCRCV instruction
1 scan
ON
Completion device (d2)+0 OFF
When failed
ON
Completion device (d2)+1 OFF
Data
reading
processing
Data
ACK
reception (Only TCP)
Operation error
Error code Description
(SD0/SD8067)
3405H The connection number specified by (s1) is other than 1 to 8.
2820H The size of the receive data exceeds the size of the receive data storage device.
The device number specified by (s2), (d1) or (d2) is outside the range of the number of device points.
2822H Device that cannot be specified is specified.
3582H When an instruction which cannot be used in interruption routine program is used.
• Program
M5000 SD10680.0 SD10682.0 M450 Execute reading received data of
SP.SOCRCV ″U0″ K1 D5000 D500 M450 connection No.1
M450 M451
SET M452 Normal completion indication
M451
SET M453 Error completion indication
END
Consecutively sent data can be consecutively read by connecting the completion device of the SP.SOCRCV 8
instruction to the execution command as a normally closed contact.
GP.SOCRCV
Reads the data received. (Ethernet module dedicated instruction)
Ladder diagram Structured text
ENO: =GP_SOCRCV (EN, U, s1, s2, d1, d2);
FBD/LD
EN ENO
U d1
s1 d2
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U) Position number of the module connected ■FX5UJ CPU module 16-bit unsigned binary ANY16
1H to 8H
■FX5U/FX5UC CPU module
1H to 10H
(s1) Connection number 1 to 32 16-bit unsigned binary ANY16
(s2) Start number of the device where control data is specified Refer to Control data Word ANY16_ARRAY
(Page 163) (Number of elements: 2)
(d1) Start number of the device in which received data is stored Word ANY16*1
(d2) Head device number which turns ON when the execution Bit ANYBIT_ARRAY
of the instruction is completed and remains on for 1 scan. (Number of elements: 2)
(d2)+1 also turns on when failed.
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $ (U)
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(d1)
(d2) *1
*1 System: The Ethernet module stores the execution result of the instruction.
• When the GP.SOCRCV instruction is executed, data is read from socket communication receiving data area
at END processing. Therefore, executing the GP.SOCRCV instruction will increase the scan time.
• When odd-byte data is received, an invalid byte is stored to the higher byte of the device that stores the last
received data.
Processing details
This instruction reads received data of the connection specified in (s1) from the socket communication receive data area in
the END processing after execution of the GP.SOCRCV instruction.
The result of the GP.SOCRCV instruction can be checked with the completion device (d2)+0 and (d2)+1.
• Completion device (d2)+0: Turns on in the END processing of the scan after completion of the GP.SOCRCV instruction,
and turns off in the next END processing.
• Completion device (d2)+1: Turns on or off according to the status at the time of completion of the GP.SOCRCV instruction.
8
Status Description
When completed Remains off.
When failed Turns on in the END processing of the scan after completion of the GP.SOCRCV instruction, and turns off in the next END
processing.
Operation error
Error code Description
((s2)+1)
1D80H An instruction other than executable dedicated instruction numbers has been specified.
1D83H The dedicated instruction request data from the CPU module was discarded because the data size was abnormal.
1D84H The dedicated instruction request data from the CPU module cannot be normally input.
1D85H A timeout error occurred in the dedicated instruction response data, and the data was discarded.
C029H Description of control data is not correct.
C1A6H A connection No. other than 1 to 32 has been specified.
• Program
Consecutively sent data can be consecutively read by connecting the completion device of the GP.SOCRCV
instruction to the execution command as a normally closed contact.
SP.SOCSND
Sends data. (CPU module dedicated instruction)
Ladder diagram Structured text
ENO: =SP_SOCSND (EN, U0, s1, s2, s3, d);
FBD/LD
EN ENO
U0 d
s1
s2
s3
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U) *1
Dummy (Input the character string ['U0'].) Character string *2
(ANYSTRING_SINGLE)
8
(s1) Connection number 1 to 8 16-bit unsigned binary ANY16
(s2) Start number of the device where control data is specified Refer to Control data Word ANY16_ARRAY
( Page 166) (Number of elements: 2)
(s3) Start number of the device in which send data is stored Word ANY16
(d) Head device number which turns ON when the execution Bit ANYBIT_ARRAY
of the instruction is completed and remains on for 1 scan. (Number of elements: 2)
(d)+1 also turns on when failed.
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(s3)
(d) *1
*1 User: Data to be set before the execution of the instruction. System: The CPU module stores the execution result of the instruction.
For TCP, set the send data length within the maximum window size of the target device (receive buffer of
TCP). Data whose size exceeds the maximum window size cannot be sent.
Processing details
This instruction sends data set in (s3) to the target device of the connection specified by (s1).
CPU module
The result of the SP.SOCSND instruction can be checked with the completion device, (d)+0 and (d)+1.
• Completion device (d)+0: Turns on in the END processing of the scan after completion of the SP.SOCSND instruction, and
turns off in the next END processing.
• Completion device (d)+1: Turns on or off according to the status at the time of completion of the SP.SOCSND instruction.
Status Description
When completed Remains off.
When failed Turns on in the END processing of the scan after completion of the SP.SOCSND instruction, and turns off in the next END
processing.
Data send
processing
Data
transmission
(send) *1 *1 Even after completion device
turns ON, data transmission
may continue.
Operation error
Error code Description
(SD0/SD8067)
3405H The connection number specified by (s1) is other than 1 to 8.
2820H The device number specified by (s2), (s3) or (d) is outside the range of the number of device points.
8
2822H Device that cannot be specified is specified.
3582H When an instruction which cannot be used in interruption routine program is used.
Program example
When M3000 is turned on, data (1234, 5678, and 8901) are sent to the target device using the socket communication
function.
• Devices used
Device No. Application
SD10680 Open completion signal
D3000 SP.SOCSND instruction control data
D300 to D303 Send data length and send data storage location
M300 SP.SOCSND instruction normal completion device
M301 SP.SOCSND instruction error completion device
M302 Normal completion indication
M303 Error completion indication
M3000 SP.SOCSND instruction drive flag
END
FBD/LD
EN ENO
U0 d
s1
s2
s3
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U) Position number of the module connected ■FX5UJ CPU module 16-bit unsigned binary ANY16
1H to 8H
■FX5U/FX5UC CPU module
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $ (U)
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(s3)
(d) *1
*1 User: Data to be set before the execution of the instruction. System: The Ethernet module stores the execution result of the instruction.
For TCP, set the send data length within the maximum window size of the target device (receive buffer of
TCP). Data whose size exceeds the maximum window size cannot be sent.
Processing details
This instruction sends data set in (s3) to the target device of the connection specified by (s1).
The result of the GP.SOCSND instruction can be checked with the completion device, (d)+0 and (d)+1.
• Completion device (d)+0: Turns on in the END processing of the scan after completion of the GP.SOCSND instruction, and
turns off in the next END processing.
• Completion device (d)+1: Turns on or off according to the status at the time of completion of the GP.SOCSND instruction.
Status Description
When completed Remains off.
When failed Turns on in the END processing of the scan after completion of the GP.SOCSND instruction, and turns off in the next END
processing.
Operation error
Error code Description
((s2)+1)
1D80H An instruction other than executable dedicated instruction numbers has been specified.
1D83H The dedicated instruction request data from the CPU module was discarded because the data size was abnormal.
1D84H The dedicated instruction request data from the CPU module cannot be normally input.
1D85H A timeout error occurred in the dedicated instruction response data, and the data was discarded.
C020H A data size exceeding the maximum data length has been specified.
C027H Socket communication send message has failed.
C029H Description of control data is not correct.
C1A6H A connection No. other than 1 to 32 has been specified.
• Program
SP.SOCCINF
Reads connection information. (CPU module dedicated instruction)
Ladder diagram Structured text
ENO: =SP_SOCCINF (EN, U0, s1, s2, d);
FBD/LD
EN ENO
U0 d
s1
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(U)*1 Dummy (Input the character string ['U0'].) Character string *2
(ANYSTRING_SINGLE)
(s1) Connection number 1 to 8 16-bit unsigned binary ANY16
(s2) Head device number for storing the control data Refer to Control data Word ANY16_ARRAY
( Page 173) (Number of elements: 2)
(d) Start number of the device in which connection Word ANY16_ARRAY
information is stored (Number of elements: 5)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(d)
*1 System: The CPU module stores the execution result of the instruction.
*2 In case of execution for an unopened connection, 0H is returned.
*3 Of the host station port numbers, 1 to 1023 (0001H to 03FFH) are generally reserved port numbers and 61440 to 65534 (F000H to
FFFEH) are used by other communication functions. Thus, using 1024 to 5548 and 5570 to 61439 (0400H to 15ACH and 15C2H to 8
EFFFH) as the port numbers is recommended. Do not specify 5549 to 5569 (15ADH to 15C1H) since they are used by the system.
Processing details
This instruction reads connection information specified in (s1).
Operation error
Error code Description
(SD0/SD8067)
3405H The connection number specified by (s1) is other than 1 to 8.
2820H The device number specified by (s2) or (d) is outside the range of the number of device points.
2822H Device that cannot be specified is specified.
Program example
When M5000 is turned on, connection information of connection No.1 is read.
• Devices used
Device No. Application
D500 SP.SOCCINF instruction control data
D5000 Storage location of connection information
M5000 SP.SOCCINF instruction drive flag
• Program
M5000 Execute reading connection
SP.SOCCINF ″U0″ K1 D500 D5000
information of connection No.1
END
S(P).SOCRDATA
Reads data from the socket communication receive data area. (CPU module dedicated instruction)
Ladder diagram Structured text
ENO: =S_SOCRDATA (EN, U0, s1, s2, n, d);
ENO: =SP_SOCRDATA (EN, U0, s1, s2, n, d);
(U) (s1) (s2) (d) (n)
FBD/LD
EN ENO
U0 d
s1
s2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
*1
(U) Dummy (Input the character string ['U0'].) Character string *2
(ANYSTRING_SINGLE)
(s1) Connection number 1 to 8 16-bit unsigned binary ANY16
(s2) Head device number for storing the control data Refer to Control data Word ANY16_ARRAY
( Page 174) (Number of elements: 2)
(d) Start number of the device where read data is stored Word ANY16
(n) Number of read data (1 to 1024 words) 1 to 1024 16-bit signed binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
*2 Regardless of the program language to be used, the data type is specified by a device. Do not specify a label.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(U)
(s1)
(s2)
(d)
(n)
■Control data
Device Item Description Setting range Set by*1
(s2) + 0 System area
(s2) + 1 Completion status Completion status is stored System
0000H: Completed
Other than 0000H: Failed (error code)
For the error codes, refer to Page 815 ERROR CODES.
*1 System: The CPU module stores the execution result of the instruction.
The received data length can be read by setting the number of read data to one word. This allows change of
the device storing receive data, when executing the SP.SOCRCV instruction.
Precautions
• Even if the S(P).SOCRDATA instruction is executed, the next receive data will not be stored in the socket communication
receive data area because the area is not cleared and the Receive state signal does not change.
• To update the received data, read the data using the SP.SOCRCV instruction.
Operation error
Error code Description
(SD0/SD8067)
3405H The connection number specified by (s1) is other than 1 to 8.
2820H The device number specified by (s2), (d), or (n) is outside the range of the number of device points.
2822H Device that cannot be specified is specified.
Program example
When M4000 is turned on, the received data length of connection No.1 is read.
• Devices used
8
Device No. Application
SD10680 Open completion signal
SD10682 Receive state signal
D400 S.SOCRDATA instruction control data
D4000 Storage location where data is read
M4000 S.SOCRDATA instruction drive flag
K1 Number of read data (one word)
• Program
M4000 SD10680.0 SD10682.0 Execute reading of the length of
S.SOCRDATA ″U0″ K1 D400 D4000 K1 received data of connection No.1
END
Port number
Host station port number, 1 to 1023 (0001H to 03FFH), are assigned for reserved port numbers (WELL KNOWN PORT
NUMBERS) and 61440 to 65534 (F000H to FFFEH) are for other communication functions. Therefore, using 1024 to 5548,
5570 to 61439 (0400H to 15ACH, 15C2H to EFFFH) is recommended.
Do not specify 5549 to 5569 (15ADH to 15C1H) because these ports are used by the system.
Do not specify 45237 (B0B5H) and 61440 to 65534 (F000H to FFFEH) for the socket communication function when using the
iQ Sensor Solution-compatible function.
When using the following functions, do not specify the port number reserved for the socket communication function.
• File transfer function (FTP server): 20 (14H), 21 (15H)
• Web server function: 80 (50H)*1
• Time setting function (SNTP client): 123 (7BH)
• SLMP function: 61440 (F000H), 61441 (F001H)
• CC-Link IE Field Network Basic: 61450 (F00AH)
*1 Port No. can be changed. (Default: 80)
Is TCP connection NO
open?
YES
Receive the rest of the message TCP connection is closed
NO Is receive data-size
sufficient?
YES
Process for the received message
8
Was the entire NO
received message
processed?
YES
■Password Setting
• Current password
Enter the current password for login to the CPU module.
Default password (initial setting) is "FXCPU".
Although the default password can be used, it is recommended to change it to another password to prevent
unauthorized access.
Is the FTP
communication port NO
subject to remote password
check?
YES
(quote password-unlock
Unlock the remote password.
"remote password" q)
End
NO
Notify no file conversion. (binary q) Check the file list. (dir q Notify no file conversion. (binary q)
or ls q)
Check the file list. (dir q Check the file list. (dir q
NO Does the delete or ls q)
or ls q)
target file exist?
NO Does the read YES NO Does the write
target file exist? target file exist?
NO Is file password
YES YES
set for the target file?
NO Is file password YES NO
(quote password-wr Can it be overwritten?
set for the target file?
Enter a file password. "write password"q)
YES YES
(quote
Enter a file password. password-rd Delete the file. (delete "file name" NO
"read password"q) Is file password set
q) for the target file?
Read the file. (get "file name" q) YES
Enter a file password. (quote passwd-wr
"write password"
q)
Ò
Ó
Use the login name and password that are set in "FTP Server Settings" under "Application Settings". When the CPU module
(FTP server) receives the login name and password from the external device (FTP client), it checks that the login name and
password are correct.
If the login name and password are correct, transfer of the files to the CPU module is permitted. If incorrect, file transfer is not
permitted.
If the FTP communication port is specified as a remote password check target, some commands cannot be
used until the remote password is unlocked.
For details on the commands that can be used in the locked state, refer to the following.
Page 182 FTP Command
*1 The command may not be executed depending on the file type. ( Page 182 Files That Can Be Transferred with FTP)
*2 If executed, the process completes abnormally.
*3 Shows the "Allow Online Change" setting in "FTP Server Settings" under "Application Settings". If an illegal command is executed while
write is prohibited during RUN, the process completes abnormally.
*4 Shows whether the command can be executed when the FTP communication port performs a remote password check with the remote
password setting. For details on the remote password, refer to the following.
Page 235 Remote Password
*5 The parameter file and program file cannot be deleted when the CPU module is in the RUN state.
*6 Only the subcommands dedicated for the CPU module can be used. For the subcommands that can be used, refer to the following.
Page 183 Subcommands usable with quote command
Ex.
Executing the STOP command
Input the following at the command prompt.
quote stop
The following table lists the subcommands can be used.
: Executable, : Not executable*1
Command Function CPU module status Remote password
STOP RUN Unlocked Locked
Write Write
enable prohibit
passwd-rd Sets, shows or clears the file password (read
password).
passwd-wr Sets, shows, or clears the file password (write
password).
password-lock Changes the remote password from the unlock state *2
to the lock state.
password-unlock Changes the remote password from the lock state to
the unlock state.
• Note that depending on the client side FTP application, some of the FTP commands may not operate as
described in this manual. Refer to the manual for the FTP client, and check the functions, operation
methods, and so on.
• The section enclosed in square brackets [ ] in the specification format can be omitted.
Specification format
FTP client side file as log data.
mdir "source drive name":\"destination file path name"
9
Example When storing the detailed information of file stored in SD memory card into 20160101.LOG file
mdir 2:\20160101.LOG
Caution • Always specify "\" immediately after the source drive name.
• Always specify the source drive name when specifying the destination file path name (FTP client side).
• If the destination file path name is not specified, the file is stored with the file name determined by the FTP
client's FTP application.
• The transfer destination is in the currently connected directory when FTP is started and connected.
Similar command mls
mget Function Reads a file from the CPU module.
When reading multiple files, specify the file name and extension in the file path name with wild cards (*, ?).
When reading multiple files, receive is confirmed before transferring each file.
Specification format mget "file path name"
Example When reading all files with "BIN" extension from files stored in SD memory card
mget 2:\*.BIN
Caution • The read file is stored with the same file name in the FTP client side. The storage destination is in the current
connection directory when the FTP is started and connected.
mls Function Stores the file name of the file stored in the CPU module in the FTP client side file as log data.
Specification format mls "source drive name":\"destination file path name"
Example When storing the file name of file stored in SD memory card into 20160101.LOG file
mls 2:\20160101.LOG
Caution • Always specify "\" immediately after the source drive name.
• Always specify the source drive name when specifying the destination file path name (FTP client side).
• If the destination file path name is not specified, the file is stored with the file name determined by the FTP
client's FTP application.
• The transfer destination is in the currently connected directory when FTP is started and connected.
Similar command mdir
mput Function Writes the file to the CPU module.
When writing multiple files, specify the file name and extension in the file path name with wild cards (*, ?).
When writing multiple files, send is confirmed before transferring each file.
Specification format mput "source file path name"
Example When writing all files with "PRG" extension
mput*.PRG
Caution • The storage destination file name is the same as the FTP client side.
• The transmission destination is the SD memory card (drive 2).
open Function Specifies the host name or IP address and port number on the FTP server side, and connects with the FTP
server.
Specification format open "host name" [port number]
open "IP address" [port number]
• Host name: Host name set with Microsoft Windows hosts file
• IP address: IP address of the CPU module side
• Port number: Port number to be used (If omitted, port number 21 is used for operation)
Example 1 When specifying the host name and connecting to the FTP server
open HOST
Example 2 When specifying the IP address and connecting to the FTP server
open 192.168.3.250
Caution The IP address can be specified to create a connection when starting the FTP.
put Function Writes the file to the CPU module.
Specification format put "source file path name" [destination file path name]
Example 1 When writing the param.PRM file to the SD memory card with the same file name
put param.PRM 2:\param.PRM
Example 2 When writing the param.PRM file to the SD memory card with a different file name
put param.PRM 2:\param1.PRM
Caution If the directory is not specified with the source file path name (FTP client side), the file in the current connection
directory when the FTP server is started and connected is written.
pwd Function Displays current directory name of the CPU module.
Specification format pwd
FTP client
• The FTP command specifications may differ from this manual depending on the FTP client. In this case, refer to the manual
for the FTP client and check the functions and operation methods.
• FTP operations are not possible from Microsoft Internet Explorer. If attempted, Internet Explorer will issue an error.
• Specify the IP address for the FTP command without zero fill. (Do not set "1" as "001".)
Communication processing
• If a timeout error occurs during file transfer, the TCP/IP connection will be closed. Log into the CPU module with the FTP
client again before resuming file transfer.
• The existence of the external device is checked with the FTP connection.
• The file transfer processing time will differ according to the Ethernet line's load rate (line congestion), the number of
connections being used simultaneously (other connection's communication processing), and system configuration
(distance between FTP server and FTP client, method of accessing CPU module).
• Only one external device (FTP client) can log into the CPU module at one time. If a connection is attempted from another
FTP client in the login state, an error will occur without establishing the connection.
• If another communication function is simultaneously executed with UDP/IP during file transfer with FTP, a timeout error and
others may occur. Either communicate after the file is transferred, or communicate with TCP/IP.
Writing files
• An existing file cannot be overwritten. Delete an existing file with the file delete command (delete, mdelete) before writing
files.
• A read-only file or a file locked by a function other than FTP cannot be written. If attempted, a write error occurs.
• A file cannot be transferred when the SD memory card used is protected. If attempted, a write error occurs.
• When writing a large file to the SD memory card, set the CPU module to STOP. If writing is performed in the RUN state, a
communication error may occur.
• The number of files that can be written is maximum [maximum number of files that can be written] - 1 file. For details on the
maximum number of files that can be written to the SD memory card, refer to the following.
MELSEC iQ-F FX5 User's Manual (Application)
FTP password
The FTP password can be reset with the following procedure when it is lost.
1. Read the parameters from the CPU module with the engineering tool.
2. Click the [Restore the Default Settings] button in "Application Settings" to return all "Application Settings" to the default
values.
5. Enable the parameters by powering off and on or resetting the CPU module.
When returning to the default parameters, all items set in "Application Settings" must be reset in addition to
the "FTP Server Settings".
END
*1 To execute this function, an FTP server is required. For details on an FTP server, refer to the manual for the server used.
The SD memory card module is required to use the FX5S CPU module.
Transferable file
"\"or "/" can be used as a delimiter between folder path and file. However, "\" cannot be used as a delimiter for
some FTP servers.
1. Set the FTP server. ( Page 191 Setting in the external device (FTP server))
2. Set the FTP client. ( Page 192 Setting in the CPU module (FTP client))
1. Set the IP address of the CPU module to be used as an FTP client. ( Page 39 Setting module parameters)
2. Set the file transfer function (the FTP client). ( Page 192 FTP Client Setting)
Set an IP address of the same address class as that of the FTP server.
Program example
■Devices used
Device No. Application
SM402 After RUN, ON for one scan only
SM600 Memory card usable
SM1218 Data logging setting No.1 Logging data storage file switching in progress
D0 Application setting area (SP.FTPPUT instruction control data)
• D0.2: Transfer completion file delete setting
• D0.3: Temporary file create setting
D1 Completion status (SP.FTPPUT instruction control data)
D2 Total number of files to be transferred (SP.FTPPUT instruction control data)
D3 Number of transferred files (SP.FTPPUT instruction control data)
D102 File transfer completion status
M0 SP.FTPPUT instruction normal completion indication
M1 SP.FTPPUT instruction error completion indication
M100 SP.FTPPUT instruction drive flag
M101 File transfer normal completion indication
M102 File transfer error completion indication
M1
SET M102 Error completion indication
END
Program example
■Devices used
Device No. Application
SD1210 Data logging setting No.1 Latest storage file number [Low-order]
SD1211 Data logging setting No.1 Latest storage file number [High-order]
SM402 After RUN, ON for one scan only
SM600 Memory card usable
SM1218 Data logging setting No.1 Logging data storage file switching in progress
D0 Application setting area (SP.FTPPUT instruction control data)
• D0.2: Transfer completion file delete setting
• D0.3: Temporary file create setting
D1 Completion status (SP.FTPPUT instruction control data)
D2 Total number of files to be transferred (SP.FTPPUT instruction control data)
D3 Number of transferred files (SP.FTPPUT instruction control data)
D102 File transfer completion status
D200 to D238 File names stored in the CPU module (transfer source)
Example: "2:\LOGGING\LOG01\00000001\00000001.BIN"*1
D1000 to D1001 Calculation area to calculate a folder number
D1010 Character string length of an ASCII code file name (transfer source)
D2000 to D2099 Work area to edit an ASCII code file name (transfer source)
M0 SP.FTPPUT instruction normal completion indication
M1 SP.FTPPUT instruction error completion indication
M100 SP.FTPPUT instruction drive flag
M101 File transfer normal completion indication
M102 File transfer error completion indication
Create the logging file name (ASCII code) to D2030. (Ex.) "00000001\"
• Calculate the most recently stored file number of logging. (D1000 and D1001)
• Calculation procedure:
Ò(Most recently stored file number - 1) / H100
Ó(Result of Ò) ª H100 + 1
SM1218
D-_U D1000 H1 D1002 Most recently stored file number - 1
Create the full path of the logging file (ASCII code) to D2060. (Ex.) "2:\LOGGING\LOG01\00000001\00000001.BIN"
SM1218 To append the upper folder (2:\LOGGING\LOG01\)
$+ "2:\LOGGING\LOG01\" D2030 D2040
and the corresponding logging file (D2030)
At the timing of logging file switchover completion of the logging setting No. 1 (at fall of SM1218), the files specified to areas starting from D200 are sent
to "LOGGING" of the FTP server from the SD memory card of the CPU module.
SM1218 To turn on the drive flag at the timing of
SET M100 logging file switchover completion
M100 SM600 To send logging file to the FTP server
SP.FTPPUT 'U0' D0 D200 "LOGGING" M0
M1
SET M102 Error completion indication
END
MOV K0 D217
SP.FREAD instruction
Data type specification = Word
SET M310
SP.FREAD instruction
execution command
M201
SET M302 Abnormal completion indication
M211
SET M304 Abnormal completion indication
RST M310
The SP.FTPGET instruction
execution command is turned OFF.
Communication processing
If another communication function (MELSOFT connection or SLMP) is simultaneously executed with UDP/IP during file
transfer with FTP, an error such as timeout may occur. Either communicate after the file is transferred, or communicate with
TCP/IP.
Time query 11
LAN
CPU module
Hub
Ethernet
Engineering tool
An SNTP server (time information server) must be provided on the LAN line to use this function.
When setting the time during powering on or resetting the CPU module, check the hub or external device
connection before setting.
*1 To specify the day of the week for the time setting to be executed, set the day, for the time setting not to be executed, under "Day of
Week" to "Not Set". (Time setting is set to be executed every day (all the days are set to "Set") by default.)
When specifying the day of the week, set at least one day of the week to "Set". An error occurs when all the days are set to "Not Set".
The SNTP server must be only one in a network. The time to be output is the same even though multiple
modules in the same system retrieve time from the same SNTP server.
Precautions 11
■Communication timeout
If a response is not received from the SNTP server (time information sever) for 20 seconds after the time setting is executed,
the communication times out. An error occurs when the communication times out and the event code is registered in the event
history.
In addition, the communication times out when the following settings are configured by using the IP filter function. ( Page
232 IP Filter Function)
• Not set the SNTP server address to the penetration address of the IP filter.
• Set the SNTP server address to the exclusion address of the IP filter.
Style sheet
Descriptions for the styles such as character size, color, line color, the background color of the user Web page can be omitted.
If descriptions are omitted or incorrect, the following default display according to the style sheet (UserWebStyle.css) is
applied.
Item Default
Character color Black
Background color White
Line color Black
Fill color of level display Blue
Graph line color Blue
Character size 20
Button character color According to the setting of the Web browser.
Button background color According to the setting of the Web browser.
Button line color According to the setting of the Web browser.
The character font differs depending on the terminal used to display the user Web page.
When editing the style sheet in the library of the user Web page, do not change the class names in the style
sheet. In addition, do not define the style classes with the same name.
*1 K: Decimal, H: Hexadecimal
*2 When specifying X and Y, specify in octal.
*3 When T, ST, C, or LC is specified, the device is treated as the device of current value (TN, STN, CN, or LCN).
Ex.
When refreshing the user Web page in 10-second interval
<script>
var updateInterval = 10;
</script>
Available files
The following files are available in the user Web page.
File Extension MIME type
HTML .html text/html
.htm text/htm
JavaScript .js text/javascript
CSS .css text/css
GIF image .gif image/gif
PNG image .png image/png
JPG/JPEG image .jpg (.jpeg) image/jpeg
xPos
devValHeight
12
blkSize = 5
lnCol
devNamHeight
direction = 1 (Horizontal)
blkSize = 5
*1 When the device name is not displayed (devNamDisp = 0), a setting is not required.
Precautions
• Write all the necessary parameters. If the necessary parameters are not written or the setting value is out of range, an error
occurs.
• If the data format is the single-precision real number, the positional notation will be the decimal.
yPos
levWidth
upperVal Current value > upperAlmVal Current value < lowerAlmVal
xPos
upperAlmVal upperCol 12
bkCol
levLength
almLnCol
levCol
lowerAlmVal
lowerCol
lowerVal
devValHeight devValCol
devValWidth devValBkCol
direction = 1 (Horizontal)
levLength
levWidth
devValHeight
devValWidth
Precautions
Write all the necessary parameters. If the necessary parameters are not written or the setting value is out of range, an error
occurs.
yPos
figWidth defCol range[n].high ≥ Current value ≥ range[n].low
xPos
figHeight
range[n].col 12
figType = 'Rect' (rectangle)
Window
yPos
figWidth defCol
xPos
figHeight
yPos
figWidth defCol
xPos
figHeight
When a negative value is set for the figure height (figHeight), the downward triangle is displayed.
Precautions
• Write all the necessary parameters. If the necessary parameters are not written or the setting value is out of range, an error
occurs.
• If the setting ranges overlap, the figure with the lower number of the setting range is displayed. For example, when the
device value is in both of the setting range 1 and 2, the figure of the setting range 1 is displayed.
yPos defPicture
pictWidth range[n].high ≥ Current value ≥ range[n].low
STOP RUN
xPos
pictHeight
range[n].picture
12
Parameter
Set range[n] according to the number of ranges of images to be displayed. (n: 0 to 4)
: Required, : Optional
Element name Item Description Requirement
devName Device name Device type + device number
devFormat The data format of the device 0: 16-bit signed
1: 16-bit unsigned
2: 32-bit signed
3: 32-bit unsigned
4: Single-precision real number
6: Bit
pictHeight Display range height of image file Real numbers (unit: px)
When a negative value is set, the value is treated as an absolute
pictWidth Display range width of image file
value.
defPicture Name of image file to be For a name of image file, only ASCII character string can be used.
displayed as default Extension: .jpg, .jpeg, .gif, .png
(This item is displayed when the device value is out of the setting
range.)
rangeNum Number of setting ranges 1 to 5
range[0].low Lower limit of setting range 1 A numeric value (decimal) within the range of the specified data
format
range[0].high Upper limit of setting range 1
range[0].picture Name of image file displayed Extension: .jpg, .jpeg, .gif, .png
when device value is within
setting range 1
range[1].low Lower limit of setting range 2 A numeric value (decimal) within the range of the specified data
format
range[1].high Upper limit of setting range 2
range[1].picture Name of image file displayed Extension: .jpg, .jpeg, .gif, .png
when device value is within
setting range 2
range[4].low Lower limit of setting range 5 A numeric value (decimal) within the range of the specified data
format
range[4].high Upper limit of setting range 5
range[4].picture Name of image file displayed Extension: .jpg, .jpeg, .gif, .png
when device value is within
setting range 5
xPos X-coordinate The horizontal coordinate of the figure display range at the upper
left end (unit: px)
yPos Y-coordinate The vertical coordinate of the figure display range at the upper left
end (unit: px)
yPos
xPos upperMargin
upper
grBkCol
grElm[0].lnCol
xLine
After the refreshing cycle has passed
lower
leftMargin lowerMargin grWidth dispCol rightMargin
(2) (1)
pointNum
(1) Refreshing cycle
(2) Data in a refreshing cycle is out of the display range.
Precautions
• Write all the necessary parameters. If the necessary parameters are not written or the setting value is out of range, an error
occurs.
• The numerical value used in the historical graph is fixed to decimal.
• If the communication load is high for a while, the device value may be lost.
yPos wrBtn
btnWidth
xPos
btnHeight
btnTxt
Parameter
: Required, : Optional
Element name Item Description Requirement
devName Device name Device type + device number
devBase Positional notation of device K: Decimal
H: Hexadecimal
B: Binary
devFormat The data format of the device 0: 16-bit signed
1: 16-bit unsigned
2: 32-bit signed
3: 32-bit unsigned
4: Single-precision real number
6: Bit
wrVal Write value The setting range depends on the positional notation and data
format of the device. Specify a string for the input value.
Example: wrVal: '1'
wrBtn Write button Class element name
It is used for the selector of the style sheet.
btnTxt Text displayed on the button Optional
(If omitted, it is
empty)
btnWidth Button width Positive real numbers (unit: px)
btnHeight Button height
wrComfirm Write confirmation message 0: Do Not Display
1: Display (If omitted, it is 0)
language Message language 0: Japanese
1: English (If omitted, it is 1)
2: Chinese (Simplified)
xPos X-coordinate The horizontal coordinate of the write button at the upper left end
(unit: px)
yPos Y-coordinate The vertical coordinate of the write button at the upper left end
(unit: px)
Precautions
• Write all the necessary parameters. If the necessary parameters are not written or the setting value is out of range, an error
occurs.
• If no parameter is specified for the write button, the default style specified in UserWebStyle.css is applied.
logOutBtn
yPos
btnWidth
xPos btnHeight
btnTxt
12
Parameter
: Required, : Optional
Element name Item Description Requirement
logOutBtn Logout button Class element name of button object
(It is used for the selector of the style sheet.)
btnTxt Text displayed on the button Optional
(If omitted, it is
empty)
btnWidth Button width Positive real numbers (unit: px)
btnHeight Button height
xPos X-coordinate The horizontal coordinate of the logout button at the upper left end
(unit: px)
yPos Y-coordinate The vertical coordinate of the logout button at the upper left end
(unit: px)
Precautions
• Write all the necessary parameters. If the necessary parameters are not written or the setting value is out of range, an error
occurs.
• When using the logout button, always store the user login page (Log-in_User.html) in the SD memory card.
• If no parameter is specified for the logout button, the default style specified in UserWebStyle.css is applied.
• Only one logout button can be used in one Web page.
The data acquisition from the Web server or the operation to the Web server is executed by passing it as the CGI request from
the client and returning the execution result as a response to the client.
Device name
The following table lists the devices that can be accessed with the device read CGI and device write CGI.
Type Device
Bit device X, Y, M, L, B, F, SB, S, TS, TC, STS, STC, CS, CC, LCS, LCC, SM
Word device T (TN), ST (STN), C (CN), D, W, SW, SD, U\G, Z, R
Double-word device LC (LCN), LZ
• When specifying a device name in octal such as X or Y, specify the device name in hexadecimal.
(Example: When specifying X20, specify X10 in CGI.)
• When specifying a device name which includes \, such as U\G directly by HTML and JavaScript, repeat
\ as U\\G. (\ is an escape sequence.)
Device value
The notation of the device value used in the CGI object should be as follows:
• The CGI object treats device values as a string type in hexadecimal notation. When using the decimal number or real
number in the Web page, convert decimal or real number by using JavaScript.
• To add 0x to the head is not necessary. Do not perform the 0 interpolation. For example, when reading/writing the value
0x012F, set the string 12F as the device value.
• The case of the hexadecimal alphanumeric character is ignored. For example, the device value can be expressed either as
12F or 12f to read/write the value 0x012F.
Request specifications
The following table lists the parameters used for the request.
Parameter Data type Description Setting range
name
NUM string Hexadecimal string of the number Set this parameter so that the total number of device points specified to read/write in
of read device points (n: 1 to 32) one Web page is within 32 points.
DEV1 string Device name of the first point Up to 10 alphanumeric characters
(This parameter is not case-sensitive. The indirect specification, bit specification, digit
specification, or index modification cannot be performed.)
Page 220 Device name
TYP1 string Device size of the first point B: Bit
W: Word
D: Double word
Page 221 Device size
DEV(n) string Device name of the nth point (n: 1 Up to 10 alphanumeric characters
to 32) (This parameter is not case-sensitive. The indirect specification, bit specification, digit
specification, or index modification cannot be performed.)
TYP(n) string Device size of the nth point B: Bit
W: Word
D: Double word
The format of the request data is the query string. Specify DEV(n) and TYP(n) with the serial number. Otherwise, an error
occurs.
Ex.
When reading 10 points of device from D0, M100, , SD0
NUM=A&DEV1=D0&TYP1=D&DEV2=M100& &DEV10=SD0&TYP10=W
Ex.
Response data of the device read CGI
{
"RET" : "0000",
"DATA" : [
"100",
"FABC"
]
}
To display the device value in the real number format on the Web page, specify D: Double word for the device
size and execute a request (1). Convert the read data to the real number format by using JavaScript (2).
D0 B36FH
D1 35A5H
(1)
DATA[0] "35a5b36f"
(2)
D0 Single-precision 1.234568E-06
real number
Web page
■Display of HTML
■HTML example
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- charset setting*Set UTF-8 which is set in the Web server setting -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<!-- Set the title name -->
<title>Device read CGI sample</title>
<!-- Write the JavaScript of the user here -->
<script>
// The function for a CGI request
function ReadDeviceRandomTbl(devtblid) {
var devtblitem = document.getElementById(devtblid);
var i, devitem, typitem;
var tblrows = devtblitem.rows.length;
var param;
var i, dataitem;
var devtblitem = document.getElementById(devtblid);
var tblrows = devtblitem.rows.length; // Obtain the number of the table lines (including the header).
var res = JSON.parse( xhr.response ); // Analysis processing of JSON string
(5)
Request specifications
The following table lists the parameters used for the request.
Parameter Data type Description Setting range
12
name
NUM string Number of write device points (1) Set 1.
(Set this parameter so that the total number of device points specified to read/write
per Web page is within 32 points.)
DEV1 string Device name Up to 10 alphanumeric characters
(This parameter is not case-sensitive. The indirect specification, bit specification, digit
specification, or index modification cannot be performed.)
Page 220 Device name
TYP1 string Device size B: Bit
W: Word
D: Double word
Page 221 Device size
DATA1 string Write value Hexadecimal string
Ex.
Writing FFFFH to D0
NUM=1&DEV1=D0&TYP1=W&DATA1=FFFF
When writing the device value which is input to the Web page in the real number format, the input data needs
to be converted to the hexadecimal format by using JavaScript (1). For the device size, D: Double word needs
to be specified and performing a request (2) are required as well.
D0 Single-precision 1.234568E-06
real number
(1)
Web page
DATA1 "35a5b36f"
(2)
D0 B36FH
D1 35A5H
Ex.
Response data of the device write CGI
{
"RET" : "0",
"DATA" : [
"100"
]
}
When the execution result is abnormal, data is not written and only the RET is transferred.
{"RET":"4031"}
Application example
An example for writing a value by using the device write CGI is shown below.
■Display of HTML
var value;
var res = JSON.parse( xhr.response ); // Analysis processing of JSON string
// Judgment from the CGI
if( res.RET != "0000" ) {
// Display the error dialog box if the result is abnormal.
alert("ERROR=" + res.RET);
}
else {
// Reflect the write result value if the result is normal.
dataitem.value = parseInt(res.DATA[0],16);
alert("write complete");
}
}
</script>
</head>
<body>
<form>
<table id="devtbl" class="devtbl" border="1">
<tr>
<th>Device Name</th>
<th>Data Type</th>
<th>Value</th>
</tr>
<tbody>
<tr>
<td><input type="text" id="DEV1" name="DEV1" class="input" value="D10"/></td>
<td><input type="text" id="TYP1" name="TYP1" class="input" value="16-bit Integer"/></td>
<td><input type="text" id="DATA1" name="DATA1" class="input" value="3"/></td>
<td><input type="button" value=" Write" class="input" onclick="WriteDeviceBlockTbl('devtbl',1)"/></td>
</tr>
<tr>
<td><input type="text" id="DEV2" name="DEV2" class="input" value="D11"/></td>
<td><input type="text" id="TYP2" name="TYP2" class="input" value="32-bit Integer"/></td>
<td><input type="text" id="DATA2" name="DATA2" class="input" value="10"/></td>
<td><input type="button" value=" Write" class="input" onclick="WriteDeviceBlockTbl('devtbl',2)"/></td>
</tr>
<tr>
<td><input type="text" id="DEV3" name="DEV3" class="input" value="M0"/></td>
<td><input type="text" id="TYP3" name="TYP3" class="input" value="Bit"/></td>
<td><input type="text" id="DATA3" name="DATA3" class="input" value="1"/></td>
<td><input type="button" value=" Write" class="input" onclick="WriteDeviceBlockTbl('devtbl',3)"/></td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
12
External device
Access permitted IP address: 192.168.1.2
Ethernet-equipped module
Access prohibited
External device
IP address: 192.168.1.5
The IP filter function is one method of preventing illegal access (such as program or data destruction) from an
external device. It does not completely prevent illegal access. Incorporate measures other than this function if
the programmable controller system's safety must be maintained against illegal access from an external
device. Mitsubishi shall not be held liable for any system problems that may occur from illegal access.
Examples of measures for illegal access are given below.
• Install a firewall
• Install a personal computer as a relay station, and control the relay of send/receive data with an application
program
• Install an external device for which the access rights can be controlled as a relay station (Contact the
network provider or equipment dealer for details on the external devices for which access rights can be
controlled.)
13 SECURITY FUNCTION
232 13.1 IP Filter Function
Setting method
1. Set the IP address to be allowed or denied in "IP Filter Settings" of "Security" under "Application Settings". ( Page
234 IP filter settings)
2. Write the module parameters to the CPU module.
3. The IP filter function is enabled when the CPU module power is turned off and on or reset.
Even if the connection is established as set with the Ethernet-equipped module's "External Device
Configuration" under "Basic Settings" or the program, access from the external device is either allowed or
denied following "IP Filter Settings" of "Security" under "Application Settings".
Therefore, if the IP address set in the CPU module's "External Device Configuration" under "Basic Settings" is
set to be denied with "IP Filter Settings" of "Security" under "Application Settings", the IP filter function is
enabled and communication with the external device is denied.
13
Precautions
• If there is a proxy server in the LAN line, deny the IP address for the proxy server. If the IP address is allowed, it will not be
possible to prevent access from personal computers that access the proxy server.
• When the CPU module is connected to the personal computer by Ethernet, if IP address allowed in this function is
forgotten, access to the CPU module cannot be executed.
13 SECURITY FUNCTION
13.1 IP Filter Function 233
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Application Settings]
[Security]
13 SECURITY FUNCTION
234 13.1 IP Filter Function
13.2 Remote Password
Remote password is checked when a connection is requested for the following.
• Communication using an engineering tool
• Communication using SLMP
• Communication using FTP port
The remote password function is one of the methods for protection against unauthorized access (e.g.
destruction of data and programs) from external devices.
However, this function cannot completely prevent unauthorized access.
Other measures should be taken at users' discretion if security of the programmable controller system against
unauthorized access from external devices needs to be maintained. Mitsubishi Electric cannot be held
responsible for any problems caused by unauthorized access.
[Examples of measures against unauthorized access]
13
• Install a firewall.
• Set up a personal computer as a relay station, and control the relay of communication data using an
application program.
• Set an external device that can control access rights as a relay station (For external devices that can control
access rights, please consult your network service provider or networking equipment vendors.)
1) Unlocking
3) Locking
Ethernet
2) Access
Allow/prohibit
Remote password
check Remote password
parameter
13 SECURITY FUNCTION
13.2 Remote Password 235
Remote password setting
*1 Half-width alphanumeric and special characters can be used for remote password entry. (Case-sensitive)
13 SECURITY FUNCTION
236 13.2 Remote Password
• Remote password detail setting screen
13
*2 User connection is a connection for users for communication such as SLMP communication.
*3 System connection is used by the system for communication such as MELSOFT communications (TCP/IP).
*4 Check this checkbox to enable the remote password for the ports for which the communication system is set to "MELSOFT Connection"
in engineering tool.
*5 Check this checkbox to enable the remote password for CPU module direct connection to engineering tool using the built-in Ethernet
port. ( Page 31 Direct Connection with Engineering Tool)
*6 Check this checkbox to enable the remote password for access by the file transfer function (FTP server). ( Page 178 FILE
TRANSFER FUNCTION (FTP SERVER))
13 SECURITY FUNCTION
13.2 Remote Password 237
Unlocking or locking the remote password
The remote password is unlocked or locked from an external device such as a personal computer, as described below.
Precautions
13 SECURITY FUNCTION
238 13.2 Remote Password
Detection of unauthorized access and actions
When the password mismatch count reaches a fixed count (upper limit) in the unlock process of remote password, access is
locked out. If this occurs, unauthorized access from outside the system can be considered as a cause of the error.
13
***.***.***.***
***.***.***.***
2. Inform your system administrator that the number of unlock processing failures exceeded the limit, and take appropriate
actions.
13 SECURITY FUNCTION
13.2 Remote Password 239
14 IP ADDRESS CHANGE FUNCTION
14.1 Overview of the IP Address Change Function
This function is provided to change the IP address of the Ethernet-equipped module by setting the desired IP address to
special registers from a peripheral unit or another unit and turning ON a special relay.
This function changes the IP address of the Ethernet-equipped module even if no settings are made in GX Works3 PLC
parameters.
When the IP address change function is used, the IP address stored in the IP address storage area, not the IP address setting
of the module parameter in GX Works3, is set to the Ethernet-equipped module.
This function can set three types of data - IP address, subnet mask pattern and default gateway IP address.
Ex.
Case of the CPU module
CPU module
Peripheral unit*1
4) CPU module operates using the IP address stored in the IP address storage area (CPU module internal FRAM).
The actual operating IP address in the CPU module can be checked in SD10050, SD10051, SD10060,
SD10061, SD10064, and SD10065.
SD10050
IP address
SD10051
SD10060 Subnet
mask
SD10061 pattern
SD10064 Default
gateway
SD10065 IP address
*1 The IP address change function can be used not only by peripheral devices but also by MX Component, MX Sheet and link function by
manipulating values of the special devices. For details on MX Component and MX Sheet, refer to the respective product manual. For
details on the link function, refer to the following.
Page 248 LIST OF FUNCTIONS
Ex.
Case of the CPU module
[In the case IP address change function is used]
[In the case Module parameter setting is used (IP address storage area is cleared)]
When IP address storage area is cleared (IP address change function enable flag SM8498 is off), module parameter setting is
enabled.
SD8494 Subnet mask Subnet mask Un\G52 Subnet mask Subnet mask
SD8495 pattern*1 pattern*1 Un\G53 pattern*1 pattern*1
Perform writing Perform writing
SM8492 is ON 1 is stored in
SD8496 Default gateway Default gateway Un\G54 Default gateway Default gateway
Un\G56
SD8497 IP address*1 IP address*1 Un\G55 IP address*1 IP address*1
*1 It is possible to specify no setting (0.0.0.0) for the subnet mask pattern and default gateway IP address. However, it is necessary to
specify no setting (0.0.0.0) for both the subnet mask pattern and the default gateway IP address. If no setting (0.0.0.0) is specified for
only one, an error will occur and the IP address will not be changed.
It is possible to write data to the IP address storage area without regard to the CPU module mode (RUN or STOP). To reflect
the setting stored in the IP address storage area to the Ethernet-equipped module, powering off and on or resetting the CPU
module is required.
Write operation
■Case of the CPU module
1. Store the value to be changed in SD8492 to SD8497 (IP address setting or other).
2. Turn off and on SM8492 (IP address storage area write request).
3. Check the write results with the following special relays and special registers.
Device No. Name At normal completion At abnormal completion
SM8492 IP address storage area write request On On
SM8493 IP address storage area write completed On On
SM8494 IP address storage area write error Off On
SD8498 IP address storage area write error code Stores the error code
4. When the write is completed normally, power off and on or reset the CPU module.
5. If the IP address stored in the IP address storage area (CPU module internal FRAM) is a valid value, the stored IP
address is set as the CPU module's IP address. (If the value is invalid or not set, the value set in the module parameters
is set as the IP address of the CPU module.)
6. The IP address or other setting of the CPU module can be checked with the following special register.
Device No. Name Description
SD10050, SD10051 IP address The IP address currently set in the CPU module is stored.
SD10060, SD10061 Subnet mask The subnet mask currently set in the CPU module is stored.
SD10064, SD10065 Default gateway IP address The default gateway IP address currently set in the CPU module is stored.
If the data is not written correctly into the IP address storage area (CPU module internal FRAM), the error code is stored in IP
address storage area write error code (SD8498).
Value of SD8498 Error details and causes Action
1920H Values such as the IP address setting (SD8492 to SD8497) Recheck the values such as the IP address setting (SD8492 to
are outside the set range. SD8497).
3. Check the write results with the following buffer memory areas.
Device No. Name At normal completion At abnormal completion
Un\G56 IP address storage area write request 0 0
Un\G57.b0 IP address storage area write completed On On
Un\G57.b1 IP address storage area write error Off On
Un\G61 IP address storage area write error code Stores the error code
4. When the write is completed normally, power off and on or reset the CPU module.
5. If the IP address stored in the IP address storage area (Ethernet module internal flash ROM) is a valid value, the stored
IP address is set as the Ethernet module's IP address. (If the value is invalid or not set, the value set in the module
parameters is set as the IP address of the Ethernet module.)
6. The IP address or other setting of the Ethernet module can be checked with the following buffer memory.
Device No. Name Description
Un\G64, Un\G65 IP address The IP address currently set in the Ethernet module is stored. 14
Un\G74, Un\G75 Subnet mask The subnet mask currently set in the Ethernet module is stored.
Un\G76, Un\G77 Default gateway IP address The default gateway IP address currently set in the Ethernet module is stored.
If the data is not written correctly into the IP address storage area (Ethernet module internal flash ROM), the error code is
stored in IP address storage area write error code (Un\G61).
Value of Un\G61 Error details and causes Action
1920H IP address setting or other (Un\G50 to Un\G55) value exceeds Correct the IP address setting or other (Un\G50 to Un\G55)
the setting range. value.
Clearing operation
■Case of the CPU module
1. Turn off and on SM8495 (IP address storage area clear request).
2. Check the clear results with the following special relays and special registers.
Device No. Name At normal completion At abnormal completion
SM8495 IP address storage area clear request On On
SM8496 IP address storage area clear completed On On
SM8497 IP address storage area clear error Off On
SD8499 IP address storage area clear error code Stores the error code
3. When it completed normally, power off and on or reset the CPU module.
4. The IP address or other setting of the CPU module can be checked with the following special register.
Device No. Name Description
SD10050, SD10051 IP address The IP address currently set in the CPU module is stored.
SD10060, SD10061 Subnet mask The subnet mask currently set in the CPU module is stored.
SD10064, SD10065 Default gateway IP address The default gateway IP address currently set in the CPU module is stored.
If the data is not clear correctly into the IP address storage area (CPU module internal FRAM), the error code is stored in IP
address storage area clear error code (SD8499).
Value of SD8499 Error details and causes Action
1921H Write request and clear request (SM8492 and SM8495) Verify that write request and clear request (SM8492 and SM8495) do
turned from off to on simultaneously. not turn from off to on simultaneously.
2. Check the write results with the following buffer memory areas.
Device No. Name At normal completion At abnormal completion
Un\G58 IP address storage area clear request 0 0
Un\G59.b0 IP address storage area clear completed On On
Un\G59.b1 IP address storage area clear error Off On
Un\G62 IP address storage area clear error code Stores the error code
3. When it completed normally, power off and on or reset the CPU module.
4. The IP address or other setting of the Ethernet module can be checked with the following buffer memory.
Device No. Name Description
Un\G64, Un\G65 IP address The IP address currently set in the Ethernet module is stored.
Un\G74, Un\G75 Subnet mask The subnet mask currently set in the Ethernet module is stored.
Un\G76, Un\G77 Default gateway IP address The default gateway IP address currently set in the Ethernet module is stored.
If the data is not clear correctly into the IP address storage area (Ethernet module internal flash ROM), the error code is stored
in IP address storage area clear error code (Un\G62).
Value of Un\G62 Error details and causes Action
1921H 1 was stored simultaneously in the write request and clear Check if 1 was not set simultaneously in the write request and
request (Un\G56 and Un\G58). clear request (Un\G56 and Un\G58).
Parameter IP address
For the Ethernet-equipped module IP address, the value in the IP address storage area has precedence over the module
parameter value.
Whether the IP address change function is enabled can be checked by the IP address change function enable flag (SM8498,
Un\G60).
When using the IP address specified with the module parameter, clear the IP address storage area.
15 LIST OF FUNCTIONS
16 N:N NETWORK
18 MC PROTOCOL
19 INVERTER COMMUNICATION
20 NON-PROTOCOL COMMUNICATION
247
15 LIST OF FUNCTIONS
The table below shows the serial communication types supported by the FX5.
: Supported, : Not supported
Communication Function outline Supported function Reference
functions FX5S CPU FX5UJ CPU FX5U/FX5UC section
module module CPU module
N:N Network Up to eight PLCs are connected, and data is Page 250
automatically transferred among them.
Parallel link Function for connecting two FX5 PLCs and mutually Page 286
linking devices.
MC protocol MC protocol is used to access CPU module and external Page 307
devices (such as a personal computer or an HMI) from
equipment that supports MC protocol via Ethernet or
serial communication.
The serial port of the FX5 is capable of communication
with MC protocol 1C/3C/4C frame.
Inverter communication An FX PLC can control up to 16 inverters via RS-485 Page 329
communication.
Non-protocol Non-protocol serial communication is available between Page 411
communication an FX PLC and RS-232C/RS-485 interface equipment
such as bar code reader, printer, personal computer and
measuring instrument.
Predefined protocol Data can be sent and received between the counterpart Page 452
support device and CPU module with a protocol appropriate to
the counterpart device (such as measuring instrument or
barcode reader).
15 LIST OF FUNCTIONS
248
MEMO
15
15 LIST OF FUNCTIONS
249
16 N:N NETWORK
This chapter explains the N:N Network.
System
8 modules
1200m maximum (Distance varies depending on communication equipment type.)
The link information can be monitored in the master station and all local stations.
The figure above shows the maximum number of linked devices. There are differences in specification depending on the
selected link pattern and FX Series.
16 N:N NETWORK
250 16.1 Outline of System
16.2 Procedures Before Operation
The flow chart below shows the N:N Network setting procedures up until data link:
3. Wiring
For wiring with twisted pair cable and wiring example, refer to Page 257 Wiring.
4. Communication settings*1
For communication settings of communication device, refer to Page 262 Communication Setting.
5. Program creation
For communication test program, master station program, and local station program, refer to Page 264 Programming.
*1 For more details on the connection and operation methods between the engineering tool (GX Works3) and PLC, refer to the manual
below.
GX Works3 Operating Manual
In N:N Network, only one channel is available to use for one CPU module. 16
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
16 N:N NETWORK
16.2 Procedures Before Operation 251
Precautions
Total number of communication boards and communication adapters that can be connected is two.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
16 N:N NETWORK
252 16.3 System Configuration
FX5U CPU module
The N:N Network function can be used in the FX5U CPU module by using the built-in RS-485 port, communication board, and
communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
CH4: Communication adapter-2
CH3: Communication adapter-1
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
16 N:N NETWORK
16.3 System Configuration 253
16.4 Specifications
This section describes the communication specifications and performance of the N:N Network function.
For the specifications of FX3 PLC, refer to FX Series User's Manual - Data Communication Edition.
Communication specifications
The N:N Network function is executed according to the communication specifications (fixed) shown in the table below.
Specification items such as baud rate cannot be changed.
Items Specifications Remarks
Number of connectable modules Maximum of 8
Transmission standard RS-485 standard
Maximum overall distance When only FX5-485ADP is used in the When the built-in RS-485 port, FX5-485-BD and
configuration: 1200 m or less 485-BD for FX3 Series are all connected: 50 m or
When configuring with FX5-485ADP or FX3U- less
485ADP: 500 m or less
Other than the above configuration: 50 m or less
Protocol type N:N Network
Control procedure
Communication method Half-duplex, bi-directional communication
Baud rate 38400 bps
Character Start bit 1 bit
format
Data length 7 bits
Parity bit Even
Stop bit 1 bit
Header Fixed
Terminator Fixed
Control line
Sum check Fixed
16 N:N NETWORK
254 16.4 Specifications
Link specifications
Precautions
When creating a program, do not change the information in devices used by other stations. If such information is changed, the
other stations will not operate normally.
16 N:N NETWORK
16.4 Specifications 255
Ex.
Refresh range: pattern 1, link device head number: all station D1000/M4000
Master station: FX5 PLC, local station: FX5 PLC 3
Station number Master station Local stations
Station No.0 (FX5 PLC) Station No.1 (FX5 PLC) Station No.2 (FX5 PLC) Station No.3 (FX5 PLC)
Master station Station No. 0 D1000 to D1003 D1000 to D1003 D1000 to D1003 D1000 to D1003
M4000 to M4031 M4000 to M4031 M4000 to M4031 M4000 to M4031
Local stations Station No. 1 D1010 to D1013 D1010 to D1013 D1010 to D1013 D1010 to D1013
M4064 to M4095 M4064 to M4095 M4064 to M4095 M4064 to M4095
Station No.2 D1020 to D1023 D1020 to D1023 D1020 to D1023 D1020 to D1023
M4128 to M4159 M4128 to M4159 M4128 to M4159 M4128 to M4159
Station No.3 D1030 to D1033 D1030 to D1033 D1030 to D1033 D1030 to D1033
M4192 to M4223 M4192 to M4223 M4192 to M4223 M4192 to M4223
In the example above, devices from D1000 to D1033 (34 points from the head device number of D) and from M4000 to M4223
(224 points from the head device number of M) are occupied.
Other devices can be used as general control devices. Link devices for unconnected local stations can be used as general
control devices; however, it is recommended to save the unoccupied link devices for the local stations to be used in the future.
Ex.
Refresh range: pattern 2, link device head number: station 0 (D200/M2000), station 2 (D500/M3000)
Master station: FX5 PLC, local station: FX5 PLC 1/FX3 PLC 2
Station number Master station Local stations
Station No.0 (FX5 PLC) Station No.1 (FX3 PLC) Station No.2 (FX5 PLC) Station No.3 (FX3 PLC)
Master station Station No.0 D200 to D207 D0 to D7 D500 to D507 D0 to D7
M2000 to M2063 M1000 to M1063 M3000 to M3063 M1000 to M1063
Local stations Station No.1 D210 to D217 D10 to D17 D510 to D517 D10 to D17
M2064 to M2127 M1064 to M1127 M3064 to M3127 M1064 to M1127
Station No.2 D220 to D227 D20 to D27 D520 to D527 D20 to D27
M2128 to M2191 M1128 to M1191 M3128 to M3191 M1128 to M1191
Station No.3 D230 to D237 D30 to D37 D530 to D537 D30 to D37
M2192 to M2255 M1192 to M1255 M3192 to M3255 M1192 to M1255
The link devices are allocated as above and the link device numbers are different according to the station number (for the FX3
series, the numbers are fixed). However, the link device numbers are linked to the corresponding devices.
The link device head number of FX5 PLC can be set individually for each station; however, unifying the numbers in the system
is recommended to prevent disordered numbers.
16 N:N NETWORK
256 16.4 Specifications
Link time
The link time indicates the cycle time from the start of parameter message editing until link devices are updated and
parameter message editing is restarted.
The link time varies depending on the number of linked units (master station and local stations) and the number of linked
devices as shown in the table below.
Number of linked modules Pattern 0 Pattern 1 Pattern 2
0 bit-devices (M) 32 bit-devices (M) 64 bit-devices (M)
4 word-devices (D) 4 word-devices (D) 8 word-devices (D)
2 20 ms 24 ms 37 ms
3 29 ms 35 ms 52 ms
4 37 ms 45 ms 70 ms
5 46 ms 56 ms 87 ms
6 54 ms 67 ms 105 ms
7 63 ms 78 ms 122 ms
8 72 ms 88 ms 139 ms
16.5 Wiring
This section explains about the wiring.
For the wiring of FX3 PLC, refer to FX Series User's Manual - Data Communication Edition.
Wiring procedure
1. Preparing for wiring.
16
Prepare cables required for wiring. ( Page 258 Cable)
16 N:N NETWORK
16.5 Wiring 257
Cable
Select cables using the procedure described below.
Connecting cables
The table below shows applicable cables and tightening torques.
Item Number of Wire size Tightening torque
wires Solid wire, Stranded wire Wire ferrule with
connected insulation sleeve
per terminal
FX5U CPU module built-in RS-485 port One wire 0.2 to 0.5 (24 to 20 AWG) 0.2 to 0.5 (24 to 20 AWG) 0.22 to 0.25Nm
Two wires 0.2 (24 AWG)
FX5UC CPU module built-in RS-485 port One wire 0.3 to 0.5 (22 to 20 AWG) 0.3 to 0.5 (22 to 20 AWG)
FX5-485-BD
Two wires 0.3 (22 AWG)
FX5-485ADP
Precautions
Do not tighten terminal screws exceeding the specified torque range. Otherwise it may cause equipment failure or
malfunction.
16 N:N NETWORK
258 16.5 Wiring
■Wire end treatment
With regard to the cable end treatment, use a stranded cable or solid cable as is, or use a wire ferrule with insulating sleeve.
• When using a stranded cable or solid cable as is
- Twist the end of stranded wire and make sure that there are no loose wires.
- Please do not solder plate the ends of the cable.
Dimensions of the cable end
FX5U CPU module built-in RS-485 port FX5UC CPU module built-in RS-485 port, FX5-485-BD, FX5-
485ADP
5 mm 9 mm
6 mm 8 mm
2 to 2.5 mm 10.5 to 12 mm 2.6 mm 14 mm
<Reference>
Item Manufacturer Model name Crimping tool 16
FX5U CPU module built-in RS-485 port PHOENIX CONTACT GmbH & Co. KG AI 0.5-6 WH CRIMPFOX 6
FX5UC CPU module built-in RS-485 port AI 0.5-8 WH CRIMPFOX 6T-F
FX5-485-BD
FX5-485ADP
• Tool
For tightening the terminal, use a commercially available small screwdriver with straight tip that is not
widened toward the end as shown below.
■Precautions
With straight tip
If the diameter of the screwdriver tip is too small, the required tightening torque cannot be achieved. To
achieve the appropriate tightening torque shown in the previous page, use the following screwdriver or its
equivalent (grip diameter: approximately 25mm).
0.4 mm 2.5 mm
<Reference>
Manufacturer Model name
PHOENIX CONTACT GmbH & Co. KG SZS 0.42.5
16 N:N NETWORK
16.5 Wiring 259
Termination resistor setting
Make sure to provide a termination resistor at both ends of the wire.
The built-in RS-485 port, FX5-485-BD and FX5-485ADP have a built-in termination resistor.
Set the termination resistor selector switch to 110 .
■FX5U CPU module built-in RS-485 port ■FX5UC CPU module built-in RS-485 port
Termination
resistor selector
switch
Termination
resistor selector
switch
■FX5-485-BD ■FX5-485ADP
Termination
resistor Termination
selector switch resistor selector
switch
16 N:N NETWORK
260 16.5 Wiring
Connection diagram
Use one-pair wiring for an N:N Network.
Built-in RS-485 port Built-in RS-485 port Built-in RS-485 port
FX5-485-BD FX5-485-BD FX5-485-BD
FX5-485ADP FX5-485ADP FX5-485ADP
SG SG SG
*1 Make sure to perform Class-D grounding on the shield of the twisted pair cable to be connected.
*2 Make sure to provide a termination resistor at both ends of the wire. The built-in RS-485 port, FX5-485-BD and FX5-485ADP have built-
in termination resistors. Set the termination resistor selector switch to 110 .
Grounding
Grounding should be performed as stated below.
• Perform D class grounding. (Grounding resistance: 100 or less) 16
• Independent grounding should be performed for best results.
If the PLC cannot be grounded independently, perform the "Shared grounding" shown below.
For details, refer to User's Manual (Hardware) of the CPU module used.
16 N:N NETWORK
16.5 Wiring 261
16.6 Communication Setting
For the FX5 communication settings of this function, parameters are set using GX Works3. For details about GX Works3, refer
to GX Works3 Operating Manual.
Setting of parameter differs according to the module used. The procedure for each module is as follows.
For the communication settings of FX3 PLC, refer to FX Series User's Manual - Data Communication Edition.
Window
The following screen will be displayed if [N:N Network] is set for the communication protocol type.
■Basic Settings
■Fixed Setting
■Link Device
■SM/SD Setting
16 N:N NETWORK
262 16.6 Communication Setting
Communication board (CH2)
Navigation Window Parameter Model name Module Parameter Extended Board
Window
The following screen will be displayed if [FX5-485-BD] is set for the extended board and [N:N Network] is set for the
communication protocol type. Other settings are the same as for the built-in RS-485 port (CH1).
■Basic Settings
Window
Each setting screen is the same as for the built-in RS-485 port (CH1).
16
Parameter setting details
Set the following items for the serial ports that use N:N Network. However, only one channel can be set to the N:N Network.
Items Setting value Reference
section
Basic Settings Extended Board*1 When using this function, select [FX5-485-BD].
Protocol Type When using this function, select [N:N Network].
Fixed Setting Host Station No. 0(Master) Page 255
1 to 7: (Local stations)
Number of local stations 1 to 7
Refresh Range 0: Pattern 0
1: Pattern 1
2: Pattern 2
Timeout Retry Count Setting 0 to 10
Monitoring Time 50 to 2550 (ms)
Link Device Link Device Bit FX5S CPU module: M0 to M32672 Page 255
FX5UJ CPU module: M0 to M7584
FX5U/FX5UC CPU module: M0 to M32672
Link Device Word D0 to D7986
SM/SD Setting Latch Setting Host Station No. Latch/Do Not Latch Page 264
Total Number of Local
Station
FX3 Series Compatibility SM/SD for Compatible Disable/CH1/CH2
16 N:N NETWORK
16.6 Communication Setting 263
Setting is not required (fixed value) for the board below.
Item Descriptions
Data length 7 bits
Parity Even
Stop bit 1 bit
Start bit 1 bit
Baud rate 38400 bps
Header Not added
Terminator Not added
Control mode None
Sum check code Not added
Control procedure Form 1 (CR and LF are not added)
Latch Setting
Set the necessity of the corresponding SD (special register) latch.
Descriptions Setting range Compatible devices
Station number settings Latch/Do Not Latch SM9080
Local station quantity setting Latch/Do Not Latch SM9081
16.7 Programming
This section explains how to set the N:N Network and how to create programs.
Configuration is only for FX5 PLC configuration (master station + local station 7 stations).
In N:N Network, pattern 0, 1 or 2 can be set according to the refresh range value.
The number of used devices varies depending on the pattern.
About FX3 PLC program and communication test, refer to FX Series User's Manual - Data Communication Edition.
Communication setting
Serial communication setting are as follows. ( Page 262 Communication Setting)
Items Setting
Master Local stations
station
Station No. 0 Station Station Station Station Station Station Station
No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
Protocol type N:N Network
Fixed Setting Host Station No. 0 1 2 3 4 5 6 7
Total Number of Local Station 7
*1
Refresh Range 1
Timeout Retry Count Setting 3
Monitoring Time 50
Link Device Link Device Bit*2 M4000 M4000 M4000 M4000 M4000 M4000 M4000 M4000
Link Device Word*2 D1000 D1000 D1000 D1000 D1000 D1000 D1000 D1000
*1 Execute communication test on the following settings: local station quantity setting: 7 (Station No.7), refresh range setting: 0 (pattern 0).
*2 Devices can be set individually to each station.
16 N:N NETWORK
264 16.7 Programming
Contents of related devices
The device used in the program are shown below. ( Page 273 Related Devices)
*1 Station number 1: SM9041, station number 2: SM9042, station number 3: SM9043 ... station number 7: SM9047
*2 Station number 1: SM8184, station number 2: SM8185, station number 3: SM8186 ... station number 7: SM8190
Link device
The devices are assigned according to the set pattern in the refresh range setting as the following set device number (All 16
stations, bit device (M): 4000, word device (D): 1000) set at the head. ( Page 255 Link specifications)
■Pattern 0
Station number Master Local stations
station
Station Station Station Station Station Station Station Station
No. 0 No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
Word devices D1000 D1010 D1020 D1030 D1040 D1050 D1060 D1070
(4 points for each station) to D1003 to D1013 to D1023 to D1033 to D1043 to D1053 to D1063 to D1073
■Pattern 1
Station number Master Local stations
station
Station Station Station Station Station Station Station Station
No. 0 No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
Bit devices M4000 M4064 M4128 M4192 M4256 M4320 M4384 M4448
(32 points for each station) to M4031 to M4095 to M4159 to M4223 to M4287 to M4351 to M4415 to M4479
Word devices D1000 D1010 D1020 D1030 D1040 D1050 D1060 D1070
(4 points for each station) to D1003 to D1013 to D1023 to D1033 to D1043 to D1053 to D1063 to D1073
■Pattern 2
Station number Master Local stations
station
Station Station Station Station Station Station Station Station
No. 0 No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
Bit devices M4000 M4064 M4128 M4192 M4256 M4320 M4384 M4448
(64 points for each station) to M4063 to M4127 to M4191 to M4255 to M4319 to M4383 to M4447 to M4511
Word devices D1000 D1010 D1020 D1030 D1040 D1050 D1060 D1070
(8 points for each station) to D1007 to D1017 to D1027 to D1037 to D1047 to D1057 to D1067 to D1077
16 N:N NETWORK
16.7 Programming 265
Precautions
When creating a program, do not change the information in devices used by other stations. If such information is changed, the
other stations will not operate normally.
Communication test
It is recommended to wire the master station and local station, perform communication settings, and then execute the
communication test using the following procedure to confirm proper operation.
Communication test program is not required during operation.
3. Set the inputs (X0 to X3) to ON or OFF in the master station, and check that the outputs (Y0 to Y3) turn ON or OFF in
each local station.
4. Operate the inputs (X0 to X3) of each local station to check that the master station output (Y0 to Y3) or the local station
output (Y4 to Y7, Y10 to Y17...Y34 to Y37) turns ON.
MOV D1010 K1Y4 Steps for reading information from a local station
(local station → master station)
MOV D1020 K1Y10 By using link devices, read information from all
other local stations.
The table below shows the link devices to be used:
Local station No. Link device Output (Y)
1 D1010 Y4 to Y7
MOV D1070 K1Y34 2 D1020 Y10 to Y13
3 D1030 Y14 to Y17
4 D1040 Y20 to Y23
Specify device numbers for the connected local stations. 5 D1050 Y24 to Y27
6 D1060 Y30 to Y33
END 7 D1070 Y34 to Y37
16 N:N NETWORK
266 16.7 Programming
Test program for communication (local station)
Determine the station number of each local station, and then transfer a program corresponding to the station number to each
local station.
Assign station numbers from "1" in the ascending order. (Use one station number only once. Do not skip station numbers.)
RUN monitor
SM400
MOV K1X0 D1010 Steps for reading information from a local station
(local station → master station)
MOV D1000 K1Y0 Step for writing information from the master station
(master station → local station)
MOV D1030 K1Y14 By using link devices, read information from another
local station.
The table below shows the link devices to be used:
Local station No. Link device Output (Y)
1 D1010 Y4 to Y7
MOV D1070 K1Y34 2 D1020 Y10 to Y13
3 D1030 Y14 to Y17
4 D1040 Y20 to Y23
Specify link device numbers for other local stations. 5 D1050 Y24 to Y27
(This local station is D1010 in this example.) 6 D1060 Y30 to Y33
7 D1070 Y34 to Y37
END
16 N:N NETWORK
16.7 Programming 267
Creating programs for the master station
Create programs for the master station.
Arbitrarily create programs for reading and writing link devices.
Data transfer
processing
SM9056
Y10 While the N:N Network is executed, Y10 remains
ON.
16 N:N NETWORK
268 16.7 Programming
Program for reading link devices
(local station → master station)
This program is required to read information from
Data transfer each local station to the master station. Monitor link
sequence error in
errors in each local station, and read them.
local station No. 1
SM9041 M4064
The information from M4064 (link device) is read to
M0
M0.
M4065
The information from M4065 (link device) is read to
Y11
Y11.
M4066 The information from M4066 (link device) is read to
M15 M15.
Refer to the above for creating the error monitoring program of station number 3 or later.
For details on the link devices, refer to Page 265 Contents of related devices.
For cautions on program creation, refer to Page 272 Cautions on program creation.
16 N:N NETWORK
16.7 Programming 269
Creating programs for the local stations
Create programs for the local stations.
Arbitrarily create programs for reading and writing link devices.
The following program is for the local station of station number 1. Program for station number 2 and later are similar.
Data transfer
processing
SM9056
Y10 While the N:N Network is executed, Y10 remains
ON.
16 N:N NETWORK
270 16.7 Programming
Program for reading link devices
(local station ← master or local station)
This program is required to read information from the
master station or another local station to a local
Data transfer station.
sequence error in Monitor link errors in each local station, and read
local station No. 0 them.
SM9040 M4000
M0 The information from M4000 (link device) is read to
M0.
M4001
Y11 The information from M4001 (link device) is read to
Y11.
M4002
M15 The information from M4002 (link device) is read to
M15.
MOV D1000 D10 The information from D1000 (link device) is read to
Data transfer D10.
sequence error in
local station No. 2
SM9042 M4128
M1 The information from M4128 (link device) is read to
M1.
M4129
Y12 The information from M4129 (link device) is read to
Y012.
16
M4130
M18 The information from M4130 (link device) is read to
M18.
The information from M4140 to M4155 (link
MOV K4M4140 K4M20
devices) is read to M20 to M35.
MOV D1020 D20 The information from D1020 (link device) is read to
D20.
For details on the link devices, refer to Page 265 Contents of related devices.
For cautions on program creation, refer to Page 272 Cautions on program creation.
16 N:N NETWORK
16.7 Programming 271
Cautions on program creation
• When N:N Network is used, the operation cycle in each PLC becomes longer by about 10% per station.
• Set station numbers consecutively. If a station number that is used twice or more or is skipped, link will not be achieved
normally.
• Do not change the contents of link devices at other stations. When a link error (data transfer sequence error) occurs, the
link device information is held in the status just before occurrence of the link error. Create program to operate safely when
an error occurs.
• Link device update in N:N Network is asynchronous to operations of the sequence program. However, the update
processing of the sent data from the local stations are executed by the END process of each station. Therefore, the change
of link device value during the ladder operation is not reflected on the communication data until the END process starts.
• Precaution when changing the station number and number of local stations
Only when the station number and number of local stations are set with latch setting can the setting values be written to the
corresponding word device from a program or an engineering tool and the setting be changed by powering OFFON or a
reset. However, be careful not to exceed the range upper limit of device for link device when you set the device head number.
When the device range upper limit is exceeded, the operation is as follows.
(1) When the total number of local stations is increased and the master station link device is insufficient
The error code "7705H" is stored in SD8211, SD9061. However, link continues, but it does not update for the device above the
range upper limit.
(2) When the total number of local stations is increased and the local station link device is insufficient
The error code "7705H" is stored in SD of the local station of SD8212 to SD8218 and SD9062 to SD9068. However, link
continues, but it does not update for the device above the range upper limit.
(3) When the link device of the local station is out of the device range by changing the local station number
The error code "7715H" is stored in SD of the local station of SD8212 to SD8218 and SD9062 to SD9068. However, devices
above the range upper limit send all 0 (word: 0, bit: OFF). Also, when the error (7705H) of (2) occurs at the same time, 7715H
is stored.
16 N:N NETWORK
272 16.7 Programming
16.8 Related Devices
This section describes the special relay/special register functions used in the N:N Network function.
Available communication channels vary depending on the CPU module and system configuration.
For communication channels, refer to Page 251 System Configuration.
"FX3 Series compatible" devices operate only on the communication channel specified in the compatible SM/
SD for communication settings.
For compatible SM/SD, refer to Page 262 Communication Setting.
Special relay
■FX5 only
R: Read only, M: Master station (station number 0), L: Local station (station number 1 to 7)
Device Name Descriptions Detection R/W Available station
No. Master Local
station stations
(Station
No.0)
SM8500 Serial communication error Turns ON when serial communication error of CH1 occurs. M, L R (Station 1
(CH1) to 7)
SM8510 Serial communication error Turns ON when serial communication error of CH2 occurs. M, L R (Station 1 16
(CH2) to 7)
SM8520 Serial communication error Turns ON when serial communication error of CH3 occurs. M, L R (Station 1
(CH3) to 7)
SM8530 Serial communication error Turns ON when serial communication error of CH4 occurs. M, L R (Station 1
(CH4) to 7)
SM9040 Data communication error Turns ON when data transfer sequence error of master L R (Station 1
(Master station) station occurs. to 7)
SM9041 Data transfer sequence error Turns ON when data transfer sequence error of local station M, L R
(Local station 1) occurs (Except
However, data sequence errors that occurred in the host station 1)
SM9042 Data transfer sequence error station (local station) cannot be detected.
(Local station 2) (Except
station 2)
SM9043 Data transfer sequence error
(Local station 3) (Except
station 3)
SM9044 Data transfer sequence error
(Local station 4) (Except
station 4)
SM9045 Data transfer sequence error
(Local station 5) (Except
station 5)
SM9046 Data transfer sequence error
(Local station 6) (Except
station 6)
SM9047 Data transfer sequence error
(Local station 7) (Except
station 7)
SM9056 Data transfer sequence ON Remains ON while data transfer is being executed. M, L R (Station 1
to 7)
SM9080 Station number settings SD Turns ON when SD latch setting is set for the station M, L R (Station 1
latch setting valid number. to 7)
information
16 N:N NETWORK
16.8 Related Devices 273
Device Name Descriptions Detection R/W Available station
No. Master Local
station stations
(Station
No.0)
SM9081 Local station quantity setting Turns ON when SD latch setting is set for the number of M, L R
SD latch setting valid local stations setting.
information
16 N:N NETWORK
274 16.8 Related Devices
Special register
■FX5 only
R: Read only, M: Master station (station number 0), L: Local station (station number 1 to 7)
Device Name Descriptions Detection R/W Available station
No. Master Local
station stations
(Station
No.0)
SD9040 Station number settings Provided to check the station number. M, L R (Station 1
status to 7)
SD9041 Number of local stations Provided to check the number of local stations. M, L R (Station 1
setting status to 7)
SD8500 Serial communication error When an error occurs in the serial communication of CH1, M, L R (Station 1
code (CH1) the error code is stored. to 7)
SD8502 Serial communication Stores the set communication parameter in the PLC of CH1. M, L R (Station 1
settings (CH1) to 7)
SD8503 Serial communication Stores the communication function that serial M, L R (Station 1
operation mode (CH1) communication of CH1 being used. to 7)
SD8510 Serial communication error Stores the error code when an error occurs in the serial M, L R (Station 1
code (CH2) communication of CH2. to 7)
SD8512 Serial communication Stores the set communication parameter in the PLC of CH2. M, L R (Station 1
settings (CH2) to 7)
SD8513 Serial communication Stores the communication function that serial M, L R (Station 1
operation mode (CH2) communication of CH2 being used. to 7)
SD8520 Serial communication error Stores the error code when an error occurs in the serial M, L R (Station 1
code (CH3) communication of CH3. to 7)
SD8522 Serial communication Stores the set communication parameter in the PLC of CH3. M, L R (Station 1 16
settings (CH3) to 7)
SD8523 Serial communication Stores the communication function that serial M, L R (Station 1
operation mode (CH3) communication of CH3 being used. to 7)
SD8530 Serial communication error Stores the error code when an error occurs in the serial M, L R (Station 1
code (CH4) communication of CH4. to 7)
SD8532 Serial communication Stores the set communication parameter in the PLC of CH4. M, L R (Station 1
settings (CH4) to 7)
SD8533 Serial communication Stores the communication function that serial M, L R (Station 1
operation mode (CH4) communication of CH4 being used. to 7)
SD8744 Message waiting time (CH1) Stores the message waiting time (CH1). M, L R (Station 1
to 7)
SD8754 Message waiting time (CH2) Stores the message waiting time (CH2). M, L R (Station 1
to 7)
SD8764 Message waiting time (CH3) Stores the message waiting time (CH3). M, L R (Station 1
to 7)
SD8774 Message waiting time (CH4) Stores the message waiting time (CH4). M, L R (Station 1
to 7)
SD9043 Present link scan time Current value of the network cycle time M, L R (Station 1
to 7)
SD9044 Maximum link scan time Maximum value of the network cycle time M, L R (Station 1
to 7)
SD9045 Number of communication Number of data transfer sequence errors occurred in the L R (Station 1
error at master station master station. to 7)
16 N:N NETWORK
16.8 Related Devices 275
Device Name Descriptions Detection R/W Available station
No. Master Local
station stations
(Station
No.0)
SD9046 Number of communication Number of data transfer sequence errors occurred in other M, L R
error at local station 1 local station. (Except
However, data sequence errors that occurred in the host station 1)
station (local station) cannot be detected.
SD9047 Number of communication
error at local station 2 (Except
station 2)
SD9048 Number of communication
error at local station 3 (Except
station 3)
SD9049 Number of communication
error at local station 4 (Except
station 4)
SD9050 Number of communication
error at local station 5 (Except
station 5)
SD9051 Number of communication
error at local station 6 (Except
station 6)
SD9052 Number of communication
error at local station 7 (Except
station 7)
SD9061 Code of communication Stores the error code for the master station. L R (Station 1
error at master station to 7)
SD9062 Data transmission error code Number of data transfer sequence errors occurred in other M, L R
(local station 1) local station. (Except
However, data sequence errors that occurred in the host station 1)
SD9063 Data transmission error code station (local station) cannot be detected.
(local station 2) (Except
station 2)
SD9064 Data transmission error code
(local station 3) (Except
station 3)
SD9065 Data transmission error code
(local station 4) (Except
station 4)
SD9066 Data transmission error code
(local station 5) (Except
station 5)
SD9067 Data transmission error code
(local station 6) (Except
station 6)
SD9068 Data transmission error code
(local station 7) (Except
station 7)
SD9080*1 Station number settings Set the local station number. M, L *2
(Station 1
to 7)
SD9081*1 Number of local stations Set the number of connected local stations. M, L *2
(Station 1
setting to 7)
SD9082 Refresh range setting status Refresh range check (same description as SD8175) M, L R (Station 1
to 7)
SD9083 Number of retries setting Check of the number of communication retry times that M, L R (Station 1
status occur (same description as SD8179) to 7)
SD9084 Monitoring time setting Monitoring time check M, L R (Station 1
status However, the local station stores the doubled value of the to 7)
setting value of the master station.
*1 When latch setting is set to "latch", change the device value with a program or an engineering tool and powering ONOFF or reset to
operate the corresponding functions with the changed value.
*2 With latch settings: Read/write
No latch settings: Read only
16 N:N NETWORK
276 16.8 Related Devices
■FX3 Series compatible
R: Read only, M: Master station (station number 0), L: Local station (station number 1 to 7)
Device Name Descriptions Detection R/W Available station
No. Master Local
station stations
(Station
No.0)
SD8173 Station number settings Provided to check the station number. M, L R (Station 1
status to 7)
SD8174 Number of local stations Provided to check the number of local stations. M, L R (Station 1
setting status to 7)
SD8175 Refresh range setting status Provided to check the refresh range. M, L R (Station 1
to 7)
SD8063 Serial communication error Stores the error code when error occurs in the serial M, L R (Station 1
code (CH1) communication with the SM/SD compatible with FX3 Series to 7)
being CH1.
SD8405 Serial communication Stores the set communication parameter with the SM/SD M, L R (Station 1
settings (CH1) compatible with FX3 Series being CH1. to 7)
SD8419 Serial communication Stores the communication function of the serial M, L R (Station 1
operation mode (CH1) communication operation with the SM/SD compatible with to 7)
FX3 Series CH1.
SD8438 Serial communication error Stores the error code when error occurs in the serial M, L R (Station 1
code (CH2) communication with the SM/SD compatible with FX3 Series to 7)
being CH2.
SD8425 Serial communication Stores the set communication parameter with the SM/SD M, L R (Station 1
settings (CH2) compatible with FX3 Series being CH2. to 7)
SD8439 Serial communication Store the communication function of the serial M, L R (Station 1
operation mode (CH2) communication operation with the SM/SD compatible with
FX3 Series in CH2.
to 7)
16
SD8201 Present link scan time Current value of the network cycle time M, L R (Station 1
to 7)
SD8202 Maximum link scan time Maximum value of the network cycle time M, L R (Station 1
to 7)
SD8203 Number of communication Number of data transfer sequence errors occurred in the L R (Station 1
error at master station master station. to 7)
SD8204 Number of communication Number of data transfer sequence errors occurred in other M, L R
error at local station 1 local station. (Except
However, data sequence errors that occurred in the host station 1)
SD8205 Number of communication station (local station) cannot be detected.
error at local station 2 (Except
station 2)
SD8206 Number of communication
error at local station 3 (Except
station 3)
SD8207 Number of communication
error at local station 4 (Except
station 4)
SD8208 Number of communication
error at local station 5 (Except
station 5)
SD8209 Number of communication
error at local station 6 (Except
station 6)
SD8210 Number of communication
error at local station 7 (Except
station 7)
SD8211 Code of communication Stores the error code for the master station. L R (Station 1
error at master station to 7)
16 N:N NETWORK
16.8 Related Devices 277
Device Name Descriptions Detection R/W Available station
No. Master Local
station stations
(Station
No.0)
SD8212 Data transmission error code Stores the data transfer error code occurred in other local M, L R
(local station 1) station. (Except
However, data sequence errors that occurred in the host station 1)
station (local station) cannot be detected.
SD8213 Data transmission error code
(local station 2) (Except
station 2)
SD8214 Data transmission error code
(local station 3) (Except
station 3)
SD8215 Data transmission error code
(local station 4) (Except
station 4)
SD8216 Data transmission error code
(local station 5) (Except
station 5)
SD8217 Data transmission error code
(local station 6) (Except
station 6)
SD8218 Data transmission error code
(local station 7) (Except
station 7)
16 N:N NETWORK
278 16.8 Related Devices
Details of related devices
After the devices above turns ON, the error code is stored in the compatible devices below.
FX5 only FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error occurs,
code the error code is stored.
Precautions
Do not turn ON or OFF with program or engineering tool.
Serial communication error does not turn OFF even if the communication comes back to normal. The devices turn OFF when
power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
After the devices above turn ON, the error code is stored in the corresponding devices below (data transfer sequence error).
Station number Master Local stations
station
Station Station Station Station Station Station Station Station
No. 0 No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
FX5 only SD9061 SD9062 SD9063 SD9064 SD9065 SD9066 SD9067 SD9068
FX3 Series compatible SD8211 SD8212 SD8213 SD8214 SD8215 SD8216 SD8217 SD8218
Precautions
Data transfer sequence errors in a station itself cannot be detected.
Do not turn ON with program or engineering tool.
16 N:N NETWORK
16.8 Related Devices 279
Data transfer sequence ON
Turns ON the data send operation with the master station and also other local stations.
R: Read only
FX5 only FX3 Series compatible Descriptions R/W
SM9056 SM8191 ON: Data transfer sequence ON R
OFF: Data transfer sequence is stopped
Precautions
Do not turn ON with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Serial communication errors are not cleared even after communication has recovered its normal status.
Devices are cleared when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is
turned ON.
Precautions
Do not change the value with program or engineering tool.
16 N:N NETWORK
280 16.8 Related Devices
Station number settings status
Stores the station number set in the communication settings (Page 262 Communication Setting). This device is for
checking the setting status of station number of the local station.
R: Read only
FX5 only FX3 Series compatible Descriptions R/W
SD9040 SD8173 0: Master station R
1 to 7: Local stations
• Master station
Reflects the parameter setting value to each device.
• Local stations
Reflects the master station setting value to each device.
Precautions
Do not change the value with program or engineering tool.
16
Precautions
Do not turn ON with program or engineering tool.
1 to 7: Local stations
Precautions
When the latch setting is not set, do not change the value with program or engineering tool.
16 N:N NETWORK
16.8 Related Devices 281
Number of local stations setting status
Stores the number of local stations set in the communication settings (Page 262 Communication Setting). Use this device
to check the number of local stations set in the master station.
R: Read only
FX5 only FX3 Series compatible Descriptions R/W
SD9041 SD8174 1 to 7 R
• Master station
Reflects the parameter setting value to each device.
• Local stations
Reflects the master station setting value to each device.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not turn ON with program or engineering tool.
Precautions
When the latch setting is not set, do not change the value with program or engineering tool.
16 N:N NETWORK
282 16.8 Related Devices
Refresh range setting status
Stores the refresh range set in the communication settings (Page 262 Communication Setting). Use this device to check
the refresh range set in the master station.
R: Read only
FX5 only FX3 Series compatible Descriptions R/W
SD9082 SD8175 0: Pattern 0 R
1: Pattern 1
2: Pattern 2
• Master station
Reflects the parameter setting value on each device.
• Local stations
Reflects the master station setting value on each device.
Precautions
Do not change the value with program or engineering tool.
• Master station 16
Reflects the parameter setting value on each device.
• Local stations
Reflects the master station setting value on each device.
Precautions
Do not change the value with program or engineering tool.
• Master station
Reflects the parameter setting value on each device.
• Local stations
Reflects the master station setting value on each device.
Precautions
Do not change the value with program or engineering tool.
16 N:N NETWORK
16.8 Related Devices 283
Present link scan time
This device stores the current value of the network cycle in the N:N Network.
R: Read only
FX5 only FX3 Series compatible Descriptions R/W
SD9043 SD8201 0 to 32767 (10ms) R
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Precautions
Data transfer sequence errors in a station itself cannot be detected.
Do not change the value with program or engineering tool.
Data transfer sequence error count does not turn OFF even if the communication comes back to normal. Devices are cleared
when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
16 N:N NETWORK
284 16.8 Related Devices
Data transmission error code
These devices store the error code (Page 832 Checking absence/presence of N:N Network function errors) of the master
station or the local stations.
R: Read only
Station number Master Local stations R/W
station
Station Station Station Station Station Station Station Station
No. 0 No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
FX5 only SD9061 SD9062 SD9063 SD9064 SD9065 SD9066 SD9067 SD9068 R
FX3 Series compatible SD8211 SD8212 SD8213 SD8214 SD8215 SD8216 SD8217 SD8218
Precautions
Data transfer sequence errors in a station itself cannot be detected.
Do not change the value with program or engineering tool.
Data transmission error code does not turn OFF even if the communication comes back to normal. The devices turn OFF
when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
Precautions
Do not change the value with program or engineering tool.
16 N:N NETWORK
16.8 Related Devices 285
17 PARALLEL LINK FUNCTION
This chapter explains parallel link.
System
2 modules
1200 m (50 m when the built-in RS-485 port or FX5-485-BD is used)
Built-in Built-in
RS-485 port RS-485 port
3. Wiring
For the wiring with twisted pair cables and wiring examples, refer to Page 292 Wiring.
4. Communication setting*1
For the communication settings of communication devices, refer to Page 296 Communication Setting.
5. Program creation
For the communication test program, master station program, and linked station program, refer to Page 298
Programming.
*1 For details on operating procedures of GX Works3, refer to the manual below.
GX Works3 Operating Manual
In the parallel link, only one channel is available to use for one CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Communication specifications
The parallel link function is executed according to the communication specifications (fixed) shown in the table below.
Specification items such as baud rate cannot be changed.
Item Specifications Remarks
Number of connectable modules Maximum of 2 (1: 1)
Transmission standard RS-485 standard
Maximum overall distance When only FX5-485ADP is used in the When the built-in RS-485 port or FX5-485-BD is
configuration: 1200 m or less connected: 50 m or less
Other than the above configuration: 50 m or less
Protocol Type Parallel link
Control procedure
Communication method Half-duplex, bi-directional communication
Baud rate 115200 bps
Character Start bit 1 bit
format Data length 7 bits
Parity bit Even
Stop bit 1 bit
Header Fixed
Terminator Fixed
Control line
Sum check Fixed
Link specifications
Link time
The link time is the cycle time for updating of link device.
The link time varies depending on the link mode as shown in the table below.
Link mode Time
Normal parallel link mode 15ms + operation cycle of master station (ms) + operation cycle of linked
station (ms)
High-speed parallel link mode 5ms + operation cycle of master station (ms) + operation cycle of linked
station (ms)
x1: [Master station] Link device head number of data register (D)
x2: [Linked station] Link device head number of data register (D)
y1: [Master station] Link device head number of internal relay (M)
y2: [Linked station] Link device head number of internal relay (M)
« «
Precautions
When creating a program, do not change the information in devices used by other stations. If such information is changed, the
other stations will not operate normally.
Wiring procedure
1. Preparing for wiring.
Prepare cables required for wiring. (Page 292 Cable)
Cable
Select cables using the procedure described below.
Precautions
Do not tighten terminal screws exceeding the specified torque range. Otherwise it may cause equipment failure or
malfunction.
5 mm 9 mm
6 mm 8 mm
2 to 2.5 mm 10.5 to 12 mm 2.6 mm 14 mm
<Reference>
Item Manufacturer Model name Crimping tool
FX5U CPU module built-in RS-485 port PHOENIX CONTACT GmbH & Co. KG AI 0.5-6 WH CRIMPFOX 6
CRIMPFOX 6T-F
FX5UC CPU module built-in RS-485 port AI 0.5-8 WH
FX5-485-BD
FX5-485ADP
<Reference>
Manufacturer Model name
PHOENIX CONTACT GmbH & Co. KG SZS 0.42.5
■FX5U CPU module built-in RS-485 port ■FX5UC CPU module built-in RS-485 port
Termination
resistor selector
switch
Termination
resistor selector
switch
■FX5-485-BD ■FX5-485ADP
Termination
resistor Termination
selector switch resistor selector
switch
SG SG SG SG
*1 Make sure to perform Class-D grounding on the shield of the twisted pair cable to be connected.
*2 Set the termination resistor selector switch to 110 .
*3 Set the termination resistor selector switch to 330 .
Grounding
Grounding should be performed as stated below.
• Perform D class grounding. (Grounding resistance: 100 or less)
• Independent grounding should be performed for best results.
If the PLC cannot be grounded independently, perform the "Shared grounding" shown below.
For details, refer to User's Manual (Hardware) of the CPU module used.
Window
The following screen will be displayed if [Parallel Link] is set for the communication protocol type.
■Basic Settings
■Fixed Setting
■Link Device
■SM/SD Setting
Window
The following screen will be displayed if [FX5-485-BD] is set for the extended board and [Parallel Link] is set for the
communication protocol type. Fixed setting and SM/SD setting are the same as for the built-in RS-485 port (CH1).
■Basic Settings
Window
Each setting screen is the same as for the built-in RS-485 port (CH1).
Communication settings
Serial communication setting are as follows. (Page 296 Communication Setting)
Items Setting
Master station Linked station
Communication Protocol Type Parallel link
Fixed Setting Station Setting Master Linked station
Link Mode Normal
Error Judgment Time 500 500
Link Device Link Device Bit M4000 M6000
Link Device Word D990 D1990
*1 Use the serial communication error (SM8500, SM8510, SM8520 or SM8530) corresponding to each channel executing the parallel link.
• Receiving device
Device for transferring information from linked station to master station. Do not change this device information at the master
station. If such information is changed, the other station will not operate normally.
Device No. Number of link Descriptions
points
■In the case of normal parallel link mode
Internal relay M4100 to M4199 100 points The status of the linked station device is received and automatically updated
to the master station device.
Word devices D1000 to D1009 10 points
■In the case of high-speed parallel link mode
Word devices D1000, D1001 2 points The status of the linked station device is received and automatically updated
to the master station device.
• Receiving device
Device for transferring information from master station to linked station. Do not change this device information at the linked
station. If such information is changed, the other station will not operate normally.
Device No. Number of link Descriptions
points
■In the case of normal parallel link mode
Internal relay M6000 to M6099 100 points The status of the master station device is received and automatically updated
to the linked station device.
Word devices D1990 to D1999 10 points
■In the case of high-speed parallel link mode
Word devices D1990, D1991 2 points The status of the master station device is received and automatically updated
to the linked station device.
2. Check if the SD and RD LEDs of the used channel are flashing. If the LEDs are OFF, refer to troubleshooting. (Page
794 TROUBLESHOOTING PROCEDURE)
3. Operate the PLC inputs (X0 to X3) of the master station, and check that the outputs (Y0 to Y3) of the linked station turn
ON.
4. Operate the PLC inputs (X0 to X3) of the linked station, and check that the outputs (Y0 to Y3) of the master station turn
ON.
END
END
Available communication channels vary depending on the CPU module and system configuration.
For communication channels, refer to Page 287 System Configuration.
"FX3 Series compatible" devices operate only on the communication channel specified in the compatible SM/
SD for communication settings.
For compatible SM/SD, refer to Page 296 Communication Setting.
Special relays
■FX5 dedicated
R: Read only, M: Master station, L: Linked station
Device No. Name Descriptions Detection R/W
CH1 CH2 CH3 CH4
SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. M, L R
SM9090 Parallel link operation ON during parallel link operation. M, L R
Special registers
■FX5 dedicated
R: Read only, M: Master station, L: Linked station
Device No. Name Descriptions Detection R/W
CH1 CH2 CH3 CH4
SD8500 SD8510 SD8520 SD8530 Serial communication error Stores the error code when a serial communication error M, L R
code occurs.
SD8502 SD8512 SD8522 SD8532 Serial communication Stores the communication parameter set in the PLC. M, L R
settings
SD8503 SD8513 SD8523 SD8533 Serial communication Stores status of the current communication being M, L R
operation mode executed.
SD9090 Master station/linked Stores the property setting value of the master/linked M, L R
station setting station.
SD9091 Link mode setting Stores the property setting value of the link mode. M, L R
SD9092 Error determination time Stores the property setting value of the error M, L R
setting determination time.
After a device above turns ON, the error code is stored in the corresponding device below.
FX5 dedicated FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error Stores the error code when a serial
code communication error occurs.
Precautions
Do not turn ON or OFF with program or engineering tool.
Serial communication error is not cleared even after communication is restored to normal state. Devices are cleared when
power is turned OFFON, STOPRUN, reset, or SM50 (Error Detection Reset Completion) is turned ON.
Precautions
Do not turn ON or OFF with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Serial communication errors are not cleared even after communication has recovered its normal status. Devices are cleared
when power is turned OFFON, STOPRUN, reset, or SM50 (Error Detection Reset Completion) is turned ON.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
3. Wiring
For wiring with twisted pair cable, and wiring example, refer to Page 314 Wiring.
4. Communication settings*1
For communication settings of communication device, refer to Page 320 Communication Setting.
5. Program creation
*1 For details on operating procedure of GX Works3, refer to the manual below.
GX Works3 Operating Manual
18 MC PROTOCOL
18.1 Function Summary 307
18.3 System Configuration
This section outlines the system configuration required to use the MC protocol.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
18 MC PROTOCOL
308 18.3 System Configuration
FX5UJ CPU module
A serial port of up to 2 channels can be connected in the FX5UJ CPU module by using a communication board and
communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
The combinations which can be configured are shown below.
18
[Configuration example 1] [Configuration example 2]
CH4: Communication adapter-2
CH3: Communication adapter-1 CH3: Communication adapter-1
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
18 MC PROTOCOL
18.3 System Configuration 309
FX5U CPU module
A serial port of up to 4 channels can be connected in the FX5U CPU module by using the built-in RS-485 port, communication
board, and communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
CH4: Communication adapter-2
CH3: Communication adapter-1
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
18 MC PROTOCOL
310 18.3 System Configuration
18.4 Specifications
Communication specifications
Communication is executed within the specifications shown in the table below. Set the baud rate, etc. in the parameter
settings of an engineering tool.
18
Items Specifications Remarks
Number of connectable modules 16 maximum
Transmission standard RS-485 or RS-232C standard
Maximum total extension distance RS-485 Distance varies depending on communication
• When using FX5-485ADP: 1200m or less equipment type.
• When using built-in RS-485 port or FX5-485-BD: 50m or
less
RS-232C: 15m or less
Protocol type MC protocol (dedicated protocol) 4C frame There are format 1/ format 4 /format 5.*2
3C frame There are format 1/ format 4.*2
*1
1C frame There are format 1/ format 4.*2
Control procedure
Communication method Half-duplex, bidirectional communication
Baud rate 300/600/1200/2400/4800/9600/19200/38400/57600/
115200(bps)
Character Start bit 1 bit
format
Data length 7 bits/8 bits When the protocol type is format5, the data
length should be 8 bits.
Parity bit None, odd or even
Stop Bit 1 bit/2 bits
Header Fixed
Terminator Fixed
Control line RS-485: None/ RS-232C: Provided
Sum check Provided or not provided
*1 For the FX5U/FX5UC CPU module 1C frame compatible version, refer to Page 935 Added and Changed Functions.
*2 For the message format of each format, refer to the following.
Page 692 MESSAGE FORMAT
18 MC PROTOCOL
18.4 Specifications 311
Link specifications
Link time
■Data transfer
Data transfer Data transfer
Interval time
18 MC PROTOCOL
312 18.4 Specifications
■Time to send or receive one character
The table below shows the time required to send or receive one character when the start bit is 1-bit, the data length is 7-bit,
the parity is 1-bit, and the stop bit is 1-bit (total 10-bits).
Transmission speed (baud rate) (bps) Time to send or receive 1 character (ms)
300 33.34
600 16.67 18
1200 8.34
2400 4.17
4800 2.08
9600 1.04
19200 0.52
38400 0.26
57600 0.17
115200 0.08
The tables below show the data transfer times depending on the number of continuously read or written word devices at
transmission speeds of 9600 bps and 19200 bps when the message waiting time is 0 ms*1, the maximum scan time is 20 ms,
and the interval time is 100 ms.
• When the transmission speed is 9600bps (Unit: Second)
Number of data points Number of stations
Station No. 1 Station No. 8 Station No. 16
10 points 0.3 1.9 3.7
32 points 0.4 2.6 5.2
64 points 0.5 3.7 7.3
When the types of read or written devices increase, "Data transfer time shown in above table Number of device types" is
required.
When the number of read or written points exceeds "64", the transfer time increases.
Accordingly, for achieving efficient data transfer, it is recommended to decrease the number of types of transferred devices
and use as many continuous device numbers as possible.
*1 When RS-485 one-pair wiring using FX-485PC-IF is adopted, the message waiting time (for every exchange) must be 70 to 150ms.
When RS-485 two-pair wiring or RS-232C is adopted, the message waiting time becomes 0ms.
18 MC PROTOCOL
18.4 Specifications 313
18.5 Wiring
This section explains the wiring.
Wiring procedure
1. Select the connection method.
Select the connection method suitable to the application. (Page 314 Selecting connection method)
RS-232C
communication
equipment
18 MC PROTOCOL
314 18.5 Wiring
In case of RS-485 (RS-422) communication (1:N)
For communication in accordance with RS-485 (RS-422), up to 16 PLC can be connected.
Make sure that the total extension distance is 1200m or less. (When using built-in RS-485 port or FX5-485-BD, 50m or less)
Personal computer FX5 PLC FX5 PLC
Station No.0 Station No.15 18
RS-232C/RS-485
communication
converter
RS-485 RS-485
FX-485PC-IF communication communication
equipment equipment
One-pair wiring and two-pair wiring are applicable for communication in accordance with RS-485 (RS-422). The wiring
method is determined for each application. Refer to the table below, and perform suitable wiring.
: Recommended wiring method, : Applicable wiring method, : Non-applicable wiring method
Item One-pair wiring Two-pair wiring
MC protocol*1 When the message waiting time should be 70 ms or less
*2
When the message waiting time may be more than 70 ms
*1 When computer link is added to an existing system, adopt the wiring method used in the existing system.
*2 "Echo" is generated when the FX-485PC-IF is used in one-pair wiring.
Take proper countermeasures in the computer so that the echo can be ignored.
Cable
Select cables using the procedure described below.
18 MC PROTOCOL
18.5 Wiring 315
Connecting cables
The table below shows applicable cables and tightening torques.
Item Number of Wire size Tightening torque
wires Solid wire, Stranded wire Wire ferrule with
connected insulation sleeve
per terminal
FX5U CPU module built-in RS-485 port One wire 0.2 to 0.5 (24 to 20 AWG) 0.2 to 0.5 (24 to 20 AWG) 0.22 to 0.25Nm
Two wires 0.2 (24 AWG)
FX5UC CPU module built-in RS-485 port One wire 0.3 to 0.5 (22 to 20 AWG) 0.3 to 0.5 (22 to 20 AWG)
FX5-485-BD
Two wires 0.3 (22 AWG)
FX5-485ADP
Precautions
Do not tighten terminal screws exceeding the specified torque range. Otherwise it may cause equipment failure or
malfunction.
5 mm 9 mm
6 mm 8 mm
2 to 2.5 mm 10.5 to 12 mm 2.6 mm 14 mm
<Reference>
Item Manufacturer Model name Crimping tool
FX5U CPU module built-in RS-485 port PHOENIX CONTACT GmbH & Co. KG AI 0.5-6 WH CRIMPFOX 6
CRIMPFOX 6T-F
FX5UC CPU module built-in RS-485 port AI 0.5-8 WH
FX5-485-BD
FX5-485ADP
18 MC PROTOCOL
316 18.5 Wiring
• Tool
For tightening the terminal, use a commercially available small screwdriver with straight tip that is not
widened toward the end as shown below.
■Precautions
With straight tip
If the diameter of the screwdriver tip is too small, the required tightening torque cannot be achieved. To
achieve the appropriate tightening torque shown in the previous page, use the following screwdriver or its
equivalent (grip diameter: approximately 25mm).
0.4 mm 2.5 mm
<Reference>
18
Manufacturer Model name
PHOENIX CONTACT GmbH & Co. KG SZS 0.42.5
■FX5U CPU module built-in RS-485 port ■FX5UC CPU module built-in RS-485 port
Termination
resistor selector
switch
Termination
resistor selector
switch
■FX5-485-BD ■FX5-485ADP
Termination
resistor Termination
selector switch resistor selector
switch
18 MC PROTOCOL
18.5 Wiring 317
Connection diagram
RS-232C
Representative wiring examples are shown in this section. When pin numbers in the counterpart equipment are different, wire
the pins as shown below.
RS-485/RS-422
■One-pair wiring
Built-in RS-485 port Built-in RS-485 port Built-in RS-485 port
RS-485 Communication FX5-485-BD FX5-485-BD FX5-485-BD
equipment FX5-485ADP FX5-485ADP FX5-485ADP
LINK
SG SG SG
SG
18 MC PROTOCOL
318 18.5 Wiring
■Two-pair wiring
Built-in RS-485 port Built-in RS-485 port Built-in RS-485 port
RS-485/RS-422 FX5-485-BD FX5-485-BD FX5-485-BD
Communication equipment FX5-485ADP FX5-485ADP FX5-485ADP
SDA SDA SDA SDA
(TXD+) (TXD+) (TXD+) (TXD+)
*2 SDB
(TXD-)
SDB
(TXD-)
SDB
(TXD-)
SDB
(TXD-)
*2 18
RDA RDA RDA RDA
(RXD+) (RXD+) (RXD+) (RXD+)
*2
RDB RDB RDB RDB *2
(RXD-) (RXD-) (RXD-) (RXD-)
Terminal Terminal
LINK resistor
resistor SG SG SG
SG 330 Ω × 2
330 Ω × 2
Grounding
Grounding should be performed as stated below.
• Perform D class grounding. (Grounding resistance: 100 or less)
• Independent grounding should be performed for best results.
If the PLC cannot be grounded independently, perform the "Shared grounding" shown below.
For details, refer to User's Manual (Hardware) of the CPU module used.
18 MC PROTOCOL
18.5 Wiring 319
18.6 Communication Setting
For the FX5 communication settings of this function, parameters are set using GX Works3. For details about GX Works3, refer
to GX Works3 Operating Manual.
Setting of parameter differs according to the module used. The procedure for each module is as follows.
Window
The following screen will be displayed if [MC Protocol] is set for the communication protocol type.
■Basic Settings
■Fixed Setting
■SM/SD Setting
18 MC PROTOCOL
320 18.6 Communication Setting
Communication board (CH2)
Navigation Window Parameter Model name Module Parameter Extended Board
Window
The following screen will be displayed if [FX5-232-BD] or [FX5-485-BD] is set for the extended board and [MC Protocol] is set 18
for the communication protocol type. Fixed setting and SM/SD setting are the same as for the built-in RS-485 port (CH1).
■Basic Settings
Window
Each setting screen is the same as for the built-in RS-485 port (CH1).
18 MC PROTOCOL
18.6 Communication Setting 321
Parameter setting details
Set the following items in the channel that uses MC protocol.
Items Setting value Reference
section
Basic Settings Extended Board*1 When using this function, select [FX5-232-BD] or [FX5-485-
BD].
Protocol type When using this function, select [MC Protocol].
Advanced Settings Data Length 7bit/8bit
Parity Bit None/Odd/Even
Stop Bit 1bit/2bit
Baud Rate 300bps/600bps/1200bps/2400bps/4800bps/9600bps/
19200bps/38400bps/57600bps/115200bps
Sum Check Code Added/Not Added
Fixed Setting Station Number 0 to 15
Message system Pattern 1 (X, Y OCT)/ Pattern 1 (X, Y HEX)*2/ Pattern 4 (X, Y
OCT)/ Pattern 4 (X, Y HEX)*2/ Pattern 5*3
Time-out Period 1 to 32767 (ms)
*4
Message Waiting Time 0 to 150 (ms)*5
SM/SD Setting Latch Setting Station No. Latch/Do Not Latch Page 322
FX3 Series SM/SD for Compatibility Disable/Enable
Compatibility*6
Latch Setting
Set the necessity of the corresponding SD (special register) latch.
Descriptions Setting range Compatible devices
Station number settings Latch/Do Not Latch SM8740, SM8750, SM8760, SM8770
18 MC PROTOCOL
322 18.6 Communication Setting
18.7 MC Protocol Command
Command list
The following commands can be executed in MC protocol.
18
1C frame
For details, refer to the following.
Page 774 Command and Function Lists for 1C Frame
3C/4C frame
For details, refer to the following.
Page 710 3C/4C frame
Applicable device
The table below shows devices and device number range that can handled in commands used in communication by MC
protocol.
Specify devices and device number range that are there in the targeted unit for performing data reading, writing etc.
1C frame
For details, refer to the following.
Page 776 Accessible device range
3C/4C frame
For details, refer to the following.
Page 716 3C/4C frame
18 MC PROTOCOL
18.7 MC Protocol Command 323
18.8 Related Devices
This section describes the special relay/special register functions used in the MC protocol function.
Available communication channels vary depending on the CPU module and system configuration.
For communication channels, refer to Page 308 System Configuration.
"FX3 Series compatible" devices operate only on the communication channel specified in the compatible SM/
SD for communication settings.
For compatible SM/SD, refer to Page 320 Communication Setting.
Special relay
■FX5 only
R: Read only
Device No. Name Description R/W
CH1 CH2 CH3 CH4
SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. R
SM8503 SM8513 SM8523 SM8533 Absence/presence of MC Turns ON when MC protocol is set for serial communication. R
protocol
SM8680 SM8690 SM8700 SM8710 Global ON Turns ON/OFF when the global command is received. R
SM8740 SM8750 SM8760 SM8770 Station number setting latch Turns ON when the SD latch setting of station number setting is R
setting valid flag valid.
ON: SD latch setting of station number setting is valid
OFF: SD latch setting of station number setting is invalid
18 MC PROTOCOL
324 18.8 Related Devices
Special register
■FX5 only
R: Read only
Device No. Name Description R/W
CH1 CH2 CH3 CH4 18
SD8500 SD8510 SD8520 SD8530 Serial communication error Stores the error code when the serial communication error R
code occurs.
SD8502 SD8512 SD8522 SD8532 Serial communication settings Stores the setting of the communication parameter. R
SD8503 SD8513 SD8523 SD8533 Serial communication Stores the communication type being used. R
operation mode
SD8740 SD8750 SD8760 SD8770 Station number settings*1 Sets the station number of a PLC. *2
SD8741 SD8751 SD8761 SD8771 Message system Stores the setting of the message system. R
SD8742 SD8752 SD8762 SD8772 Time-out time setting These devices set the evaluation time for error when receiving R
of data from the counterpart equipment is interrupted.
*1 When SD latch setting is set to "latch", device value can be changed in the program or an engineering tool, and by turning power supply
ONOFF or by reset, the corresponding function can be operated with the changed value.
*2 With latch settings: Read/write
No latch settings: Read only
After the devices above turns ON, the error code is stored in the compatible devices below.
FX5 only FX3 Series Name Description
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error
code occurs, the error code is stored.
Precautions
Do not turn ON or OFF with program or engineering tool.
Serial communication error does not turn OFF even if the communication comes back to normal. The devices turn OFF when
power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
18 MC PROTOCOL
18.8 Related Devices 325
Absence/presence of MC protocol
Turns ON when MC protocol is set for serial communication.
Turns ON by setting MC protocol for the protocol format by the parameters, and by turning power supply ONOFF or by
reset.
R: Read only
FX5 only FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SM8503 SM8513 SM8523 SM8533 SM8419 SM8439 Turns ON when MC protocol is set for serial R
communication.
Global ON
Turns ON/OFF when the global command is received.
R: Read only
FX5 only FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SM8680 SM8690 SM8700 SM8710 SM8126 SM8426 Turns ON/OFF when the global command is received. R
Precautions
Do not turn ON or OFF with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Serial communication errors are not cleared even after communication has recovered its normal status.
Devices are cleared when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is
turned ON.
18 MC PROTOCOL
326 18.8 Related Devices
Serial communication settings
Stores the set communication parameter in the communication settings when turning OFFON the PLC power or resetting
the system. (Page 320 Communication Setting)
R: Read only
CH1 CH2 CH3 CH4 Description R/W 18
SD8502 SD8512 SD8522 SD8532 Stores the setting of the communication parameter. R
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
18 MC PROTOCOL
18.8 Related Devices 327
Station number settings
When SD latch setting is set to "no latch", a station number of a local station that is set in the engineering tool and used in MC
protocol (station numbers 0 to 15 (00H to 0FH)) is stored when the power supply is turned OFFON or reset.
When SD latch setting is set to "latch", the contents of station number settings can be changed by program or engineering
tool, and by turning power supply ONOFF or by reset, it can be operated with the station number stored in the station
number settings.
CH1 CH2 CH3 CH4 Description R/W
*1
SD8740 SD8750 SD8760 SD8770 Stores the station number of a PLC.
Precautions
Do not change the value with program or engineering tool.
Message system
Stores the settings of the message system (format 1, 4, 5) that is set in the parameter.
R: Read only
CH1 CH2 CH3 CH4 Description R/W
SD8741 SD8751 SD8761 SD8771 0: Format 1 (X, Y OCT) R
3: Format 4 (X, Y OCT)
4: Format 5
5: Format 1 (X, Y HEX)*1
6: Format 4 (X, Y HEX)*1
*1 For supported versions of pattern 1 (X, Y HEX) and pattern 4 (X, Y HEX), refer to Page 935 Added and Changed Functions.
Precautions
Do not change the value with program or engineering tool.
Precautions
Set a longer time-out time to the parameter than the required time to receive one character for the baud rate being used.
Do not change the value with program or engineering tool.
18 MC PROTOCOL
328 18.8 Related Devices
19 INVERTER COMMUNICATION
This chapter explains inverter communication.
System
Up to 16 units
1200 m (50 m when the built-in RS-485 port or FX5-485-BD is used)
3. Wiring
For selection of cables and connection equipment, and wiring example, refer to Page 342 Wiring.
4. Communication settings*1
For communication settings of inverter, refer to Page 356 Inverter Communication Settings.
For communication settings of communication device, refer to Page 364 PLC Communication Settings.
5. Program creation
For detailed explanation of related devices, and basic program, refer to Page 366 Programming.
*1 For details on operating procedure of GX Works3, refer to the manual below.
GX Works3 Operating Manual
19 INVERTER COMMUNICATION
19.1 Function Outline 329
19.3 System Configuration
This section outlines the system configuration required to use inverter communication.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
19 INVERTER COMMUNICATION
330 19.3 System Configuration
FX5UJ CPU module
A serial port of up to 2 channels can be connected in the FX5UJ CPU module by using a communication board and
communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
The combinations which can be configured are shown below.
[Configuration example 1] [Configuration example 2]
CH4: Communication adapter-2
CH3: Communication adapter-1 CH3: Communication adapter-1 19
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
19 INVERTER COMMUNICATION
19.3 System Configuration 331
FX5U CPU module
A serial port of up to 4 channels can be connected in the FX5U CPU module by using the built-in RS-485 port, communication
board, and communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
CH4: Communication adapter-2
CH3: Communication adapter-1
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
19 INVERTER COMMUNICATION
332 19.3 System Configuration
FX5UC CPU module
A serial port of up to 3 channels can be connected in the FX5UC CPU module by using the built-in RS-485 port and
communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
CH4: Communication adapter-2
CH3: Communication adapter-1
19
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
19 INVERTER COMMUNICATION
19.3 System Configuration 333
19.4 Specifications
This section describes the communication specifications and performance of the inverter communication function.
Communication specifications
Items Specifications Remarks
Number of connectable modules Maximum of 16
Transmission standard RS-485 standard
Maximum overall distance When using FX5-485ADP: 1200m or less
When using built-in RS-485 port or FX5-485-BD: 50m or less
Protocol type Inverter computer link
Control procedure Asynchronous system
Communication method Half-duplex, bi-directional communication
Baud rate 4800/9600/19200/38400/57600/115200(bps) Only FREQROL-F800/A800 supports 57600 bps
or more
Character ASCll
format
Start bit 1 bit
Data length 7 bits/8 bits
Parity bit None, odd or even
Stop Bit 1 bit/2 bits
Applicable inverter
Series Connection destination
FREQROL-F800 Series Built-in RS-485 terminal
FREQROL-E800 Series Built-in PU connector
FREQROL-A800 Series Built-in RS-485 terminal
FREQROL-A800 Plus Series Built-in RS-485 terminal
FREQROL-F700PJ Series Built-in PU connector
FREQROL-F700P Series Built-in RS-485 terminal
FREQROL-A700 Series Built-in RS-485 terminal
FREQROL-E700 Series Built-in PU connector, FR-E7TR (optional)
FREQROL-E700EX Series Built-in PU connector
FREQROL-D700 Series Built-in PU connector
FREQROL-V500 Series Built-in PU connector, FR-A5NR (optional)
19 INVERTER COMMUNICATION
334 19.4 Specifications
Inverter instruction codes and parameters
The tables below show the inverter instruction codes and the parameters that can be communicated.
*1 Please set "0" to instruction code HFF (Link parameter expansion setting) just before the IVCK instruction when reading frequency.
When "0" is not set, reading of the frequency may not be executed normally.
19 INVERTER COMMUNICATION
19.4 Specifications 335
Inverter operation control
The table below shows instruction codes for writing to the inverter which can be specified by IVDR instruction (Page 383
Inverter operation control instruction) operand (s2) and their contents.
For the instruction codes, refer to the pages explaining computer link in detail in each inverter manual.
Inverter Write contents Applicable inverter
instruction F800 E800 A800 A800 F700PJ F700P A700 E700 E700EX D700 V500
code Plus
(hexadecimal)
HFB Operation mode
HF3 Special monitor
selection number
HF9 Run command
(expansion)
HFA Run command
HED Set frequency *3
write (RAM)
HEE Set frequency *3
write (EEPROM)
HFD*1 Inverter reset*2
HF4 Error contents
batch clear
HFC All parameter
clear
HFF Link parameter
expansion setting
*1 The instruction code "HFD (inverter reset)" does not request a response from the inverter. Accordingly, even if inverter reset is executed
in a station number to which an inverter is not connected, error does not occur. It takes about 2.2 seconds to complete execution of
inverter reset.
*2 When resetting the inverter, please specify H9696 as the operand (s3) of the IVDR instruction.
Do not use H9966.
*3 Please set "0" to instruction code HFF (Link parameter expansion setting) just before the IVDR instruction when writing frequency. When
"0" is not set, writing of the frequency may not be executed normally.
Parameters
For inverter parameters which can be changed (read/write), refer to the manual for each particular inverter.
19 INVERTER COMMUNICATION
336 19.4 Specifications
Time required for inverter communication instructions
Outline
The period of time after one inverter communication instruction is driven until communication with the inverter is completed
(SM8029 turns ON) is considered as the required time for the inverter communication instruction as shown.
X0
SET M0
M0
19
Inverter communication
instruction
SM8029
RST M0
M0
SM8029
Tinv
T1 T2 T3
T4 T5 T6[n] *1
Request
Inverter message
waiting time creation T7[n] *1 T8[n] *1 T9[n] *1
*1 The time required for the nth time send/receive of one instruction.
Some inverter communication instructions execute several send/receives. The following table shows the number of send/
receives in each instruction.
Inverter communication instruction Number of send/receives per instruction
IVCK 1
IVDR 1
IVRD Change of the 2nd parameter is unnecessary. 2
Change of the 2nd parameter is necessary.*2 3
IVWR Change of the 2nd parameter is unnecessary. 2
Change of the 2nd parameter is necessary.*2 3
IVBWR Number of times of communication (s2) (s2) 2 + Number of parameters requiring change of the 2nd parameter*2
IVMC 1
*2 For parameters requiring change of the 2nd parameter, refer to Page 398 Second parameter specification code.
19 INVERTER COMMUNICATION
19.4 Specifications 337
Calculation method
The required time "Tinv" for inverter communication instruction in units of "ms" is calculated as follows.
"INT(n)" in the calculation formula indicates an integer obtained by truncating decimal places of "n".
■Length of 1 character
In inverter communication, the communication setting is as shown in the following table.
The length of 1 character is as shown in the following expression.
Length of 1 character = Start bit + Data length + Parity bit + Stop bit = 10 [bit]
Name Setting value No. of bits
Start bit 1
Data length 7 7
Parity bit Even 1
Stop bit 1 1
Total 10
T5 1
= INT ( + 1 ) × Scan time
Scan time
T7[n]+T9[n] 1
={( ) × (No. of characters sent/received*2 × 1-character length) } × 1000
Communication speed [bps]
*2 Refer to Page 339 Number of sent/received characters for the number of sent/received characters.
*3 Refer to Page 339 Data check time of inverters for the data check time of inverters.
19 INVERTER COMMUNICATION
338 19.4 Specifications
■Number of sent/received characters
Inverter Parameter/instruction code First Second Third
communication Send Receive Total Send Receive Total Send Receive Total
instruction
IVCK H73, H7A, H7F, H6C 9 9 18
Other than above 9 11 20
IVDR HF3, HFA, HFF 11 4 15
HFD 13 0*2 13
IVRD
Other than above
Change of the 2nd parameter is
13
11
4
4
17
15
9
11
20
19
unnecessary.
Change of the 2nd parameter is 11 4 15 11 4 15 9 11 20
necessary.
IVWR Change of the 2nd parameter is 11 4 15 13 4 17
unnecessary.
Change of the 2nd parameter is 11 4 15 11 4 15 13 4 17
necessary.
IVBWR*1 Change of the 2nd parameter is 11 4 15 13 4 17
unnecessary.
Change of the 2nd parameter is 11 4 15 11 4 15 13 4 17
necessary.
IVMC 19 19 38
*1 Indicates the number of sent/received characters required to write 1 parameter. The IVBWR instruction executes parameter writing
repeatedly for the number of times of communication (s2).
*2 There is no response from the inverter because resetting is not complete. The PLC waits for 2.2 s until reset of the inverter is completed,
and then completes execution of the inverter communication instruction.
The IVWR, IVRD and IVBWR instructions automatically change expansion parameters and the 2nd parameter.
The data check time for the last (2nd or 3rd) send/receive in the IVWR and IVRD instructions and the data check time for the
last send/receive of each parameter writing in the IVBWR instruction corresponds to parameter reading/writing (<30ms).
The data check time for sending and receiving other than the above (such as expansion parameter change and 2nd
parameter change) corresponds to various monitors (<12ms).
19 INVERTER COMMUNICATION
19.4 Specifications 339
Calculation example
This is a calculation example for the following communication settings and scan time when communicating with an inverter.
Communication speed = 19200[bps]
Length of 1 character = 10[bit]
Scan time = 10[ms]
■Calculation example 1
Calculation of required time when Pr. 3 is read by the IVRD instruction
Tinv=T1+T2+T3=181[ms]
T1=10[ms], T3=1[ms]
Calculate "T2" as follows because Pr.3 does not require change of the 2nd parameter.
T2 = 2 × (T4 + T5) + T6[1] + T6[2] = 2 × (30 + 10) + 30 + 60 = 170 [ms]
Number of The first The second
send/receives send/receive send/receive
1 11
T4 = ( INT ( +1 ) × 10 ) + ( INT ( +1 ) × 10 ) = 30 [ms]
10 10
1
T5 = INT ( +1 ) × 10 = 10 [ms]
10
T7[1]+T8[1]+T9[1] 1 19.8
T6[1] = ( INT ( ) +1 ) × 10 + ( INT ( +1 ) × 10 ) = ( INT ( +1 ) ×10 ) +10 = 30 [ms]
10 10 10
T7[1] + T8[1] + T9[1] = 7.8 + 12 = 19.8 [ms]
1
T7[1] + T9[1] = ( ( ) × (11+4) × 10 ) × 1000 = 7.8 [ms]
19200
T8[1] = 12 [ms]
T7[2]+T8[2]+T9[2] 1 40.4
T6[2] = ( INT ( ) +1 ) × 10 + ( INT ( +1 ) × 10 ) = ( INT ( +1 ) ×10 ) +10 = 60 [ms]
10 10 10
T7[2] + T8[2] + T9[2] = 10.4 + 30 = 40.4 [ms]
1
T7[2] + T9[2] = ( ( ) × (9+11) × 10 ) × 1000 = 10.4 [ms]
19200
T8[2] = 30 [ms]
Tinv = T1 + T2 + T3 = 10 + 170 + 1 = 181 [ms]
■Calculation example 2
Calculation of required time when Pr.902 is read by the IVRD instruction
Tinv=T1+T2+T3=251[ms]
T1=10[ms], T3=1[ms]
Calculate "T2" as follows because Pr.902 does not require change of the 2nd parameter.
T2 = 3 × (T4+T5) + T6[1] + T6[2] + T6[3] = 3 × (30+10) + 30 + 30 + 60 = 240 [ms]
Number of The first The second The third
send/receives send/receive send/receive send/receive
1 11
T4 = ( INT ( +1 ) × 10 ) + ( INT ( +1 ) × 10 ) = 30 [ms]
10 10
1
T5 = INT ( +1 ) × 10 = 10 [ms]
10
T7[1]+T8[1]+T9[1] 1 19.8
T6[1] = ( INT ( ) +1 ) × 10 + ( INT ( +1 ) × 10 ) = ( INT ( +1 ) ×10 ) +10 = 30 [ms]
10 10 10
T7[1] + T8[1] + T9[1] = 7.8 + 12 = 19.8 [ms]
1
T7[1] + T9[1] = ( ( ) × (11+4) × 10 ) × 1000 = 7.8 [ms]
19200
T8[1] = 12 [ms]
T7[2]+T8[2]+T9[2] 1 19.8
T6[2] = ( INT ( ) +1 ) × 10 + ( INT ( +1 ) × 10 ) = ( INT ( +1 ) ×10 ) + 10 = 30 [ms]
10 10 10
T7[2] + T8[2] + T9[2] = 7.8 + 12 = 19.8 [ms]
1
T7[2] + T9[2] = ( ( ) × (11+4) × 10 ) × 1000 = 7.8 [ms]
19200
T8[2] = 12 [ms]
T7[3]+T8[3]+T9[3] 1 40.4
T6[3] = ( INT ( ) +1 ) × 10 + ( INT ( +1 ) × 10 ) = ( INT ( +1 ) ×10 +10 = 60 [ms]
10 10 10
T7[3] + T8[3] + T9[3] = 10.4 + 30 = 40.4 [ms]
1
T7[3] + T9[3] = ( ( ) × (9+11) × 10 ) × 1000 = 10.4 [ms]
19200
T8[3] = 30[ms]
Tinv = T1 + T2 + T3 = 10 + 240 + 1 = 251 [ms]
19 INVERTER COMMUNICATION
340 19.4 Specifications
■Calculation example 3
Calculation of required time when Pr.10 to Pr.14 [(s2) = 5] are written by the IVBWR instruction
Tinv=T1+T2+T3=851[ms]
T1=10(s2)=50[ms], T3=1[ms]
Calculate "T2" as follows because Pr.10 to Pr.14 do not require change of the 2nd parameter and the time required for writing
is same in each parameter.
T2 = ( 2 × (T4+T5) + T6[1]+T6[2] ) + ( 2 × (T4+T5) + T6[3]+T6[4] ) + •••
Time required to write Pr. 10 Time required to write Pr. 11
= 5 × ( 2 × (T4+T5) + T6[1] + T6[2] ) = 5 × ( 2 × (30+10) + 30 + 50 ) = 800 [ms] 19
(s2)
1 11
T4 = ( INT ( +1 ) × 10 ) + ( INT ( +1 ) × 10 ) = 30 [ms]
10 10
1
T5 = INT ( +1 ) × 10 = 10 [ms]
10
T7[1]+T8[1]+T9[1] 1 19.8
T6[1] = ( INT ( ) +1 ) × 10 + ( INT ( +1 ) × 10 ) = ( INT ( +1 ) ×10 +10 = 30 [ms]
10 10 10
T7[1] + T8[1] + T9[1] = 7.8 + 12 = 19.8 [ms]
1
T7[1] + T9[1] = ( ( ) × (11+4) × 10 ) × 1000 = 7.8 [ms]
19200
T8[1] = 12 [ms]
T7[2]+T8[2]+T9[2] 1 38.9
T6[2] = ( INT ( ) +1 ) × 10 + ( INT ( +1 ) × 10 ) = ( INT ( +1 ) ×10 +10 = 50 [ms]
10 10 10
T7[2] + T8[2] + T9[2] = 8.9 + 30 = 38.9 [ms]
1
T7[2] + T9[2] = ( ( ) × (13+4) × 10 ) × 1000 = 8.9 [ms]
19200
T8[2] = 30 [ms]
Tinv = T1 + T2 + T3 = 50 + 800 + 1 = 851 [ms]
19 INVERTER COMMUNICATION
19.4 Specifications 341
19.5 Wiring
This section explains about the wiring.
Wiring procedure
1. Select the connection method
Confirm the inverter connection method. (Page 342 Connection method)
Connection method
When connecting to RS-485 communication equipment, use the 10BASE-T cable or shielded twisted pair cables, depending
on the connection method.
19 INVERTER COMMUNICATION
342 19.5 Wiring
F800/A800/A800 Plus/F700P/A700 series
■Built-in RS-485 terminal
• In the case of 1-to-1 connection
Built-in RS-485
terminal
19
Twisted pair cable
• In the case of 1-to-n connection
19 INVERTER COMMUNICATION
19.5 Wiring 343
E800/F700PJ/E700/E700EX/D700/V500 series
■PU connector
• In the case of 1-to-1 connection
Termination
resistor
Distributor
10BASE-T
cable
10BASE-T cable
PU
connector
• In the case of 1-to-n connection
Termination
10BASE-T 10BASE-T
resistor
cable cable
Distributor Distributor Distributor
PU PU PU
connector connector connector
• Because the termination resistor cannot be connected to the inverter, use a distributor.
• Cannot be connected to the built-in Ethernet port of the CPU module.
FR-E7TR
19 INVERTER COMMUNICATION
344 19.5 Wiring
• In the case of 1-to-n connection
FR-A5NR
Termination resistor
19 INVERTER COMMUNICATION
19.5 Wiring 345
Cable
10BASE-T cable
Available 10BASE-T cables for PC LAN wiring can be used.
19 INVERTER COMMUNICATION
346 19.5 Wiring
Connecting cables
The table below shows applicable cables and tightening torques.
Item Number of Wire size Tightening torque
wires Solid wire, Stranded wire Wire ferrule with
connected insulation sleeve
per terminal
FX5U CPU module built-in RS-485 port One wire 0.2 to 0.5 (24 to 20 AWG) 0.2 to 0.5 (24 to 20 AWG) 0.22 to 0.25Nm
Two wires 0.2 (24 AWG)
FX5UC CPU module built-in RS-485 port One wire 0.3 to 0.5 (22 to 20 AWG) 0.3 to 0.5 (22 to 20 AWG) 19
FX5-485-BD
Two wires 0.3 (22 AWG)
FX5-485ADP
Precautions
Do not tighten terminal screws with torque beyond the specified range. Otherwise it may cause equipment failure or
malfunction.
5 mm 9 mm
6 mm 8 mm
2 to 2.5 mm 10.5 to 12 mm 2.6 mm 14 mm
<Reference>
Item Manufacturer Model name Crimping tool
FX5U CPU module built-in RS-485 port PHOENIX CONTACT GmbH & Co. KG AI 0.5-6 WH CRIMPFOX 6
CRIMPFOX 6T-F
FX5UC CPU module built-in RS-485 port AI 0.5-8 WH
FX5-485-BD
FX5-485ADP
19 INVERTER COMMUNICATION
19.5 Wiring 347
• Tool
For tightening the terminal, use a commercially available small screwdriver with straight tip that is not
widened toward the end as shown below.
■Precautions
With straight tip
If the diameter of the screwdriver tip is too small, the required tightening torque cannot be achieved. To
achieve the appropriate tightening torque shown in the previous page, use the following screwdriver or its
equivalent (grip diameter: approximately 25mm).
0.4 mm 2.5 mm
<Reference>
Manufacturer Model name
PHOENIX CONTACT GmbH & Co. KG SZS 0.42.5
19 INVERTER COMMUNICATION
348 19.5 Wiring
Termination resistor setting
Set or connect termination resistor of the inverter farthest from the FX5 PLC.
For details on connection, refer to Page 351 Connection diagram.
Termination
resistor selector
switch
■FX5-485-BD ■FX5-485ADP
Termination
resistor Termination
selector switch resistor selector
switch
19 INVERTER COMMUNICATION
19.5 Wiring 349
At the inverter
Communication may be affected by noise echo depending on the transmission speed and transmission distance. If
communication is hindered by noise echo, connect a termination resistor to the inverter.
OPEN
Termination
resistor selector
switch
100 Ω
■PU connector
The customer needs to prepare one termination resistor (100 , 1/2 W) such as the following.
Precision
Brown
Brown
Black
1 0 1 =100 Ω
(10 1 )
• Connect a termination resistor between pin No.3 (RDA) and pin No.6 (RDB).
• Connect a distributor to the PU terminal because termination resistors cannot be connected.
• Connect a termination resistor only to the inverter located furthest away from the PLC.
■FR-E7TR
A built-in termination resistor is provided. Connect a 100 termination resistor to the inverter farthest from the PLC.
OPEN
Termination
resistor selector
switch
100 Ω
■FR-A5NR
Connect a termination resistor chip (which is supplied together with the FR-A5NR) between the RDB and RDR terminals of
the inverter farthest from the PLC.
Shielded wiring
Perform Class-D grounding for the shield of one side of the cable (grounding resistance: 100 or less).
For details on connection, refer to Page 351 Connection diagram.
19 INVERTER COMMUNICATION
350 19.5 Wiring
Connection diagram
S SS RR
G DD DD
AB AB
11 11
PLC Class-D grounding
Inverter
+ - + - RXD + - + - RXD
Connect to SG in next
Connect to SG in PLC.
inverter.
19 INVERTER COMMUNICATION
19.5 Wiring 351
E800/F700PJ/E700/E700EX/D700/V500 series
■PU connector
• When one inverter is connected (4-wire type)
PU (RS-485) S S R R S
Connector D D D D G
AB AB 1
PLC Inverter
54361 Modular jack
PU (RS-485) S S R R S
Connector D D D D G
AB AB 1
PLC Inverter
54361 Modular jack
19 INVERTER COMMUNICATION
352 19.5 Wiring
• When multiple inverters are connected (up to 16) (2-wire type, E700 Series only)
For the pin arrangement in the connector, refer to the connection diagram for
one inverter.
■FR-E7TR
• When one inverter is connected (4-wire type)
19 INVERTER COMMUNICATION
19.5 Wiring 353
For branching, perform wiring as shown below: (4-wire type)
When connecting a 100 Ω termination resistor, set the switch to "100 Ω".
Built-in RS-485 port For crossover wiring of a shielded cable using the SG terminal,
FX5-485-BD set the terminal 2/SG selector switch to the right (ON) to change
FX5-485ADP terminal 2 to SG. (With this setting, analog inputs to terminal 2
become invalid.)
RDA SDA
RDB SDB
SDA RDA
SDB RDB
SG SG SG
RDB
RDA To next station inverter
SDB
PLC SDA
19 INVERTER COMMUNICATION
354 19.5 Wiring
For branching, perform wiring as shown below: (2-wire type)
■FR-A5NR
• When one inverter is connected
RDA
Twisted pair cable
RDB
(0.3 mm2 or more)
SDA
SDB Connect the termination resistor connection piece.
0.3 mm2 or more
SG
Terminal
array
SS RRR
S Terminal
DD DDD
G block Screw
AB ABR
FR-A5NR size: (M3) SDA SDB RDA RDB RDR SG A B C
PLC
Inverter Terminal
symbol
Connect them to the serial
port of the PLC.
19 INVERTER COMMUNICATION
19.5 Wiring 355
Grounding
Grounding should be performed as stated below.
• Perform Class-D grounding. (Grounding resistance: 100 or less)
• Independent grounding should be performed for best results.
If the PLC cannot be grounded independently, perform the "Shared grounding" shown below.
For details, refer to User's Manual (Hardware) of the CPU module used.
If these parameters are overwritten by the PLC after the inverter is connected, communication will be
disabled.
If these parameters are changed by mistake, they should be set again.
19 INVERTER COMMUNICATION
356 19.6 Inverter Communication Settings
FREQROL-F800/A800/A800 Plus series
Connection destination: Built-in RS-485 terminal
19 INVERTER COMMUNICATION
19.6 Inverter Communication Settings 357
Parameters (set as needed)
The table below shows parameters to be considered when using system configuration and inverters in various ways.
For the method of use, refer to the respective inverter manual.
Parameter No. Parameter Parameter item Setting Set conditions
group value
342 N001 Communication EEPROM write 0 or 1 0: Write to EEPROM and RAM.
selection 1: Write to RAM only.
338 D010 Communication operation 0 or 1 0: PLC
command source 1: Outside
339 D011 Communication speed command 0 or 1 0: PLC
source 1: Outside
FREQROL-E800 series
Connection destination: PU port
19 INVERTER COMMUNICATION
358 19.6 Inverter Communication Settings
Parameters (test operation, operation)
Parameters that must be adjusted for test operation and operation are as follows.
Parameter No. Parameter item Setting Set conditions
value
Pr.121 Number of PU communication 0 to 10, 9999 Set the value shown on the left during adjustment, and set a value from 0 to 10
retries during operation.
Pr.122 PU communication check time 0, 0.1 to Set the value shown on the left during adjustment, and set a value in accordance
interval 999.8, 9999 with the system specification during operation.
*1 The setting ranges of Pr.1 (Pr.18), Pr.37, and Pr.505 are limited so that the following formula is satisfied.
Pr.1 (Pr.18) Pr.37 / Pr.505 < 8388.607
The setting range of Pr.1 (Pr.18) is not limited when the machine speed display is not selected. To display the machine speed, set values
which satisfy the formula.
19 INVERTER COMMUNICATION
19.6 Inverter Communication Settings 359
FREQROL-F700P/A700 series
Connection destination: Built-in RS-485 terminal
19 INVERTER COMMUNICATION
360 19.6 Inverter Communication Settings
Parameters (set as needed)
The table below shows parameters to be considered when using system configuration and inverters in various ways.
For the method of use, refer to the respective inverter manual.
Parameter No. Parameter item Setting Set conditions
value
Pr.342 Communication EEPROM write 0 or 1 0: Write to EEPROM and RAM.
selection 1: Write to RAM only.
Pr.338 Communication operation command 0 or 1 0: PLC
rights 1: Outside 19
Pr.339 Communication speed command 0 or 1 0: PLC
rights 1: Outside
FREQROL-F700PJ/E700/D700/E700EX series
Connection destination: PU port, FR-E7TR
19 INVERTER COMMUNICATION
19.6 Inverter Communication Settings 361
Parameters (test operation, operation)
Parameters that must be adjusted for test operation and operation are as follows.
Parameter No. Parameter item Setting Set conditions
value
Pr.121 Number of PU communication 9999 Set the value shown on the left during adjustment, and set a value from 1 to 10
retries during operation.
Pr.122 PU communication check time 9999 Set the value shown on the left during adjustment, and set a value in accordance
interval with the system specification during operation.
19 INVERTER COMMUNICATION
362 19.6 Inverter Communication Settings
FREQROL-V500 series
Connection destination: PU port, FR-A5NR
19 INVERTER COMMUNICATION
19.6 Inverter Communication Settings 363
19.7 PLC Communication Settings
For the FX5 communication settings of this function, parameters are set using GX Works3. For details about GX Works3, refer
to GX Works3 Operating Manual.
Setting of parameter differs according to the module used. The procedure for each module is as follows.
Window
The following screen will be displayed if [Inverter Communication] is set for the communication protocol type.
■Basic Settings
■Fixed Setting
■SM/SD Setting
Window
The following screen will be displayed if [FX5-485-BD] is set for the extended board and [Inverter Communication] is set for
the communication protocol type. Fixed setting and SM/SD setting are the same as for the built-in RS-485 port (CH1).
■Basic Settings
19 INVERTER COMMUNICATION
364 19.7 PLC Communication Settings
Communication adapter (CH3/CH4)
When an expansion adapter is used, add expansion adapter to Module Information.
Navigation window Parameter Module Information Right-click Add New Module
After adding the expansion adapter, make settings on the screen displayed from the following operation.
Navigation window Parameter Module Information ADP1 to ADP6 (Communication adapter) Module
Parameter
Window 19
Each setting screen is the same as for the built-in RS-485 port (CH1).
19 INVERTER COMMUNICATION
19.7 PLC Communication Settings 365
19.8 Programming
This section explains how to create programs which change parameters of inverters and give operation commands to
inverters.
A program example is shown for each inverter communication instruction.
For details on related devices, refer to Page 404 Related Devices.
19 INVERTER COMMUNICATION
366 19.8 Programming
■Simultaneous driving of instructions and communication
(1) Driving instructions at the same time
• Two or more inverter communication instructions can be programmed, and driven at the same time.
• When two or more instructions are driven at the same time for the serial port used for communication, the next inverter
communication instruction in the program is executed after the current communication with the inverter has finished.
RUN monitor
SM400
IVWR (s1) (s2) (s3) K1 M100 (1)
M100, SM8920
ON→OFF
19
IVDR (s1) (s2) (s3) K1 M110 (2) M120, SM8920
ON→OFF
M110, SM8920
ON→OFF
19 INVERTER COMMUNICATION
19.8 Programming 367
• Inverter communication instructions standby for 11 ms after acquiring a serial port, and then starts communication. Even if
the drive contact turns ON, the inverter communication instruction stands by until (SM8920) turns ONOFF when the
SM8920 inverter communication busy flag has been turned ON by other inverter communication instruction. The PLC frees
the serial port, and then executes inverter communication instructions driven in the next step and so on.
M0
IVWR (s1) (s2) (s3) K1 M100
M1
IVCK (s1) (s2) (d1) K1 M110
M0
*1 *2
IVWR instruction
(during communication)
11 ms 11 ms 11 ms
M1
*2
IVCK instruction
(during communication)
11 ms 11 ms
Inverter communicating
SM8920 IVWR IVCK IVWR IVCK IVWR
*3 *3
Instruction execution
complete flag
SM8029
IVWR instruction
normal end flag
M101
IVCK instruction
execution flag
M110
IVCK instruction
normal end flag
M111
*1 If the command contact M1 is OFF and command contact M0 is turned ON when SM8920 (IVWR instruction execution complete) is
turned OFF, the IVWR instruction will not be executed because another instruction (IVCK instruction) is being executed.
*2 When two or more instructions are driven at the same time during communication, the next inverter communication instruction is
executed after the current instruction is completed.
*3 SM8920 remains OFF until the next inverter communication instruction is driven after execution of the current inverter communication
instruction is completed.
19 INVERTER COMMUNICATION
368 19.8 Programming
(2) Precautions for programming
When communicating with inverters for multiple items, set the command contact for inverter communication instruction to ON
until transmission is complete. Program so that the command contact is turned OFF, when all communication with the inverter
has been completed, using the instruction execution normal end flag ([d] +1 or [d2] +1), instruction execution abnormal end
flag ([d] +2 or [d2] +2) or instruction execution completed flag (SM8029).
• If using instruction execution normal end flag ([d] +1 or [d2] +1) or instruction execution abnormal end flag ([d] +2 or [d2] +2)
X1
SET M0 Command is latched.
M0 19
IVCK (s1) (s2) (d1) (n) M100 Communication is executed.
Instruction normal completion
M101
RST M0 Command is reset.
Instruction abnormal
completion
M102
X1
SET M0 Command is latched.
M0
IVCK (s1) (s2) (d1) (n) (d2) Communication is executed.
Instruction execution complete
SM8029
RST M0 Command is reset.
■Related devices
• Special relays
FX5 dedicated Description
CH1 CH2 CH3 CH4
SM8029 Instruction execution completed
SM8500 SM8510 SM8520 SM8530 Serial communication error
SM8921 SM8931 SM8941 SM8951 IVBWR instruction error
• Special registers
FX5 dedicated Description
CH1 CH2 CH3 CH4
SD8500 SD8510 SD8520 SD8530 Serial communication error code
SD8921 SD8931 SD8941 SD8951 IVBWR instruction error parameter number
19 INVERTER COMMUNICATION
19.8 Programming 369
■Operation of instruction execution complete flag
When communication with an inverter is completed, the instruction execution completed flag (SM8029) turns ON, and
remains ON for 1 scan.
SM8029 indicates completion of IVDR instruction communication as shown below, when M0, M2 are OFF and M1 is ON.
If inverter communication instruction ends normally, instruction execution normal end flag (Page 366 Communication
execution state output device) turns ON simultaneously with SM8029.
Operation of the instruction
(1) IVWR instruction is not driven execution completed flag
M0 (OFF)
IVWR (s1) (s2) (s3) (n) (d)
SM8029: OFF
You can create the following program for the corresponding instruction to check the inverter communication error code.
Program example
Start command
X0
SET M0
M0
IVWR (s1) (s2) (s3) K1 M100
Instruction abnormal completion
M102
SET M50 M50
Instruction error check
MOV SD8500 D50 D50
RST M0
19 INVERTER COMMUNICATION
370 19.8 Programming
Precautions for program creation
■Communication protocol setting
If protocol of communication settings (Page 364 PLC Communication Settings) for the serial port to be used is not set to
"Inverter Communication", inverter communication instructions cannot be used.
RST M0
19 INVERTER COMMUNICATION
19.8 Programming 371
■Using an inverter communication instruction in a program flow
An inverter communication instruction cannot be used in the following program flows.
Program flow that cannot use the inverter communication Remarks
instruction
Between CJ and P instructions Conditional jump
Between FOR and NEXT instructions Repeat
Between P and RET instructions Subroutine
Between I and IRET instructions Interrupt routine
19 INVERTER COMMUNICATION
372 19.8 Programming
Program example
This program performs operation monitoring, operation control, and parameter control for two inverters (Station number 0 and
1) from the built-in RS-485 port.
Contents of operation
Operation of the inverter is controlled by the input (X) of the FX5U CPU module, and the speed is changed by the device.
Item Station number 0 Station number 1
Operation stop X0 X10 19
Forward rotation X1 X11
Reverse rotation X2 X12
Speed change D10 D510
System configuration
The following shows an example of a system configuration for linking the FX5U CPU module (CH1) with two inverters (Station
number: 0 and 1).
Inverter A Inverter B
FX5U CPU module (CH1) (station number 0) (station number 1)
Terminal resistor
Distributor Distributor
Parameter setting
Set the "Communication Protocol Type" in the following parameter to "Inverter Communication", and set "Baud Rate" in the
Advanced Settings to "19,200bps". Change the Advanced Settings according to the specifications of the inverter being used.
Navigation Window Parameter FX5UCPU Module Parameter 485 Serial Port
19 INVERTER COMMUNICATION
19.8 Programming 373
■Writing parameters to an inverter while the PLC is in RUN mode
When M10 (or M510) turns ON, the parameters programmed in the inverter A (or inverter B) are written in. M10 (or M510)
turns OFF when writing is completed.
SM402
ZRST M510 M607 Clearing latch devices
Initial pulse
SET M10
Driving of
write
instruction
(station number 0)
SET M510
Driving of
write
instruction
*Inverter A (station number 0) (station number 1)
M10
IVDR K0 H0FD H9696 K1 M300 The inverter is reset
Driving of (station number 0)
write Computer link operation
instruction IVDR K0 H0FB H0*1 K1 M303 is specified
(station (station number 0)
number 0)
The maximum
MOVP K1 D200 frequency (Pr. 1) is
specified
(station number 0)
The maximum
MOVP K12000 D201 frequency (Pr. 1) is
set to "120 Hz"
(station number 0)
The minimum
MOVP K2 D202 frequency (Pr. 2) is
specified
(station number 0)
The minimum
MOVP K500 D203 frequency (Pr. 2) is
set to "5 Hz"
(station number 0)
The acceleration time
MOVP K7 D204 (Pr. 7) is specified
(station number 0)
The acceleration time
MOVP K10 D205 (Pr. 7) is set to "1 sec"
(station number 0)
The deceleration time
MOVP K8 D206 (Pr. 8) is specified
(station number 0)
The deceleration time
MOVP K10 D207 (Pr. 8) is set to "1 sec"
(station number 0)
The parameters are written
IVBWR K0 K4 D200 K1 M306 all at once
D200 to D207
(Pr. 1, Pr. 2, Pr. 7 and Pr. 8)
M307 (station number 0)
RST M10
Instruction execution
completed flag Driving of write
instruction
(station number 0)
*1 When using an E700 Series inverter, use "H2" to specify computer link operation.
19 INVERTER COMMUNICATION
374 19.8 Programming
*Inverter B (station number 1)
M510
IVDR K1 H0FD H9696 K1 M309 The inverter is reset
Driving of (station number 1)
write Computer link operation
instruction IVDR K1 H0FB H0*1 K1 M312 is specified
(station (station number 1)
number 1)
MOVP K1 D700
The maximum
frequency (Pr. 1) is
19
specified
(station number 1)
The maximum
MOVP K12000 D701 frequency (Pr. 1) is
set to "120 Hz"
(station number 1)
The minimum
MOVP K2 D702 frequency (Pr. 2) is
specified
(station number 1)
The minimum
MOVP K500 D703 frequency (Pr. 2) is
set to "5 Hz"
(station number 1)
The acceleration time
MOVP K7 D704 (Pr. 7) is specified
(station number 1)
The acceleration time
MOVP K10 D705 (Pr. 7) is set to "1 sec"
(station number 1)
The deceleration time
MOVP K8 D706 (Pr. 8) is specified
(station number 1)
The deceleration time
MOVP K10 D707 (Pr. 8) is set to "1 sec"
(station number 1)
The parameters are written
IVBWR K1 K4 D700 K1 M315 all at once
D700 to D707
(Pr. 1, Pr. 2, Pr. 7 and Pr. 8)
M316 (station number 1)
RST M510
Instruction execution
completed flag Driving of
write
instruction
(station
number 1)
*1 When using an E700 Series inverter, use "H2" to specify computer link operation.
19 INVERTER COMMUNICATION
19.8 Programming 375
■Changing the speed using a sequence program
When M11 (or M511) turns ON, the operation speed stored in D10 (or D510) is written into the inverter A (or inverter B). M11
(or M511) turns OFF when writing is completed.
19 INVERTER COMMUNICATION
376 19.8 Programming
■Controlling operations of an inverter
When M12 (or M512) turns ON, the inverter operation command is written in. M12 (or M512) turns OFF when writing is
completed.
Reverse rotation
command input
(station number 0)
M15 X1 X2
M21 b1 of H0FA is set to ON
Operation Forward Reverse
stop rotation rotation Forward rotation
(station command command command
number 0) input input (station number 0)
(station (station
number 0) number 0)
X2 X1
M22 b2 of H0FA is set to ON
Reverse Forward
rotation rotation Reverse rotation
command command command
input input (station number 0)
(station (station
number 0) number 0)
SM402
MOV K2M20 D81
Initial pulse Changes in the
Operation
operation
command is commands
withdrawn M27 to M20 are
(station detected
number 0)
19 INVERTER COMMUNICATION
19.8 Programming 377
* Inverter B (station number 1)
Reverse rotation
command input
(station number 1)
M515 X11 X12
M521 b1 of H0FA is set to ON
Operation Forward Reverse
stop rotation rotation Forward rotation
(station command command command
number 1) input input (station number 1)
(station (station
number 1) number 1)
X12 X11
M522 b2 of H0FA is set to ON
Reverse Forward
rotation rotation Reverse rotation
command command command
input input (station number 1)
(station (station
number 1) number 1)
SM402
MOV K2M520 D581
Initial pulse Changes in the
Operation
operation
command is commands
withdrawn M527 to M520 are
(station detected
number 1)
19 INVERTER COMMUNICATION
378 19.8 Programming
■Monitoring operations of an inverter
This program reads the status and output frequency written into the inverter A (or inverter B).
MCR N0
*1 V500 Series inverters do not support the command code H79 (Inverter status monitor (extended)). Use the command code H7A
(Inverter status monitor).
*2 For the V500 Series inverter, write "0" to instruction code HFF (Link parameter expansion setting) just before reading the output
frequency monitor in the program.
19 INVERTER COMMUNICATION
19.8 Programming 379
* Inverter B (station number 1)
N0 M570
MCR N0
END
*1 V500 Series inverters do not support the command code H79 (Inverter status monitor (extended)). Use the command code H7A
(Inverter status monitor).
*2 For the V500 Series inverter, write "0" to instruction code HFF (Link parameter expansion setting) just before reading the output
frequency monitor in the program.
19 INVERTER COMMUNICATION
380 19.8 Programming
Inverter operation monitoring instruction
This instruction reads the operation status of an inverter.
For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F
FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
IVCK
Ladder ST FBD/LD
ENO:=IVCK (EN, s1, s2, n, d1, d2); 19
(s1) (s2) (d1) (n) (d2)
EN ENO
s1 d1
s2 d2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(s1) Inverter station number K0 to 31 16-bit signed binary ANY16
(s2) Inverter instruction codes Page 335 16-bit signed binary ANY16
(d1) Device number storing the read value 16-bit signed binary ANY16
(n)*1 Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
(d2)*2 Head bit device number to output the instruction Bit ANYBIT_ARRAY
execution status (Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 Specify a channel No. for which communication setting is set for inverter communication.
*2 Make sure not to use devices being used in other control operations. (Page 366 Communication execution state output device)
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(s1) *1
(s2) *1
(d1)
(n)
(d2) *1
Processing details
Write the operation status of inverter corresponding to instruction code (Page 335 Inverter operation monitoring) of (s2)
for station No. (s1) of the inverter connected to the communication channel (n) in (d1).
19 INVERTER COMMUNICATION
19.8 Programming 381
Operation error
Operation errors pertaining to the instruction are as follows.
Operation error flag Operation error Description
code
SM0 SM1 SM56 SM8067 SD0 SD8067
ON 1810H When specified channel is used with another instruction.
ON 2820H When specified device exceeds the device range.
ON 3405H When the value specified in (s1) is other than K0 to 31.
When the value specified in (n) is other than the following channel numbers.
• FX5S/FX5UJ CPU module
K2 to K4
• FX5U/FX5UC CPU module
K1 to K4
ON 3600H When specified channel is not set with parameter.
Program example
Reads status (H7A) of inverter (station No.0) into CPU module (CH1), stores the read value in M100 to M107 and outputs
externally (Y0 to Y3).
Read contents: Inverter operating = M100, normal rotation = M101, reverse rotation = M102, error occurrence = M107
RUN monitor
(s1) (s2) (d1) (n) (d2)
SM400
IVCK K0 H7A K2M100 K1 M200 Inverter status monitor → M100 to M107
Forward rotation
M101
Y1
Status details
Reverse rotation (as needed)
M102
Y2
Alarm
occurrence
M107
Y3
19 INVERTER COMMUNICATION
382 19.8 Programming
Inverter operation control instruction
This instruction writes an inverter operation required set value to an inverter.
For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F
FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
IVDR
Ladder ST FBD/LD
ENO:=IVDR (EN, s1, s2, s3, n, d); 19
(s1) (s2) (s3) (n) (d)
EN ENO
s1 d
s2
s3
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(s1) Inverter station number K0 to 31 16-bit signed binary ANY16
(s2) Inverter instruction codes Refer to Page 336. 16-bit signed binary ANY16
(s3) Set value to be written to the inverter parameter or device 16-bit signed binary ANY16
number storing the data to be set
(n)*1 Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
(d)*2 Head bit device number to output the instruction Bit ANYBIT_ARRAY
execution status (Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 Specify a channel No. for which communication setting is set for inverter communication.
*2 Make sure not to use devices being used in other control operations. (Page 366 Communication execution state output device)
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(s1) *1
(s2) *1
(s3)
(n)
(d) *1
Processing details
Writes set value of (s3) to the instruction code (Page 336 Inverter operation control) of (s2) for station No. (s1) of the
inverter connected to the communication channel (n).
19 INVERTER COMMUNICATION
19.8 Programming 383
Operation error
Operation errors pertaining to the instruction are as follows.
Operation error flag Operation error Description
code
SM0 SM1 SM56 SM8067 SD0 SD8067
ON 1810H When specified channel is used with another instruction.
ON 2820H When specified device exceeds the device range.
ON 3405H When the value specified in (s1) is other than K0 to 31.
When the value specified in (n) is other than the following channel numbers.
• FX5S/FX5UJ CPU module
K2 to K4
• FX5U/FX5UC CPU module
K1 to K4
ON 3600H When specified channel is not set with parameter.
Program example
Assuming that the initial value at startup is 60Hz, the CPU module (CH1) switches the operation speed (HED) of the inverter
(Station No.3) between speed 1 (40Hz) and speed 2 (20Hz) by using switch commands.
Write contents: D10 = Operation speed (initial value: 60Hz, speed 1: 40Hz, speed 2: 20Hz)
Switch Switch
command command
RUN monitor (Speed 1) (Speed 2)
SM400 M10 M20
MOVP K6000 D10 Initial value at startup: 60 Hz
Switch Switch
command command
(Speed 1) (Speed 2)
M10 M20
MOVP K4000 D10 Operation speed: 40 Hz
Switch Switch
command command
(Speed 1) (Speed 2)
M10 M20
MOVP K2000 D10 Operation speed: 20 Hz
19 INVERTER COMMUNICATION
384 19.8 Programming
Inverter parameter read
This instruction reads an inverter parameter to the PLC.
For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F
FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
IVRD
Ladder ST FBD/LD
ENO:=IVRD (EN, s1, s2, n, d1, d2); 19
(s1) (s2) (d1) (n) (d2)
EN ENO
s1 d1
s2 d2
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(s1) Inverter station number K0 to 31 16-bit signed binary ANY16
(s2) Inverter parameter number Refer to Page 336. 16-bit signed binary ANY16
(d1) Device number storing the read value 16-bit signed binary ANY16
(n)*1 Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
(d2)*2 Head bit device number to output the instruction Bit ANYBIT_ARRAY
execution status (Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 Specify a channel No. for which communication setting is set for inverter communication.
*2 Make sure not to use devices being used in other control operations. (Page 366 Communication execution state output device)
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(s1) *1
(s2) *1
(d1)
(n)
(d2) *1
Processing details
The value of the parameter No. (s2) is read to (d1) from station No. (s1) of inverter connected to communication channel (n).
19 INVERTER COMMUNICATION
19.8 Programming 385
Operation error
Operation errors pertaining to the instruction are as follows.
Operation error flag Operation error Description
code
SM0 SM1 SM56 SM8067 SD0 SD8067
ON 1810H When specified channel is used with another instruction.
ON 2820H When specified device exceeds the device range.
ON 3405H When the value specified in (s1) is other than K0 to 31.
When the value specified in (s2) is outside the range that can be specified.
(Less than K0, K3000 to 9999, K13000 to 32767)
When the value specified in (n) is other than the following channel numbers.
• FX5S/FX5UJ CPU module
K2 to K4
• FX5U/FX5UC CPU module
K1 to K4
ON 3600H When specified channel is not set with parameter.
19 INVERTER COMMUNICATION
386 19.8 Programming
Program example
Reads value of the following inverter (station No.6) parameters to storage device for CPU module (CH1).
Example of program using second parameter specification code (Page 398 Second parameter specification code) of
FREQROL-F700P series inverter.
Parameter No. Name Second parameter Storage devices
specification code
C2 Terminal 2 frequency setting bias 902 D100
frequency
C3 Terminal 2 frequency setting bias 1902 D101 19
125 Terminal 2 frequency setting gain 903 D102
frequency
C4 Terminal 2 frequency setting gain 1903 D103
Reading
contact
X1
SET M0
Command
contact (s1) (s2) (d1) (n) (d2)
M0 Terminal 2 frequency setting bias frequency
IVRD K6 K902 D100 K1 M200 → D100
19 INVERTER COMMUNICATION
19.8 Programming 387
Inverter parameter write
This instruction writes a value from the PLC to a parameter in an inverter.
For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F
FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
IVWR
Ladder ST FBD/LD
ENO:=IVWR (EN, s1, s2, s3, n, d);
s1 d
s2
s3
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(s1) Inverter station number K0 to 31 16-bit signed binary ANY16
(s2) Inverter parameter number Refer to Page 336. 16-bit signed binary ANY16
(s3) Set value to be written to the inverter parameter or device 16-bit signed binary ANY16
number storing the data to be set
(n)*1 Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
(d)*2 Head bit device number to output the instruction Bit ANYBIT_ARRAY
execution status (Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 Specify a channel No. for which communication setting is set for inverter communication.
*2 Make sure not to use devices being used in other control operations. (Page 366 Communication execution state output device)
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(s1) *1
(s2) *1
(s3)
(n)
(d) *1
Processing details
Writes value of (s3) in parameter No. (s2) of station No. (s1) of inverter connected to communication channel (n).
19 INVERTER COMMUNICATION
388 19.8 Programming
Operation error
Operation errors pertaining to the instruction are as follows.
Operation error flag Operation error Description
code
SM0 SM1 SM56 SM8067 SD0 SD8067
ON 1810H When specified channel is used with another instruction.
ON 2820H When specified device exceeds the device range.
ON 3405H When the value specified in (s1) is other than K0 to 31.
When the value specified in (s2) is outside the range that can be specified.
19
(Less than K0, K3000 to 9999, K13000 to 32767)
When the value specified in (n) is other than the following channel numbers.
• FX5S/FX5UJ CPU module
K2 to K4
• FX5U/FX5UC CPU module
K1 to K4
ON 3600H When specified channel is not set with parameter.
19 INVERTER COMMUNICATION
19.8 Programming 389
Program example
Writes setting values to parameter shown in the following table for inverter (station No.6) from the CPU module (CH1).
Example of program using second parameter specification code (Page 398 Second parameter specification code) of
FREQROL-F700P series inverter.
Parameter No. Name Second parameter Setting values to be written
specification code
C2 Terminal 2 frequency setting bias 902 10[Hz]
frequency
C3 Terminal 2 frequency setting bias 1902 100[%]
125 Terminal 2 frequency setting gain 903 200[Hz]
frequency
C4 Terminal 2 frequency setting gain 1903 100[%]
Reading
contact
X1
SET M0
Command
contact
(s1) (s2) (s3) (n) (d)
M0
Terminal 2 frequency setting bias frequency:
IVWR K6 K902 HA K1 M200 10 Hz
19 INVERTER COMMUNICATION
390 19.8 Programming
Inverter parameter block write
This instruction writes parameters of an inverter at one time
For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F
FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
IVBWR
Ladder ST FBD/LD
ENO:=IVBWR (EN, s1, s2, s3, n, d); 19
(s1) (s2) (s3) (n) (d)
EN ENO
s1 d
s2
s3
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(s1) Inverter station number K0 to 31 16-bit signed binary ANY16
(s2) Number of parameters in an inverter to be written at one 16-bit signed binary ANY16
time
(s3) Head device number of a parameter table to be written to 16-bit signed binary ANY16
an inverter
(n)*1 Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
(d)*2 Head bit device number to output the instruction Bit ANYBIT_ARRAY
execution status (Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 Specify a channel No. for which communication setting is set for inverter communication.
*2 Make sure not to use devices being used in other control operations. (Page 366 Communication execution state output device)
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(s1) *1
(s2) *1
(s3)
(n)
(d) *1
19 INVERTER COMMUNICATION
19.8 Programming 391
Processing details
Continuously writes parameter numbers and their values (2 words/parameter) for the number of points specified by (s2)
starting from word device specified by (s3) for station No. (s1) of inverter connected to communication channel (n) (no limit to
number of points that can be written).
Ex.
Writing contents for (s2): K8, (s3): D200
Operation error
Operation errors pertaining to the instruction are as follows.
Operation error flag Operation error Description
code
SM0 SM1 SM56 SM8067 SD0 SD8067
ON 1810H When specified channel is used with another instruction.
ON 2820H When specified device exceeds the device range.
ON 3405H When the value specified in (s1) is other than K0 to 31.
When the value specified in (s2) is less than K0.
When the value specified in (s3), ..., (s3) +2 ([s2] -1) is outside the range
that can be specified. (Less than K0, K3000 to 9999, K13000 to 32767)
When the value specified in (n) is other than the following channel numbers.
• FX5S/FX5UJ CPU module
K2 to K4
• FX5U/FX5UC CPU module
K1 to K4
ON 3600H When specified channel is not set with parameter.
19 INVERTER COMMUNICATION
392 19.8 Programming
Program example
Writes upper limit frequency (Pr.1): 120Hz, lower limit frequency (Pr.2): 5Hz, acceleration time (Pr.7): 1 second, deceleration
time (Pr.8):1 second for inverter (station No.5) from CPU module (CH1).
Write contents: Parameter No.1 = D200, 2 = D202, 7 = D204, 8 = D206, upper limit frequency = D201, lower limit frequency =
D203, acceleration time = D205, deceleration time = D207
Initial pulse
SM402
SET M10 Write command ON 19
Write
command
M10
Parameter No.
MOVP K1 D200
[Pr.1]: Maximum frequency
Parameter No.
MOVP K2 D202 [Pr.2]: Minimum frequency
Parameter No.
MOVP K7 D204 [Pr.7]: Acceleration time
Parameter No.
MOVP K8 D206 [Pr.8]: Deceleration time
19 INVERTER COMMUNICATION
19.8 Programming 393
Multiple inverter commands
This instruction writes 2 types of settings (operation command and set frequency) to the inverter, and reads 2 types of data
(inverter status monitor, output frequency, etc.) from the inverter at the same time.
For information concerning inverter communication instruction expressions and execution format, refer to MELSEC iQ-F
FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
IVMC
Ladder ST FBD/LD
ENO:=IVMC (EN, s1, s2, s3, n, d1, d2);
s1 d1
s2 d2
s3
Setting data
■Descriptions, ranges, and data types
Operand Description Range Data type Data type (label)
(s1) Inverter station number K0 to 31 16-bit signed binary ANY16
(s2) Multiple instructions for inverter: Page 395 Send/ 16-bit signed binary ANY16
receive data type
(s3)*1 Head device of a parameter data to be written to an 16-bit signed binary ANY16_ARRAY
inverter (Number of elements: 2)
(d1)*1 Head device which stores values to be read from the 16-bit signed binary ANY16_ARRAY
inverter (Number of elements: 2)
(n)*2 Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
(d2)*1 Head bit device number to output the instruction Bit ANYBIT_ARRAY
execution status (Number of elements: 3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 Specify a channel No. for which communication setting is set for inverter communication. (Page 366 Communication execution state
output device)
*2 Specify a channel No. for which communication setting is set for inverter communication.
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(s1) *1
*1
(s2)
(s3)
(d1)
(n)
(d2) *1
19 INVERTER COMMUNICATION
394 19.8 Programming
Processing details
This instruction executes multiple commands to an inverter connected to the communication channel (n) whose station
number is specified in (s1). Specify the send/receive data type using (s2), the head device which stores data to be written to
the inverter using (s3), and the head device which stores values to be read from the inverter using (d1).
Precautions
• If a device number outside the range due to cases such as indexing is specified in (d1), the receive data from the inverter is
not stored in (d1). However, values set in (s3) and (s3)+1 may be written to the inverter.
• If any unspecified value is set in (s2), unexpected data may be written to and read from the inverter, and values of (d1) and
(d1)+1 may be updated.
• The IVMC instruction reads the inverter status at the time of communication with the inverter, and stores it in (d1).
Accordingly, the inverter status written by the IVMC instruction can be read when the next reading instruction (IVCK, IVMC,
etc.) is executed.
Operation error
Operation errors pertaining to the instruction are as follows.
Operation error flag Operation error Description
code
SM0 SM1 SM56 SM8067 SD0 SD8067
ON 1810H When specified channel is used with another instruction.
ON 2820H When specified device exceeds the device range.
ON 3405H When the value specified in (s1) is other than K0 to 31.
When the value specified in (n) is other than the following channel numbers.
• FX5S/FX5UJ CPU module
K2 to K4
• FX5U/FX5UC CPU module
K1 to K4
ON 3600H When specified channel is not set with parameter.
19 INVERTER COMMUNICATION
19.8 Programming 395
Applicable inverters
This instruction is applicable to the following inverters:
• FREQROL-E700 series (February 2009 and later)
• FREQROL-F800/A800/F700PJ/F700P/E700EX/D700 Series
Program example
Writes (s3): run command (expansion), (s3) +1: setting frequency (RAM) and reads (d1): inverter status monitor (expansion),
(d1) +1: output frequency (rotation speed) for inverter (station No.0) from CPU module (CH1).
Send/receive type code: H0000
• (s3): Run command (expansion)
Runs inverter in forward or reverse by forward rotation command (M21)/reverse rotation command (M22).
Write contents: D10 = run command (M21 = forward rotation, M22 = reverse rotation)
• (s3) + 1: Set frequency (RAM)
Switches speed 1 (40Hz)/speed 2 (20Hz) with 60Hz as the initial value when starting up.
Write contents: D11 = Operation speed (initial value: 60Hz, speed 1: 40Hz, speed 2: 20Hz)
• (d1): Inverter status monitor (expansion)
Stores read value in M100 to M115 and outputs externally (Y0 to Y3).
Read contents: D20 = inverter monitor (expansion) (inverter running = M100, forward rotation = M101, reverse rotation =
M102, error = M115)
19 INVERTER COMMUNICATION
396 19.8 Programming
• (d1) + 1: Output frequency (speed)
Reads output frequency (rotation speed).
Read contents: D21 = Output frequency (rotation speed)
Switch Switch
command command
RUN monitor (Speed 1) (Speed 2)
SM400 M10 M20
Initial value at startup:
MOVP K6000 D11 60 Hz
Switch Switch
command command
(Speed 1) (Speed 2)
M10 M20
MOVP K4000 D11 Operation speed: 40 Hz
Write contents to Inverter
Transmission data 2 (s3)+1
19
Switch Switch
command command
(Speed 1) (Speed 2)
M10 M20
MOVP K2000 D11 Operation speed: 20 Hz
Operation stop
command
X0
Operation stop
SET M15 (HF9 b1, b2 OFF)
Forward rotation Operation stop
command X1 command X0
Operation stop cancel
RST M15 (HF9 b1 or b2 ON)
Reverse rotation
command X2
Forward Reverse
rotation rotation
Operation command command
stop M15 X1 X2
Forward rotation
M21 command (HF9 b1 ON)
Reverse rotation Forward rotation
command command
X2 X1 Reverse rotation Write contents to Inverter
M22 command (HF9 b2 ON) Transmission data 1 (s3)
RUN monitor
SM400
MOV K4M20 D10 Operation command write
19 INVERTER COMMUNICATION
19.8 Programming 397
Second parameter specification code
When handling the following parameters in inverter communication, it is necessary to select second parameters. In IVRD,
IVWR, and IVBWR instructions, when a value shown in the tables below is set in (s2) ((s3) in IVBWR instruction), the
extension parameter and second parameter are automatically overwritten, and parameter values are either read or written.
For details concerning inverter parameters, refer to the manual for each particular inverter.
FREQROL-F800 series
Second parameter specification codes for parameter numbers Pr.125, Pr.126, C2 to C19 and C38 to C41
Parameter No. Name Second parameter specification code
C2 Terminal 2 frequency setting bias 902
frequency
C3 Terminal 2 frequency setting bias 1902
125 Terminal 2 frequency setting gain 903
frequency
C4 Terminal 2 frequency setting gain 1903
C5 Terminal 4 frequency setting bias 904
frequency
C6 Terminal 4 frequency setting bias 1904
126 Terminal 4 frequency setting gain 905
frequency
C7 Terminal 4 frequency setting gain 1905
C12 Bias frequency (speed) for terminal No.1 917
C13 Bias (speed) for terminal No.1 1917
C14 Gain frequency (speed) for terminal 918
No.1
C15 Gain (speed) for terminal No.1 1918
C16 Bias command (torque) for terminal 919
No.1
C17 Bias (torque) for terminal No.1 1919
C18 Gain command (torque) for terminal 920
No.1
C19 Gain (torque) for terminal No.1 1920
C8 Current output bias signal 930
C9 Current output bias current 1930
C10 Current output gain signal 931
C11 Current output gain current 1931
C38 Bias command (torque) for terminal 932
No.4
C39 Bias (torque) for terminal No.4 1932
C40 Gain command (torque) for terminal 933
No.4
C41 Gain (torque) for terminal No.4 1933
C42 PID display bias coefficient 934
C43 PID display bias analog value 1934
C44 PID display gain coefficient 935
C45 PID display gain analog value 1935
19 INVERTER COMMUNICATION
398 19.8 Programming
FREQROL-E800 series
Second parameter specification codes for parameter numbers Pr.125, Pr.126, C2 to C7 and C38 to C45
Parameter No. Name Second parameter specification code
C2 Terminal 2 frequency setting bias 902
(frequency)
C3 Terminal 2 frequency setting bias 1902
(analog value)
125 Terminal 2 frequency setting gain 903
(frequency) 19
C4 Terminal 2 frequency setting gain 1903
(analog value)
C5 Terminal 4 frequency setting bias 904
(frequency)
C6 Terminal 4 frequency setting bias 1904
(analog value)
126 Terminal 4 frequency setting gain 905
(frequency)
C7 Terminal 4 frequency setting gain 1905
(analog value)
C3 Terminal 2 frequency setting bias 2902
(terminal analog value)
C4 Terminal 2 frequency setting gain 2903
(terminal analog value)
C6 Terminal 4 frequency setting bias 2904
(terminal analog value)
C7 Terminal 4 frequency setting gain 2905
(terminal analog value)
C38 Terminal 4 bias command (torque/ 932
magnetic flux)
C39 Terminal 4 bias (torque/magnetic flux) 1932
C40 Terminal 4 gain command (torque/ 933
magnetic flux)
C41 Terminal 4 gain (torque/magnetic flux) 1933
C39 Terminal 4 bias (torque/magnetic flux) 2932
(terminal analog value)
C41 Terminal 4 gain (torque/magnetic flux) 2933
(terminal analog value)
C42 PID display bias coefficient 934
C43 PID display bias analog value 1934
C44 PID display gain coefficient 935
C45 PID display gain analog value 1935
C43 PID display bias analog value (terminal 2934
analog value)
C45 PID display gain analog value (terminal 2935
analog value)
19 INVERTER COMMUNICATION
19.8 Programming 399
FREQROL-A800/A800 Plus series
Second parameter specification codes for parameter numbers Pr.125, Pr.126, C2 to C19 and C38 to C41
Parameter No. Name Second parameter specification code
C2 Terminal 2 frequency setting bias 902
frequency
C3 Terminal 2 frequency setting bias 1902
125 Terminal 2 frequency setting gain 903
frequency
C4 Terminal 2 frequency setting gain 1903
C5 Terminal 4 frequency setting bias 904
frequency
C6 Terminal 4 frequency setting bias 1904
126 Terminal 4 frequency setting gain 905
frequency
C7 Terminal 4 frequency setting gain 1905
C12 Bias frequency (speed) for terminal No.1 917
C13 Bias (speed) for terminal No.1 1917
C14 Gain frequency (speed) for terminal 918
No.1
C15 Gain (speed) for terminal No.1 1918
C16 Terminal 1 bias command (torque/ 919
magnetic flux)
C17 Terminal 1 bias (torque/magnetic flux) 1919
C18 Terminal 1 gain command (torque/ 920
magnetic flux)
C19 Terminal 1 gain (torque/magnetic flux) 1920
C8 Current output bias signal 930
C9 Current output bias current 1930
C10 Current output gain signal 931
C11 Current output gain current 1931
C38 Terminal 4 bias command (torque/ 932
magnetic flux)
C39 Terminal 4 bias (torque/magnetic flux) 1932
C40 Terminal 4 gain command (torque/ 933
magnetic flux)
C41 Terminal 4 gain (torque/magnetic flux) 1933
C42 PID display bias coefficient 934
C43 PID display bias analog value 1934
C44 PID display gain coefficient 935
C45 PID display gain analog value 1935
19 INVERTER COMMUNICATION
400 19.8 Programming
FREQROL-F700P series
Second parameter specification codes for parameter numbers Pr.125, Pr.126 and C2 to C7
Parameter No. Name Second parameter specification code
C2 Terminal 2 frequency setting bias 902
frequency
C3 Terminal 2 frequency setting bias 1902
125 Terminal 2 frequency setting gain 903
frequency
C4 Terminal 2 frequency setting gain 1903 19
C5 Terminal 4 frequency setting bias 904
frequency
C6 Terminal 4 frequency setting bias 1904
126 Terminal 4 frequency setting gain 905
frequency
C7 Terminal 4 frequency setting gain 1905
C42 PID display bias coefficient 934
C43 PID display bias analog value 1934
C44 PID display gain coefficient 935
C45 PID display gain analog value 1935
19 INVERTER COMMUNICATION
19.8 Programming 401
FREQROL-A700 series
Second parameter specification codes for parameter numbers Pr.125, Pr.126, C2 to C7, C12 to C19 and C38 to C41
Parameter No. Name Second parameter specification code
C2 Terminal 2 frequency setting bias 902
frequency
C3 Terminal 2 frequency setting bias 1902
125 Terminal 2 frequency setting gain 903
frequency
C4 Terminal 2 frequency setting gain 1903
C5 Terminal 4 frequency setting bias 904
frequency
C6 Terminal 4 frequency setting bias 1904
126 Terminal 4 frequency setting gain 905
frequency
C7 Terminal 4 frequency setting gain 1905
C12 Bias frequency (speed) for terminal No.1 917
C13 Bias (speed) for terminal No.1 1917
C14 Gain frequency (speed) for terminal 918
No.1
C15 Gain (speed) for terminal No.1 1918
C16 Terminal 1 bias command (torque/ 919
magnetic flux)
C17 Terminal 1 bias (torque/magnetic flux) 1919
C18 Terminal 1 gain command (torque/ 920
magnetic flux)
C19 Terminal 1 gain (torque/magnetic flux) 1920
C30 Bias frequency (speed) for terminal No.6 926
C31 Bias (speed) for terminal No.6 1926
C32 Gain frequency (speed) for terminal 927
No.6
C33 Gain (speed) for terminal No.6 1927
C34 Bias command (torque) for terminal 928
No.6
C35 Bias (torque) for terminal No.6 1928
C36 Gain command (torque) for terminal 929
No.6
C37 Gain (torque) for terminal No.6 1929
C38 Terminal 4 bias command (torque/ 932
magnetic flux)
C39 Terminal 4 bias (torque/magnetic flux) 1932
C40 Terminal 4 gain command (torque/ 933
magnetic flux)
C41 Terminal 4 gain (torque/magnetic flux) 1933
19 INVERTER COMMUNICATION
402 19.8 Programming
FREQROL-F700PJ/E700/E700EX/D700 series
Second parameter specification codes for parameter numbers Pr.125, Pr.126, C2 to C7 and C22 to C25
Parameter No. Name Second parameter specification code
C2 Terminal 2 frequency setting bias 902
frequency
C3 Terminal 2 frequency setting bias 1902
125 Terminal 2 frequency setting gain 903
frequency
C4 Terminal 2 frequency setting gain 1903 19
C5 Terminal 4 frequency setting bias 904
frequency
C6 Terminal 4 frequency setting bias 1904
126 Terminal 4 frequency setting gain 905
frequency
C7 Terminal 4 frequency setting gain 1905
C22 Frequency setting voltage bias 922
frequency
(Built-in potentiometer)
C23 Frequency setting voltage bias 1922
(Built-in potentiometer)
C24 Frequency setting voltage gain 923
frequency
(Built-in potentiometer)
C25 Frequency setting voltage gain 1923
(Built-in potentiometer)
FREQROL-V500 series
Second parameter specification codes for parameter numbers Pr.902 to 905 and 917 to 920
Parameter No. Name Second parameter specification code
Offset/Gain (H00) Analog (H01) Analog value of
terminal (H02)
902 Speed setting No. 2 bias 902 1902 2902
903 Speed setting No. 2 gain 903 1903 2903
904 Torque command No. 3 bias 904 1904 2904
905 Torque command No. 3 gain 905 1905 2905
917 No.1 terminal bias (speed) 917 1917 2917
918 No.1 terminal gain (speed) 918 1918 2918
919 No.1 terminal bias (torque/magnetic flux) 919 1919 2919
920 No.1 terminal gain (torque/magnetic 920 1920 2920
flux)
Specify inverter parameter number in (s2) ((s3) in IVBWR instruction) as show below.
• In the case of parameter numbers 0 to 999, write the parameter number as is.
• In the case of parameter numbers 1000 to 9999, write parameter number + 10000. (Example: When
parameter number is 1234, specify K11234.)
19 INVERTER COMMUNICATION
19.8 Programming 403
19.9 Related Devices
This section describes the special relay/special register functions used in the inverter communication function.
Available communication channels vary depending on the CPU module and system configuration.
For communication channels, refer to Page 330 System Configuration.
"FX3 Series compatible" devices operate only on the communication channel specified in the compatible SM/
SD for communication settings.
For compatible SM/SD, refer to Page 364 PLC Communication Settings.
Special relay
■FX5 only
R: Read only
Device No. Name Description R/W
CH1 CH2 CH3 CH4
SM8029 Instruction execution Turns ON when execution of instruction is completed, and remains R
completed ON for 1 scan.
SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. R
SM8920 SM8930 SM8940 SM8950 Inverter communicating Remains ON while inverter communication is being executed. R
SM8921 SM8931 SM8941 SM8951 IVBWR instruction error Turns ON when an IVBWR instruction error occurs. R
19 INVERTER COMMUNICATION
404 19.9 Related Devices
Special registers
■FX5 only
R: Read only
Device No. Name Description R/W
CH1 CH2 CH3 CH4
SD8500 SD8510 SD8520 SD8530 Serial communication error Stores the error code when a serial communication error occurs. R
code
SD8502 SD8512 SD8522 SD8532 Serial communication
settings
Stores the setting of the communication parameter. R
19
SD8503 SD8513 SD8523 SD8533 Serial communication Stores the communication type being used. R
operation mode
SD8921 SD8931 SD8941 SD8951 IVBWR instruction error Stores a parameter number in which an IVBWR instruction error has R
parameter number occurred.
SD8981 SD8991 SD9001 SD9011 Response wait time Stores the communication response wait time. R
Precautions
Do not turn ON/OFF by program or engineering tool.
Instruction execution completed is also used as the execution completed flag for other instructions (such as positioning
instructions).
When using instruction execution completed, provide the contact just under the instruction whose execution completion is to
be checked.
19 INVERTER COMMUNICATION
19.9 Related Devices 405
Serial communication error
Turns ON when an error occurs in serial communication. These flags are used to check the serial communication error.
Turns ON when a parity error, overrun error or framing error occurs during communication with inverters or when an inverter
communication error occurs.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SM8500 SM8510 SM8520 SM8530 SM8063 SM8438 Turns ON when an error occurs in serial R
communication.
Devices do not turn OFF even when normal
communication is restored.
After a device above turns ON, the error code is stored in the corresponding device below.
FX5 dedicated FX3 Series Name Description
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error occurs,
code the error code is stored.
Precautions
Do not turn ON or OFF with program or engineering tool.
Serial communication error do not turn OFF even if normal communication is restored. The devices turn OFF when power is
turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
Inverter communicating
These devices remain ON while communicating with inverter by an inverter communication instruction.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SM8920 SM8930 SM8940 SM8950 SM8151 SM8156 Remains ON while communication with an inverter is R
executed by an inverter communication instruction.
Precautions
When [Inverter communicating] is ON, instructions other than the instruction under execution cannot be executed.
Do not turn ON/OFF by program or engineering tool.
19 INVERTER COMMUNICATION
406 19.9 Related Devices
Inverter communication error
If FX3 Series compatible SM/SD area settings have been set, the devices turn ON if an error occurs for an inverter
communication instruction.
R: Read only
FX3 Series compatible Description R/W
CH1 CH2
SM8152 SM8153*1 SM8157 SM8158*1 Turns ON when an inverter communication error occurs. R
Storing an error code is only for the first error occurrence, and it is not updated for the second error occurrence onwards.
Precautions
Do not turn ON/OFF by program or engineering tool.
Inverter communication errors are not cleared even after communication is restored to normal state. Devices are cleared
when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
When an IVBWR instruction error is ON, the parameter number that could not be set is stored in the following corresponding
devices.
FX5 dedicated FX3 Series Name Description
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8921 SD8931 SD8941 SD8951 SD8154 SD8159 IVBWR instruction error Stores the parameter number which was
parameter number not written by IVBWR instruction.
Precautions
Do not turn ON/OFF by program or engineering tool.
IVBWR communication errors are not cleared even after communication is restored to normal state. Devices are cleared
when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
19 INVERTER COMMUNICATION
19.9 Related Devices 407
Serial communication error code
Stores the error code (Page 841 List of error codes for inverter communication) when the inverter communication
instruction error occurs.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 When a serial communication error occurs, the error R
code is stored.
Precautions
Do not change the value with program or engineering tool.
Serial communication error codes are not cleared even after communication is restored to normal state. Devices are cleared
when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
Precautions
Do not change the value with program or engineering tool.
19 INVERTER COMMUNICATION
408 19.9 Related Devices
Serial communication operation mode
Stores the communication function code of the serial communication under execution.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8503 SD8513 SD8523 SD8533 SD8419 SD8439 0: MELSOFT connection or MC protocol R
3: N:N Network Communication
5: Non-Protocol Communication 19
6: Parallel Link Communication
7: Inverter Communication
9: MODBUS RTU Communication
12: Predefined protocol support
Other than above: Not used
Precautions
Do not change the value with program or engineering tool.
These devices store "7" while an inverter communication instruction is being driven or not, as long as the communication
mode has not changed.
Error code of first error that occurred is maintained if errors occur for multiple instructions.
Precautions
Do not change the value with program or engineering tool.
Inverter communication error code is not cleared even if communication is restored to normal state. Devices are cleared when
power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
19 INVERTER COMMUNICATION
19.9 Related Devices 409
IVBWR instruction error parameter number
These devices store the parameter number in which an error has occurred when IVBWR instruction error flag turns ON.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8921 SD8931 SD8941 SD8951 SD8154 SD8159 Stores the parameter number which could not be R
written by IVBWR instruction.
Error code of first error that occurred is maintained if multiple errors occur for IVBWR instruction.
Precautions
Do not change the value with program or engineering tool.
Precautions
If the set value is outside the range or less than 100 ms, response waiting time operates as 100 ms.
Do not change the value with program or engineering tool.
19 INVERTER COMMUNICATION
410 19.9 Related Devices
20 NON-PROTOCOL COMMUNICATION
This chapter describes non-protocol communication.
System
RS-232C: 15 m/RS-485: 1200 m (50 m for connection with other than FX5-485ADP)
CH1
Built-in
RS-485 port
CH2
FX5-232-BD/
FX5-485-BD
CH3
FX5-232ADP/
FX5-485ADP
CH4
FX5-232ADP/
FX5-485ADP
*1 The maximum number of channels varies depending on the CPU module. (Page 412 System Configuration)
20 NON-PROTOCOL COMMUNICATION
20.1 Function Summary 411
20.2 Procedure Before Operation
The flow chart below shows the Non-Protocol Communication setting procedure up until data link:
4. Communication settings*1
For communication settings of communication device, refer to Page 420 Communication Settings.
5. Program creation
For detailed explanation of related devices, operation of control line, and program, refer to Page 423 Programming.
*1 For details on operating procedures of GX Works3, refer to the manual below.
GX Works3 Operating Manual
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
20 NON-PROTOCOL COMMUNICATION
412 20.2 Procedure Before Operation
FX5UJ CPU module
A serial port of up to 2 channels can be connected in the FX5UJ CPU module by using a communication board and
communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
The combinations which can be configured are shown below.
[Configuration example 1] [Configuration example 2]
CH4: Communication adapter-2
CH3: Communication adapter-1 CH3: Communication adapter-1
20
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
20 NON-PROTOCOL COMMUNICATION
20.3 System Configuration 413
FX5U CPU module
A serial port of up to 4 channels can be connected in the FX5U CPU module by using the built-in RS-485 port, communication
board, and communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
CH4: Communication adapter-2
CH3: Communication adapter-1
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
20 NON-PROTOCOL COMMUNICATION
414 20.3 System Configuration
20.4 Specifications
This section describes the communication specifications and performance of non-protocol communication.
Items Specifications
Transmission standard RS-485 and RS-422 standard RS-232C standard
Maximum overall distance When using FX5-485ADP: 1200m or less 15m or less
When using built-in RS-485 port or FX5-485-BD: 50m or
less
Number of Transfer Data 0 to 4096
Protocol type
Control procedure Format 1 (CR and LF are not added)/Format 4 (CR and LF are added)
Communication method Half-duplex, bi-directional communication/full-duplex, bi-directional communication 20
Baud rate 300/600/1200/2400/4800/9600/19200/38400/57600/115200(bps)
Character Start bit 1 bit
format Data length 7 bits/8 bits
Parity bit None, odd or even
Stop bit 1 bit/2 bits
Header Provided or not provided
Terminator Provided or not provided
Control line Provided or not provided
Sum check Provided or not provided
20.5 Wiring
This section explains about the wiring.
Wiring procedure
1. Preparing for wiring
Prepare cables and termination resistors required for wiring. (Page 415 Cable)
2. Turn OFF the PLC power
Before wiring, make sure that the PLC power is OFF.
Cable
Select cables using the procedure described below.
20 NON-PROTOCOL COMMUNICATION
20.4 Specifications 415
■Cable structural drawing (reference)
Pair
Shield
Connecting cables
The table below shows applicable cables and tightening torques.
Item Number of Wire size Tightening torque
wires Solid wire, Stranded wire Wire ferrule with
connected insulation sleeve
per terminal
FX5U CPU module built-in RS-485 port One wire 0.2 to 0.5 (24 to 20 AWG) 0.2 to 0.5 (24 to 20 AWG) 0.22 to 0.25Nm
Two wires 0.2 (24 AWG)
FX5UC CPU module built-in RS-485 port One wire 0.3 to 0.5 (22 to 20 AWG) 0.3 to 0.5 (22 to 20 AWG)
FX5-485-BD
Two wires 0.3 (22 AWG)
FX5-485ADP
Precautions
Do not tighten terminal screws with torque beyond the specified range. Otherwise it may cause equipment failure or
malfunction.
5 mm 9 mm
6 mm 8 mm
2 to 2.5 mm 10.5 to 12 mm 2.6 mm 14 mm
20 NON-PROTOCOL COMMUNICATION
416 20.5 Wiring
<Reference>
Item Manufacturer Model name Crimping tool
FX5U CPU module built-in RS-485 port PHOENIX CONTACT GmbH & Co. KG AI 0.5-6 WH CRIMPFOX 6
CRIMPFOX 6T-F
FX5UC CPU module built-in RS-485 port AI 0.5-8 WH
FX5-485-BD
FX5-485ADP
• Tool
For tightening the terminal, use a commercially available small screwdriver with straight tip that is not
widened toward the end as shown below.
■Precautions
With straight tip
If the diameter of the screwdriver tip is too small, the required tightening torque cannot be achieved. To
achieve the appropriate tightening torque shown in the previous page, use the following screwdriver or its
equivalent (grip diameter: approximately 25mm).
0.4 mm 2.5 mm
<Reference>
20
Manufacturer Model name
PHOENIX CONTACT GmbH & Co. KG SZS 0.42.5
■FX5U CPU module built-in RS-485 port ■FX5UC CPU module built-in RS-485 port
Termination
resistor selector
switch
Termination
resistor selector
switch
■FX5-485-BD ■FX5-485ADP
Termination
resistor Termination
selector switch resistor selector
switch
20 NON-PROTOCOL COMMUNICATION
20.5 Wiring 417
Connection diagram
■Wiring
Representative wiring examples are shown in this section. When pin numbers in the counterpart equipment are different, wire
the pins as shown below.
• When connected equipment is Data Terminal Equipment
*1 When the control line is not used, wiring is not required for this signal.
For the interlink mode, the control line will be used, so wiring for this signal is required.
• When connected equipment is Data Communication Equipment
20 NON-PROTOCOL COMMUNICATION
418 20.5 Wiring
RS-485 communication equipment
One-pair wiring and two-pair wiring (for RS-422) are applicable for RS-485 communication. Wire according to the counterpart
equipment.
The wiring that can be used is limited by the control line setting in the communication settings (Page 420 Communication
Settings).
: Supported, : Not supported
Control line One-pair wiring Two-pair wiring
Bidirectional half duplex
Bidirectional full duplex
LINK
SG SG
SG
Precautions
When the control line is set to [Bidirectional Full Duplex], the built-in RS-485 port, FX5-485-BD and FX5-485ADP become a
full-duplex interface, and echo will occur.
*2
SDB SDB SDB *2
(TXD-) (TXD-) (TXD-)
*2
RDB RDB RDB *2
(RXD-) (RXD-) (RXD-)
Termination Termination
resistor LINK resistor
SG SG
330 Ω × 2 SG 330 Ω × 2
20 NON-PROTOCOL COMMUNICATION
20.5 Wiring 419
Grounding
Grounding should be performed as stated below.
• Perform Class-D grounding. (Grounding resistance: 100 or less)
• Independent grounding should be performed for best results.
If the PLC cannot be grounded independently, perform the "Shared grounding" shown below.
For details, refer to User's Manual (Hardware) of the CPU module used.
Window
The following screen will be displayed if [Non-protocol Communication] is set for the communication protocol type.
■Basic Settings
■Fixed Setting
20 NON-PROTOCOL COMMUNICATION
420 20.6 Communication Settings
■SM/SD Setting
■Basic Settings
Window
Each setting screen is the same as for the built-in RS-485 port (CH1).
20 NON-PROTOCOL COMMUNICATION
20.6 Communication Settings 421
Parameter setting details
Set the following items for the serial ports that use non-protocol communication.
Items Items Setting value Reference
section
Basic Settings Extended Board*1 When using this function, select [FX5-232-BD] or [FX5-485-BD].
Protocol type When using this function, select [Non-protocol Communication].
Advanced Data Length 7bit/8bit
Settings
Parity Bit None/Odd/Even
Stop Bit 1bit/2bit
Baud Rate 300bps/600bps/1200bps/2400bps/4800bps/9600bps/19200bps/38400bps/
57600bps/115200bps
Header Added/Not Added Page 424
*2
Header Setting Value 00000000 to FFFFFFFF
You can enter a two-digit four headers.
Terminator Added/Not Added Page 425
Terminator Setting 00000000 to FFFFFFFF
Value*3 You can enter a two-digit four terminators.
Control Mode (RS-232C) No Control Line/ Control Line Normal Mode/ Control Line Interlink Mode/ Page 436
Control Line Modem Mode
Control Mode (RS-485) Full Duplex Bi-directional Communication/Half Duplex Bi-directional Page 434
Communication Page 434
Sum Check Code*3 Added/Not Added Page 435
Control Procedure Format 1 (CR and LF are not added)/Format 4 (CR and LF are added) Page 425
Fixed Setting 8 bit Process Mode 8 bit Mode/16bit Mode Page 427
Time-out Period 1 to 32767 (ms) Page 432
If the set value is outside the range, it operates as 10ms.
SM/SD Setting FX3 Series SM/SD for Compatible Disable/CH1/CH2 Page 422
Compatibility
20 NON-PROTOCOL COMMUNICATION
422 20.6 Communication Settings
20.7 Programming
This section explains how to create programs for non-protocol communication using RS2 instruction and how such programs
operate.
For details on related devices, refer to Page 442 Related Devices.
For communication settings, refer to Page 420 Communication Settings.
s d
n1
n2
n3
Setting data
■Content, range, data types
Operand Description Range Data type Data type (label)
(s) Head device storing send data 16-bit signed binary / ANY16
character string
(n1) Number of send data 0 to 4096 16-bit unsigned binary ANY16_U
(d) Head device storing receive data 16-bit signed binary / ANY16
character string
(n2) Amount of received data 0 to 4096 16-bit unsigned binary ANY16_U
(n3) Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
■Applicable devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $
B, SB, S SD, SW, R
(s) *1
(n1)
(d) *1
(n2)
(n3)
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 423
Processing details
This instruction sends and receives data via non-protocol communication by way of built-in RS-485 port, communication
board or communication adapter. This instruction specifies the head device storing the sent data from the CPU module,
amount of data, head device storing the received data and the maximum allowable amount of received data.
Precautions
• The RS2 instruction cannot be used in the same serial port as that of the inverter communication instruction and predefined
protocol support instruction.
• To change the header, terminator, time-out time or 8-bit processing mode, do so before the RS2 instruction is driven (while
off). The change is enabled when the RS2 instruction is drive. While the RS2 instruction is being driven, do not change the
header, terminator, time-out time or 8-bit processing mode.
Applicable frames
Message frames used in communication can be selected by setting the communication parameter.
The table below shows message frames applicable to the RS2 instruction.
1 Data
2 Data CR+LF
3 Data Terminator
7 Header Data
■Header
When headers are set in the communication settings (Page 420 Communication Settings), the set values are stored in
SD8623 and SD8624 for CH1, SD8633 and SD8634 for CH2, SD8643 and SD8644 for CH3 and SD8653 and SD8654 for
CH4.
Up to four headers can be set.
Header FX5 dedicated
First Second Third Fourth
CH1 SD8623 (Low-order byte) SD8623 (High-order byte) SD8624 (Low-order byte) SD8624 (High-order byte)
CH2 SD8633 (Low-order byte) SD8633 (High-order byte) SD8634 (Low-order byte) SD8634 (High-order byte)
CH3 SD8643 (Low-order byte) SD8643 (High-order byte) SD8644 (Low-order byte) SD8644 (High-order byte)
CH4 SD8653 (Low-order byte) SD8653 (High-order byte) SD8654 (Low-order byte) SD8654 (High-order byte)
When data is sent, the stored data in the devices above is added at the head of the specified send data.
When data is received, receiving of the data begins when the stored data in the devices above is received continuously.
If the first header value is 00H, the header settings are not configured. The area before 00H (in 1-byte units) is used to set the
headers.
20 NON-PROTOCOL COMMUNICATION
424 20.7 Programming
■Terminator
When terminators are set in the communication settings (Page 420 Communication Settings), the set values are stored in
SD8625 and SD8626 for CH1, SD8635 and SD8636 for CH2, SD8645 and SD8646 for CH3 and SD8655 and SD8656 for
CH4.
Up to 4 terminators can be set.
Terminator FX5 dedicated
First Second Third Fourth
CH1 SD8625 (Low-order byte) SD8625 (High-order byte) SD8626 (Low-order byte) SD8626 (High-order byte)
CH2 SD8635 (Low-order byte) SD8635 (High-order byte) SD8636 (Low-order byte) SD8636 (High-order byte)
CH3 SD8645 (Low-order byte) SD8645 (High-order byte) SD8646 (Low-order byte) SD8646 (High-order byte)
CH4 SD8655 (Low-order byte) SD8655 (High-order byte) SD8656 (Low-order byte) SD8656 (High-order byte)
When data is sent, the stored data in the devices above is added at the end the specified send data. 20
When data is received, receiving is completed*1 when the stored data in the devices above is received.
If the first terminator value is 00H, the terminator settings are not configured. The area before "00H" (in 1-byte units) is used to
set the terminators.
*1 Receiving is completed also when the amount of received data specified by the RS2 instruction is received or when the receiving of data
is suspended and the specified time-out occurs.
■Sum check
When the sum check code is selected as [Added] in the communication settings (Page 420 Communication Settings), the
sum check is executed for the send and receive data.
When [Added] is selected, always configure the terminators.
When data is sent, the sum of "data" + "terminator" is calculated, and added to the send data.
When data is received, it is checked whether or not the received sum is equivalent to the sum calculated by the PLC.
■CR+LF
When the control procedure is selected as "CR + LF provided" in the communication settings (Page 420 Communication
Settings), the character code of "CR + LF" is added at the end of the send data.
When data is received, receiving is completed when "CR + LF" is received continuously.
However, receiving is also completed when the specified amount of received data is received or when data receiving is
suspended and the specified time-out occurs.
Make sure that "CR" is not included in the message.
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 425
Function and operation
RS2 instruction specifies head device of the send data, no. of data, head device for storing the received data, the maximum
no. of data that can be received.
Create a program as shown below.
Ex.
Serial communication settings (CH1)
Drive
contact
M0
RS2 D100 D0 D200 K30 K1
• When the drive contact (M0) is set to ON, the PLC waits for sending and receiving. *1
• When the sending command (M1) is set to ON, write the send data from D100 onwards
(for no. of devices specified). Issue the sending command as a pulse.
In the example above, write send character string "TEST SEND1" in D100 onwards,
and store number of characters of the send character string (10) in D0.
• After writing the send data, set the sending request (SM8561). The data is sent.
Sending request
SET SM8561
RST SM8562
• After moving the received data, reset the receiving completed flag (SM8562).
While SM8562 is ON, the PLC cannot receive the next set of receive data. *3
*1 For handling of send and receive data, refer to Page 427 Send/receive data and amount of data.
*2 For the operation when sending data, refer to Page 431 Operation during data send.
*3 For the operation when receiving data, refer to Page 431 Operation during data receive.
20 NON-PROTOCOL COMMUNICATION
426 20.7 Programming
Send/receive data and amount of data
RS2 instruction can handle sent and received data in two modes, 16-bit mode and 8-bit mode. The processing mode is set in
the communication settings (Page 420 Communication Settings), and when the RS2 instruction is driven, the mode is
switched to the set mode.
The handling of data is as follows.
Ex.
Serial communication settings (CH1)
■16-bit mode
RUN 16-bit data
monitor
SM400
Upper 8 bits Lower 8 bits 20
16-bit data is divided into upper
RS2 D100 K4 D200 K20 K1
8 bits and lower 8 bits when it is
sent or received.
Serial communication setting
• Header : [Added] [DLE + STX (SD8623: 0210H, SD8624: 0000H)]
• Terminator : [Added] [DLE + ETX (SD8625: 0310H, SD8626: 0000H)]
• Sum check code : [Added]
• Control procedure : [CR, LF added]
• Control mode : [None (RS-232C)]
• Send data and amount of remaining send data
Number of bytes
to be sent
specified by "n1"
Sending
request
SM8561
Set in the Automatically reset when
program. 4 sending is completed.
3
2
Amount of 1
remaining 0
send data
SD8560
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 427
• Receive data and amount of data received
Header Data area Terminator Sum data The order is different from
the data area.
DLE STX 35H 36H 37H 38H DLE ETX 45H 44H
Low High Low High Low High Low High High Low
order of order of order of order of order of order of order of order of order of order of CR LF
SD8623 SD8623 D200 D200 D201 D201 D202 D202 sum sum
Receive data
Within the upper limit of number of
devices (bytes) to be received, that is
specified by "n2".
Receiving sum
00H 35H 6BH A2H DAH EAH EDH 00H
(calculation result)
SD8564
Precautions
When odd data is received, the higher-order 8 bits of data of the last device holds the data received previously.
20 NON-PROTOCOL COMMUNICATION
428 20.7 Programming
■8-bit mode
RUN
monitor
SM400 16-bit data
RS2 D100 K4 D200 K20 K1
Ignored Lower 8 bits
Number of bytes to be
sent specified by "n1"
Sending
request
SM8561
Set it in the Automatically reset when
program. 4 sending is completed.
3
Amount of 2
1
remaining send
0
data
SD8560
Sending
sum 00H 31H 63H 96H CAH DAH DDH
SD8565
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 429
• Receive data and amount of data received
Header Data area Terminator Sum data The order is different from
the data area.
DLE STX 35H 36H 37H 38H DLE ETX 45H 44H
Low High Low Low Low Low Low Low High Low
order of order of order of order of order of order of order of order of order of order of CR LF
SD8623 SD8623 D200 D201 D202 D203 D204 D205 sum sum
Receive data
6
5
4
3
2
Amount of data 1
already received The calculation result is
0
SD8561 converted into ASCII
codes, and compared.
Increments each time
data is received.
Receiving sum 00H 35H 6BH A2H DAH EAH EDH 00H
(calculation result)
SD8564
Precautions
The higher-order 8 bits of data of the receive data storage destination device holds the data previously received.
20 NON-PROTOCOL COMMUNICATION
430 20.7 Programming
Operation during data send
When the sending request flag is set to ON while RS2 instruction is driven, the PLC sends the data stored in (s) to ((s) + (n1)
- 1).
Name FX5 dedicated
CH1 CH2 CH3 CH4
Send request flag SM8561 SM8571 SM8581 SM8591
When sending of the data is completed, the sending request flag is automatically set to OFF.
When the PLC receives data, it stores the received data to (d) to ((d) + (n2) - 1).
While the receiving completed flag (M8123) is ON, the PLC cannot receive new data.
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 431
■Time at which receiving is completed
The time at which receiving is completed falls into the following 3 types. Receiving is completed when one of the following
conditions is satisfied.
• When the PLC receives the amount of receive data specified by the RS2 instruction
• The terminators, sum check and CR+LF configured in the communication settings (Page 420 Communication Settings)
are received correctly.
• • • • • • Data CR+LF
• • • • • • Data Terminator
The time-out flag does not automatically turn OFF. Reset using program. When the receiving completed flag is set to OFF, the
time-out flag is also set to OFF.
Using this function, the PLC can receive data from equipment where the amount of send data varies without the terminators.
20 NON-PROTOCOL COMMUNICATION
432 20.7 Programming
■When the control line is set to interlink mode
When the interlink mode is set in the communication parameters, the following sequence is adopted from the start of receiving
to completion:
1. When the amount of data already received becomes "preset amount of received data -30", the control line ER (DTR)
turns OFF. When the control line ER (DTR) turns OFF, the external equipment should suspend data sending. After the
control line ER (DTR) turns OFF, the PLC can receive up to 30 characters (bytes).
2. When the external equipment suspends data sending, the PLC sets the time-out check flag and receiving complete flag
to ON after the preset time-out time setting. Move the received data in a sequence program, and then set the receiving
complete flag and time-out check flag to OFF.
3. When the receiving complete flag is set to OFF, the control line ER (DTR) turns ON. When the control line ER (DTR)
turns ON, restart data sending from the external equipment.
20
4. Repeat steps 1) to 3) until data receiving is completed.
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 433
Full-duplex, bi-directional communication operation
■Send completed start send operation
When sending of the data is completed, the sending request flag is automatically set to OFF.
When RS2 instruction is executed again after the sending request flag is set to ON, the PLC starts to send.
20 NON-PROTOCOL COMMUNICATION
434 20.7 Programming
Sum check code
The sum check code is a two-digit ASCII code converted from the least significant byte (8-bit) of the sum obtained by adding
the corresponding data as hexadecimal numbers.
One can select whether to include the sum check in the message or not, using the communication settings (Page 420
Communication Settings).
• When "sum check code added" is selected, the sum check code is added in the message during sending. During receiving,
the sum check code is compared with the value calculated from the received data to check the received data.
• When "sum check not added" is selected, the sum check code is not added, so the received data is not checked either. A
calculation example of the sum check code is shown below.
Ex.
Serial communication settings (CH1) 20
• Header: [Provided] [DLE+STX (SD8623: 0210H, SD8624: 0000H)]
• Terminator: [Provided] [DLE+ETX (SD8625: 0310H, SD8626: 0000H)]
• Sum Check Code: [Added]
• Control Procedure: [CR, LF Added]
• Control Mode: [No Control Line] (RS-232C)
DLE STX 31H 32H 33H 34H DLE ETX 44H 44H
Low High Low High Low High Low High High Low
order of order of order of order of order of order of order of order of order of order of CR LF
SD8623 SD8623 D100 D100 D101 D101 SD8625 SD8625 sum sum
Send data
DLE STX 35H 36H 37H 38H DLE ETX 45H 44H
Low High Low High Low High Low High High order Low order
order of order of order of order of order of order of order of order of of sum of sum CR LF
SD8623 SD8623 D200 D200 D201 D201 D202 D202 SD8563 SD8563
Receive data
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 435
Operation of control line (RS-232C)
RS-232C communication is full-duplex, bi-directional communication. When using half-duplex, bi-directional communication,
pay attention not to turn ON the sending request flag while receiving. If set to ON, the PLC starts to send and as a result, the
counterpart equipment may not be able to receive data, and the sent and received data may be destroyed.
In full-duplex, bi-directional communication, the sending wait flag does not turn ON.
However, in the case that control is standard mode or interlink mode, the sending wait flag remains ON while DR (DSR) is
OFF and the PLC is waiting to send.
RD(RXD) Message
Message 4
Receive data 2
Receiving OFF ON ON
complete flag
Reset the flag from the program.
Start of waiting status This flag must be turned off to receive the next data.
for receiving
Normal mode
Use this mode for only sending or only receiving.
■Send only
RS2 instruction
OFF ON The message 1 is interrupted
execution
because DSR is turned off.
DR(DSR) OFF ON ON ON
(Other device → FX)
ER(DTR)
(FX → other device) OFF ON ON
20 NON-PROTOCOL COMMUNICATION
436 20.7 Programming
■Receive only
The DR (DSR) signal is not used.
RS2 instruction
OFF ON
execution
RD(RXD)
Message Message Message
Receive data 1 1 2
Time out
judgement
time
Modem mode
RS2 instruction
execution OFF ON
Receiving
complete flag OFF ON ON
DR(DSR)
(Other device → FX) OFF ON ON
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 437
Interlink mode
RS2 instruction
OFF ON
execution
DR(DSR) OFF *1 ON *1 *1
(Other device → FX)
Sending wait flag OFF ON
Up to 30 characters can be received.*2
RD(RXD) Message Message
Message 3
Receive data 1 3
Time out
judge time
ON
Time out judge flag
Turned off during
receiving when "No. of
received bytes - 30" is
received even if receiving
is not completed.
Receiving
complete flag OFF ON ON ON
ER(DTR) ON OFF ON ON ON
(FX → other device)
Turned on when ready Turned off usually at The sequence program resets the flag.
to be transmitted at
RS2 instruction
completion of receiving. This flag must be turned off to receive the next data.
execution.
*1 On the external equipment side, set the DR (DSR) signal to ON when the external equipment is ready to receive.
The FX5 PLC sends the send data when both the DR (DSR) signal and the sending request turn ON.
*2 In the interlink mode, the PLC sets ER (DTR) to OFF when the amount of data already received becomes "Number of bytes to be
received -30", and asks the external equipment to stop sending. After this send request, the PLC can only receive up to 30 characters
and no more, so the external equipment temporarily stops sending, and then sends the remaining data after the ER (DTR) signal turns
ON again.
When sending is stopped, the receiving complete flag turns ON after the time-out check time and receiving completes.
When sending is not stopped, the PLC finishes receiving after it has received the final send data or 30 characters. Accordingly, make
sure that the amount of receive data is "30 + ".
20 NON-PROTOCOL COMMUNICATION
438 20.7 Programming
Precautions for program creation
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 439
Example of printing using RS2 instruction
In this example, the set data is sent to a printer connected to an expansion board.
Contents of operation
The send data is sent to the printer by the input (X) of the FX5U CPU module.
Item CH2
RS2 instruction execution X0
Sending of data X1
Send data D10 to D15
Send request flag SM8571
Parameter setting
Set the following parameter.
• Expansion board: FX5-232-BD
• Protocol type: Non-protocol communication
• Data length: 8bit
• Parity bit: Even
• Stop bit: 2bit
• Baud Rate: 2400bps
• Control Mode (RS-232C): Control Line Normal Mode
Navigation Window Parameter FX5UCPU Module Parameter Expansion Board
20 NON-PROTOCOL COMMUNICATION
440 20.7 Programming
System configuration
The following shows an example of a system configuration in which a printer with an RS-232C interface is connected to the
expansion board (CH2) connected to the FX5U CPU module, and the data sent from the FX5U CPU module is printed.
Sending
Use a communication cable suitable to the pin arrangement of the connector of the printer used.
■Program example 20
X0
RS2 D10 K11 D50 K0 K2 RS2 instruction is driven.
X1
PLS M0
M0
MOV H6574 D10
END
20 NON-PROTOCOL COMMUNICATION
20.7 Programming 441
20.8 Caution on Write During RUN, When RS2
Instruction Is Driven
When the RS2 instruction is eliminated by writing during RUN, non-protocol communication stops immediately.
Available communication channels vary depending on the CPU module and system configuration.
For communication channels, refer to Page 412 System Configuration.
"FX3 Series compatible" devices operate only on the communication channel specified in the compatible SM/
SD for communication settings.
For compatible SM/SD, refer to Page 420 Communication Settings.
Special relays
■FX5 only
R: Read only, R/W: Read/write
Device No. Name Description R/W
CH1 CH2 CH3 CH4
SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. R
SM8560 SM8570 SM8580 SM8590 Sending wait flag This device remains ON while the PLC is waiting to send. R
SM8561 SM8571 SM8581 SM8591 Send request flag When this device is set to ON, the PLC starts to send. R/W
SM8562 SM8572 SM8582 SM8592 Receiving completed flag This device turns ON when receiving is completed. R/W
SM8563 SM8573 SM8583 SM8593 Carrier detection flag This device turns ON in synchronization with the CD (DCD) signal. R
SM8564 SM8574 SM8584 SM8594 DSR detection flag This device turns ON in synchronization with the DR (DSR) signal. R
SM8565 SM8575 SM8585 SM8595 Time-out flag This device turns ON when data receiving is suspended and the next R
set of receive data is not given within the time set by the time-out
time setting device.
20 NON-PROTOCOL COMMUNICATION
442 20.8 Caution on Write During RUN, When RS2 Instruction Is Driven
Special registers
■FX5 only
R: Read only, R/W: Read/write
Device No. Name Description R/W
CH1 CH2 CH3 CH4
SD8500 SD8510 SD8520 SD8530 Serial communication error When a serial communication error occurs, the error code is stored. R
code
SD8502 SD8512 SD8522 SD8532 Serial communication Stores the setting of the communication parameter. R
settings
SD8503 SD8513 SD8523 SD8533 Serial communication This device stores the current communication mode being used. R
operation mode
SD8560 SD8570 SD8580 SD8590 Amount of remaining send These devices store the amount of remaining send data. R 20
data
SD8561 SD8571 SD8581 SD8591 Amount of data already This device stores the amount of received data. R
received
SD8563 SD8573 SD8583 SD8593 Receive data sum These devices store the received sum check value. R
SD8564 SD8574 SD8584 SD8594 Receiving result sum These devices store the sum check value calculated using the R
received data.
SD8565 SD8575 SD8585 SD8595 Sending sum These devices store the sum check value added to the send data. R
SD8621 SD8631 SD8641 SD8651 Time-out time These devices store the time-out time set in the communication R/W
settings.
SD8622 SD8632 SD8642 SD8652 8-bit processing mode These devices store the send/receive data processing mode set in R/W
the communication settings.
SD8623 SD8633 SD8643 SD8653 Header These devices store the contents of headers 1 to 4 set in the R/W
SD8624 SD8634 SD8644 SD8654 communication settings.
SD8625 SD8635 SD8645 SD8655 Terminator These devices store the contents of terminators 1 to 4 set in the R/W
SD8626 SD8636 SD8646 SD8656 communication settings.
20 NON-PROTOCOL COMMUNICATION
20.9 Related Devices 443
Details of related devices
After a device above turns ON, the error code is stored in the corresponding device below.
FX5 dedicated FX3 Series Name Description
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error occurs,
code the error code is stored.
Precautions
Do not turn ON or OFF with program or engineering tool.
Serial communication error does not turn OFF even if the communication is restored to normal state. The devices turn OFF
when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
• For RS-232C
While the control line is set to the standard or interlink mode in the communication parameter, when the control line DR (DSR)
turns OFF while sending data, the sending wait flag turns ON.
• For RS-485
The sending wait flag does not turn ON.
Precautions
Do not turn ON or OFF with program or engineering tool.
Precautions
When setting these devices to ON, set the drive condition with a pulse.
20 NON-PROTOCOL COMMUNICATION
444 20.9 Related Devices
Receiving completed flag
Receiving completed flag turns ON when receiving is completed. When these devices turn ON, data cannot be received.
R/W: Read/write
FX5 dedicated Description R/W
CH1 CH2 CH3 CH4
SM8562 SM8572 SM8582 SM8592 These devices turn ON when serial communication R/W
data receiving is complete.
Precautions
When the RS2 instruction is driven while the amount of receive data is set to "0", the PLC does not wait to receive. To make
the PLC wait to receive, it is necessary to set the amount of receive data to "1" or more and set the receiving completed flag
ONOFF.
While the carrier detection flag is ON, data can be sent and received.
Precautions
Do not turn ON or OFF with program or engineering tool.
Precautions
Do not turn ON or OFF with program or engineering tool.
20 NON-PROTOCOL COMMUNICATION
20.9 Related Devices 445
Time-out flag
This turns ON when data receiving is suspended, and the next set of receive data is not received within the time set by the
time-out time setting device. The receiving completed flag also turns ON.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SM8565 SM8575 SM8585 SM8595 SM8409 SM8429 This turns ON when receiving is not restarted within the R
specified time-out time setting when data receiving is
interrupted.
The time-out time corresponding to the above devices is stored in the following devices.
FX5 dedicated FX3 Series Name Description
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8621 SD8631 SD8641 SD8651 Time-out time 1 to 32767 (ms)
10 ms when set to a value outside the
range.
The time-out flag turns OFF when the PLC waits to receive.
Using this function, the PLC can receive data from equipment where the amount of send data varies, without the terminators.
Receive data is suspended.
Receiving
Data
Set to OFF in program.
Time-out time
Timeout ON
Receiving completed ON
The time-out check is judged in END processing based on a 1 ms free counter set when the data receiving starts and the
time-out flag is turned ON. A lag of maximum 1 scan time occurs due to processing in the END processing.
Precautions
Do not turn ON or OFF with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Serial communication error code is not cleared even after communication is restored to normal state. They are cleared by
turning the PLC power OFFON, STOPRUN, reset or by SM50 (Error Detection Reset Completion) is turned ON.
20 NON-PROTOCOL COMMUNICATION
446 20.9 Related Devices
Serial communication settings
The communication parameters set in the communication settings are stored when the power is turned OFFON,
STOPRUN or the reset. (Page 420 Communication Settings)
R: Read only
FX5 dedicated Description R/W
CH1 CH2 CH3 CH4
SD8502 SD8512 SD8522 SD8532 Stores the setting of the communication parameter. R
Precautions
Do not change the value with program or engineering tool.
20 NON-PROTOCOL COMMUNICATION
20.9 Related Devices 447
Serial communication operation mode
Stores the communication function code used in the serial communication under execution.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8503 SD8513 SD8523 SD8533 SD8419 SD8439 0: MELSOFT connection or MC protocol R
3: N:N Network Communication
5: Non-Protocol Communication
6: Parallel Link Communication
7: Inverter Communication
9: MODBUS RTU Communication
12: Predefined protocol support
Other than above: Not used
Precautions
Do not change the value with program or engineering tool.
These devices store "5" while RS2 instruction is being driven or not, as long as the communication mode has not changed.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
20 NON-PROTOCOL COMMUNICATION
448 20.9 Related Devices
Communication parameter display
The communication parameter content set in the communication settings (Page 420 Communication Settings) is stored
when the power is turned OFF ON or reset. The stored values are the same as the serial communication property values.
(Page 447 Serial communication settings)
R: Read only
FX3 Series compatible Description R/W
CH1 CH2
SD8405 SD8425 Stores the setting of the communication parameter. R
Precautions
Do not change the value with program or engineering tool. 20
Receive data sum
These devices store the received sum check value. When the sum check code is set to [Added] in the communication settings
(Page 420 Communication Settings), the sum check is executed for the receive data. These devices store the sum added
to the received data sent from the counterpart equipment.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8563 SD8573 SD8583 SD8593 SD8414 SD8434 These devices store the received sum check value. R
Precautions
Do not change the value with program or engineering tool.
When the sum check code is set to [Added] in the communication settings, always select [Added] for the terminator.
Precautions
Do not change the value with program or engineering tool.
When the sum check code is set to [Added] in the communication settings, always select [Added] for the terminator.
20 NON-PROTOCOL COMMUNICATION
20.9 Related Devices 449
Sending sum
When the sum check code is set to [Added] in the communication settings (Page 420 Communication Settings), the sum
check is executed for the send data. These devices store the sum calculated by the CPU module from the send data.
R: Read only
FX5 dedicated FX3 Series Description R/W
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8565 SD8575 SD8585 SD8595 SD8416 SD8436 These devices store the sum check value added to the R
send data.
Precautions
Do not change the value with program or engineering tool.
When the sum check code is set to [Added] in the communication settings, always select [Added] for the terminator.
Time-out time
These devices set the evaluation time for error when receiving of data is interrupted. (Unit: ms)
R/W: Read/write
FX5 dedicated Description R/W
CH1 CH2 CH3 CH4
SD8621 SD8631 SD8641 SD8651 1 to 32767 (ms) R/W
10 ms when set to a value outside the range.
Precautions
Do not change the time-out time setting while the RS2 instruction is being driven. To change the value, do so before the RS2
instruction is driven (while off). The change is enabled when the RS2 instruction is drive.
Precautions
Do not change the 8-bit processing mode while the RS2 instruction is being driven. To change the value, do so before the RS2
instruction is driven (while off). The change is enabled when the RS2 instruction is drive.
Stores the setting value set in the communication settings when the power is turned OFF ON, STOP RUN, or reset.
20 NON-PROTOCOL COMMUNICATION
450 20.9 Related Devices
Header
These devices store the contents of headers 1 to 4 set in the communication settings (Page 420 Communication
Settings). When the headers are set to [Added] in the communication settings, the headers are added to the send and receive
data. Up to four headers can be added in each channel.
R/W: Read/write
Header FX5 dedicated R/W
First Second Third Fourth
CH1 SD8623 (Low-order byte) SD8623 (High-order byte) SD8624 (Low-order byte) SD8624 (High-order byte) R/W
CH2 SD8633 (Low-order byte) SD8633 (High-order byte) SD8634 (Low-order byte) SD8634 (High-order byte)
CH3 SD8643 (Low-order byte) SD8643 (High-order byte) SD8644 (Low-order byte) SD8644 (High-order byte)
CH4 SD8653 (Low-order byte) SD8653 (High-order byte) SD8654 (Low-order byte) SD8654 (High-order byte)
20
When data is sent, the data set in the headers is added at the head of the specified send data.
When data is received, data receiving begins when the data set in the headers is received.
Header
1 2 3 4 Data
Precautions
Even if the headers are set to [Added] in the communication settings, if the first header value is "00H", the parameter will be
[Not Added] state. The area before "00H" (in 1-byte units) is used to set the headers.
Do not change the headers while the RS2 instruction is being driven. To change the value, do so before the RS2 instruction is
driven (while off). The change is enabled when the RS2 instruction is drive.
Stores the setting value set in the communication settings when the power is turned OFF ON, STOP RUN, or reset.
Terminator
These devices store the contents of terminators 1 to 4 set in the communication settings (Page 420 Communication
Settings). When the terminators are set to [Added] in the communication settings, the terminators are added to the send and
receive data. Up to four terminators can be added in each channel.
R/W: Read/write
Terminator FX5 dedicated R/W
First Second Third Fourth
CH1 SD8625 (Low-order byte) SD8625 (High-order byte) SD8626 (Low-order byte) SD8626 (High-order byte) R/W
CH2 SD8635 (Low-order byte) SD8635 (High-order byte) SD8636 (Low-order byte) SD8636 (High-order byte)
CH3 SD8645 (Low-order byte) SD8645 (High-order byte) SD8646 (Low-order byte) SD8646 (High-order byte)
CH4 SD8655 (Low-order byte) SD8655 (High-order byte) SD8656 (Low-order byte) SD8656 (High-order byte)
When data is sent, the data set in the terminators is added at the end of the specified send data, and data send.
When data is received, receiving is completed when the data set in the terminators is received.
Terminator
Data 1 2 3 4
Precautions
Even if the terminators are set to [Added] in the communication settings, if the first terminator value is "00H", the parameter
will be [Not Added] state. The area before "00H" (in 1-byte units) is used to set the terminators.
Do not change the terminators while the RS2 instruction is being driven. To change the value, do so before the RS2
instruction is driven (while off). The change is enabled when the RS2 instruction is drive.
Stores the setting value set in the communication settings when the power is turned OFF ON, STOP RUN, or reset.
20 NON-PROTOCOL COMMUNICATION
20.9 Related Devices 451
21 PREDEFINED PROTOCOL SUPPORT
FUNCTION
This chapter describes predefined protocol support function (serial communication protocol support function).
For details on the predefined protocol support function (built-in Ethernet protocol support), refer to the following.
Page 100 PREDEFINED PROTOCOL SUPPORT FUNCTION
Counterpart
Engineering tool CPU module
device
Serial
Set the necessary protocol, and write in protocol setting data to the CPU module.
Protocol Communication Send
Manufacturer Model Protocol Name Packet Name Packet Setting
No. Type Receive
1 MITSUBISHI ELECTRIC FREQROL Series H7B:RD Operation Mode Send&Receive
H7B:RD Operation Mode Variable Set
(1) NOR:RD Data(4 Digits Data) Variable Set
(2) ERR:NAK Response Variable Set
2 MITSUBISHI ELECTRIC FREQROL Series HFB:WR Operation Mode Send&Receive
HFB:WR Operation Mode Variable Set
(1) ACK:ACK Response Variable Set
(2) ERR:NAK Response Variable Set
3 MITSUBISHI ELECTRIC FREQROL Series H6F:RD Out Frequency/Speed Send&Receive
3. Wiring
For selection of cables and connection equipment, and wiring example, refer to non-protocol communication (Page 415
Wiring).
4. Communication settings
For communication settings of communication device, refer to Page 457 Communication Settings.
21
5. Protocol settings
For each protocol settings, refer to Page 459 Protocol Setting, Page 465 Packet Setting.
6. Program creation
For detailed explanation of related devices, and basic program, refer to Page 481 Programming.
In the predefined protocol support function, only two channels are available to use for one CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Precautions
Total number of communication boards and communication adapters that can be connected is two.
21
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
Communication specifications
Items Specifications
Transmission standard RS-485 and RS-422 standard RS-232C standard
Maximum overall distance When using FX5-485ADP: 1200m or less 15m or less
When using built-in RS-485 port or FX5-485-BD: 50m or
less
Protocol type Predefined protocol support
Control procedure
Communication method Half-duplex, bi-directional communication
Baud rate 9600/19200/38400/57600/115200(bps)
Character Start bit 1 bit
format
Data length 7 bits/8 bits
Parity bit None, odd or even
Stop bit 1 bit/2 bits
Header Can be set from packet setting.
Terminator Can be set from packet setting.
Control line
Sum check Can be set from packet setting.
For the operation of each communication type, refer to Page 877 Operation image of each communication type.
Packet
A send packet to the counterpart devices and a receive packet from the counterpart devices at the time of process execution 21
are registered in a protocol.
For details on packet elements, refer to Page 465 Packet Setting.
Ex.
Example of a packet configuration
Data area
Number of byte
Header Station No. Command Read data Check code Terminator
to be read
Window
The following screen will be displayed if [Predefined Protocol Support Function] is set for the communication protocol type.
■Basic Settings
Window
The following screen will be displayed if [FX5-232-BD] or [FX5-485-BD] is set for the extended board and [Predefined Protocol
Support Function] is set for the communication protocol type.
■Basic Settings
Window
The setting screen is the same as for the built-in RS-485 port (CH1).
Window
21
1. Adding protocols
Select or create a protocol from libraries. (Page 460 Adding protocols)
2. Configuring detailed setting of protocols
Set the information and operation of protocols. (Page 461 Configuring detailed setting of protocols)
3. Setting packets
Set the packets of protocols. (Page 465 Packet Setting)
Adding protocols
Add or create a protocol from the predefined protocol library or user protocol library. Add a protocol on the screen displayed
by the following operation.
Protocol setting screen Edit Add Protocol
Window
Window
21
*1 These items can be set when the project is changed to an editable project on the protocol setting screen.
*2 When 0 is set, infinite wait is set.
Send/receive parameters can be set for multiple protocols by clicking the [Communication Parameter Batch
Setting] button and setting the range of the set protocol numbers, receive settings, and send settings.
Window
The procedure to write the data is as follows.
Precautions
The written protocol setting data is reflected when the power is turned on or the CPU module is reset.
Window
The procedure to read the data is as follows.
The following data is not displayed even when reading from CPU module because it will not be written as a
protocol setting data. However, the protocol selected from the predefined library is displayed.
• Manufacturer
• Packet name
• Type, Version, Explanation in the protocol detailed setting
• Element name in the packet setting
Window
The procedure to verify the data is as follows.
Ex.
Example of a packet configuration
Example of format of packet from counterpart device
Packet elements setting with the predefined protocol function for the format shown above
Data area
Header
Non-conversion
Static data Conversion variable Check Code Terminator 21
variable
Configure the packet in the order of header, data area*1, and terminator. Check code and static data can be
placed after the terminator.
*1 Element: Length / static data/ non-conversion variable / conversion variable / check code / non-verified reception
Set the packet in the packet setting screen displayed by the following operation of GX Works3.
Protocol setting screen Desired packet setting
Window
*2 These items can be set when the project is changed to an editable project on the protocol setting screen.
Header
Use this element when a specific code or character string exists at the head of a packet.
• When sending: Sends a specified code and character string.
• When receiving: Verifies a header and received data.
Window
Header Terminator
Terminator
Use this element when a code or character string indicating the end of the packet is included.
Window
21
Window
Ex.
When 2 bytes is specified in Data Length and the calculation result is 123 bytes, the data length is considered as 23.
• When any Non-conversion variable (Variable length), Conversion variable (Variable number of data), Conversion variable
(Fixed number of data/Variable number of digits*1), or Non-verified reception (Variable number of characters) is placed
behind Length and they are not included in the calculating range of the Length, place any of the following data immediately
after the Non-conversion variable (Variable length), Conversion variable (Variable length) or Non-verified reception.
- Static data
- Terminator
- Check code + Static data
- Check code + Terminator
• When Code Type is ASCII Hexadecimal, a corresponding packet is regarded as a mismatch packet if a string other than 0 21
to 9, A to F, and a to f is received.
• When Code Type is ASCII Decimal, a corresponding packet is regarded as a mismatch packet if a string other than 0 to 9 is
received.
*1 Excluding the case where number of send data is 1 and delimiter is not no delimiter.
Static Data
Use this element when a specific code or character string such as command exists in a packet.
• When sending: Sends a specified code and character string.
• When receiving: The received data is verified.
Window
Multiple static data elements can be placed to desired positions in the data portion.
Item Descriptions
Element Name Set the name of the element.
Fixed Length/Variable Fixed Length Sends and receives the data whose length is fixed.
Length
Variable Length When Specifies the data length at the time of the protocol execution and sends data.
sending
When Receives data whose data length is variable.
receiving
Data Length/Maximum Set the length of data to be transmitted and received. (For a variable length, set the maximum data length that can be specified for
Data Length the data length storage area.)
The range is 1 to 2048.
Unit of Stored Data Lower Byte + Upper Byte When Sends each one word (2 bytes) data in the data storage area in the order of the lower
sending byte to the upper byte.
When Stores the received data to the data storage area in the order of the lower byte to the
receiving upper byte.
Lower Bytes Only When Sends only lower byte of data in the data storage area.
sending
When Stores the received data in the only lower byte of the data storage area.
receiving
Byte Swap • Disable (Lower Upper) When When Enable is selected, sends data swapping the upper byte and lower byte by
• Enable (Upper Lower) sending word (2 bytes).
When Unit of Stored Data is Lower Byte + Upper Byte and Data Length is an odd
number of bytes, sends the upper byte at transmission of the last byte.
When Unit of Stored Data is Lower Bytes Only and Data Length is an odd number of
bytes, sends data without any byte swap at transmission of the last byte.
When When Enable is selected, receives data swapping the upper byte and lower byte by
receiving word (2 bytes).
When Unit of Stored Data is Lower Byte + Upper Byte and Data Length is an odd
number of bytes, stores the last byte to the upper byte.
When Unit of Stored Data is Lower Bytes Only and Data Length is an odd number of
bytes, stores the last byte without any byte swap.
Data Storage Area Specify a start device*1 to When Specify a head device of the area where send data is stored.
Specification store variable value. sending
When Specify a head device of the area where receive data is stored.
receiving*2
+n
*1 The unit of data length is byte. Stores the data length on the line.
Caution
• When receiving variable length data whose length exceeds the Maximum data length, CPU module stores data as long as
the maximum data length and omits the rest. (The protocol completes successfully.)
• Out of packet data received from counterpart devices, the data corresponding to variable needs to be distinguishable from
a terminator or a static data immediately after non-conversion variable. The reception processing may not be performed
normally if it cannot distinguished.
Ex.
When value of a terminator or value of a static data following a non-conversion variable is used in a non-conversion variable,
CPU module recognizes it as data of a terminator or a static data following a non-conversion variable and performs the
verification / reception processing.
Window
21
Item Descriptions
Element Name Set the name of the element.
Conversion When HEXASCII Converts numeric value stored in the data storage area to ASCII decimal.
sending Decimal
HEXASCII Converts numeric value stored in the data storage area to ASCII hexadecimal.
Hexadecimal
When ASCII Decimal Treats received data as ASCII decimal, converts it to numeric value, and stores it to the data
receiving HEX storage area.
ASCII Hexadecimal Treats received data as ASCII hexadecimal, converts it to numeric value, and stores it to the
HEX data storage area.
Fixed Number of Data/ Fixed Number of Data Fixes the number of data to be sent and received.
Variable Number of Data
Variable Number of Data • When sending: Specifies the number of data to be sent at the time of the protocol execution
and sends the data.
• When receiving: Receives data of which the number is variable.
For Variable number of digits, delimiters are required.
Number of Send Data Set the number of data to be transmitted and received. (For Variable Number of Data, set the maximum number of data that can be
specified to the data quantity storage area.) The range is 1 to 256.
Number of Send Digits 1 to 10 Set the number of digits per one transmitted and received data.
of Data When the number of send digits of data is less than the specified number of digits of data,
upper digits are filled with blank-padded characters.
Variable Number of Digits • When sending: Sends only the data portion converted to an ASCII string in variable length.
• When receiving: Receives only an ASCII string of the data portion in variable length. When
the number of send data/maximum data length is set to 2 or greater, blank-padded
characters are required.
Blank-padded Character •0 Select a character used to fill upper digits when the number of digits of data is not Variable
at Send • Space Number of Digits and the number of digits of transmitted/received data is less than the
specified number of send digits of data.
+n
+n
In the decimal point position area, the decimal point position is set as follows.
Send/receive data (number of digits of Numeric data Decimal point position
data is 5)
12345 12345 (3039H) 1 (1H)
1234.5 12345 (3039H) 10 (0AH) 21
123.45 12345 (3039H) 100 (64H)
12.345 12345 (3039H) 1000 (3E8H)
1.2345 12345 (3039H) 10000 (2710H)
2H (L)
Decimal point position
3H (H)
In the decimal point position area, the decimal point position is set as follows.
Send/receive data (number of digits of Numeric data Decimal point position
data is 10)
1234567890 1234567890 (499602D2H) 1 (1H)
123456789.0 1234567890 (499602D2H) 10 (0AH)
12345678.90 1234567890 (499602D2H) 100 (64H)
1234567.890 1234567890 (499602D2H) 1000 (3E8H)
1.234567890 1234567890 (499602D2H) 1000000000 (3B9ACA00H)
■A data whose decimal point position is greater than the number of digits is specified
When Number of Decimals is Variable Point in a send packet, a decimal point place specification error (7D21H) may occur if
the decimal point position is greater than the number of digits.
■A data whose number of digits are fewer than the digits specified in Number of Send Digits of
Data are received
An insufficient digit number error (7D18H) may occur if data whose number of digits are fewer than the digits specified in
number of send digits of data are received.
Ex.
When Number of Send Digits of Data is set to 4 digits
Conversion variable Terminator
Ex.
When the value of terminator or a static data following the conversion variable is used as a conversion variable, CPU module
recognizes it as a terminator or a fixed data following the conversion variable, verifies, and performs reception processing.
Check Code
Use this element when an element indicating check code data is included in a packet.
CPU module automatically calculates a specified check code at timing of sending/receiving, and adds it to a send packet or
detects an error of a receive packet.
Window
Caution
• When Code Type is [ASCII Hexadecimal], an error may occur if a string other than '0' to '9' 'A' to 'F' 'a' to 'f' is received.
• When Code Type is [ASCII Decimal], an error may occur if a string other than '0' to '9' is received.
• When a calculated check code (Sum check/Horizontal parity/16-bit CRC) does not match a received check code, an error
may occur.
Window
Item Descriptions
Element Name Set the name of the element.
Data Length 0 (variable number of characters) Set this item when the number of characters not to be verified varies in each
communication.
1 to 2048 (specified number of characters) Set the number of characters not to be verified.
S(P).CPRTCL 21
This instruction is used to execute the predefined protocol registered with the engineering tool via RS-485 built in the CPU
module, or the communication board and communication adapter installed to the CPU module.
Ladder ST FBD/LD
ENO:=S_CPRTCL (EN, U0, s, n1, n2, d);
ENO:=SP_CPRTCL (EN, U0, s, n1, n2, d);
(U) (n1) (n2) (s) (d)
EN ENO
U0 d
n1
n2
("S_CPRTCL",
"SP_CPRTCL" enters .)
Setting data
■Content, range, data types
Operand Description Range Data type Data type (label)
(U)*1 Dummy (Input the character string ['U0'].) Character string ANYSTRING_SINGLE
(n1) Communication CH ■FX5S/FX5UJ CPU 16-bit unsigned binary ANY16_U
module
K2 to K4
■FX5U CPU module
K1 to K4
■FX5UC CPU module
K1, K3 to K4
(n2) Number of protocols to be executed continuously K1 to 8 16-bit unsigned binary ANY16_U
(s) Start device containing the control data Refer to Page 482. Word ANY16_ARRAY
(Number of elements: 18)
(d) Head bit device number to output the instruction Bit ANYBIT_ARRAY
execution status (Number of elements: 2)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 In the case of the ST language and the FBD/LD language, U displays as U0.
■Control data
Device Item Description Setting Set by*1
range
(s) Result of executed The result of executed S(P).CPRTCL instruction is stored. When two or more System
protocols protocols are executed, the execution result of the protocol executed last is stored.
• 0: Normal completion
• Other than 0: Error completion (error code)
(s)+1 Resulting number of The number of protocols executed by the S(P).CPRTCL instruction is stored. The 0, 1 to 8 System
executed protocols execution of the protocol where an error has occurred is also counted in the number
of executions. If the setting of setting data or control data contains an error, "0" is
stored.
(s)+2 Execution protocol Specify the number of the protocol to be executed first. 1 to 64 User
number 1
(s)+3 Execution protocol Specify the number of the protocol to be executed second. 0, 1 to 64 User
number 2
(s)+4 Execution protocol Specify the number of the protocol to be executed third. 0, 1 to 64 User
number 3
(s)+5 Execution protocol Specify the number of the protocol to be executed fourth. 0, 1 to 64 User
number 4
(s)+6 Execution protocol Specify the number of the protocol to be executed fifth. 0, 1 to 64 User
number 5
(s)+7 Execution protocol Specify the number of the protocol to be executed sixth. 0, 1 to 64 User
number 6
(s)+8 Execution protocol Specify the number of the protocol to be executed seventh. 0, 1 to 64 User
number 7
(s)+9 Execution protocol Specify the number of the protocol to be executed eighth. 0, 1 to 64 User
number 8
(s)+10 Verification match If receiving is included in the communication type of the protocol that has been 0, 1 to 16 System
Receive packet number 1 executed first, the receive packet number successful in verification match is stored. If
the communication type is "receive only", "0" is stored. If an error occurs during
execution of the first protocol, "0" is stored.
(s)+11 Verification match If receiving is included in the communication type of the protocol that has been 0, 1 to 16 System
Receive packet number 2 executed second, the receive packet number successful in verification match is
stored. If the communication type is "receive only", "0" is stored. If an error occurs
during execution of the second protocol, "0" is stored. If the number of protocols
executed is less than 2, "0" is stored.
(s)+12 Verification match If receiving is included in the communication type of the protocol that has been 0, 1 to 16 System
Receive packet number 3 executed third, the receive packet number successful in verification match is stored.
If the communication type is "receive only", "0" is stored. If an error occurs during
execution of the third protocol, "0" is stored. If the number of protocols executed
isless than 3, "0" is stored.
(s)+13 Verification match If receiving is included in the communication type of the protocol that has been 0, 1 to 16 System
Receive packet number 4 executed fourth, the receive packet number successful in verification match is stored.
If the communication type is "receive only", "0" is stored. If an error occurs during
execution of the fourth protocol, "0" is stored. If the number of protocols executed
isless than 4, "0" is stored.
(s)+14 Verification match If receiving is included in the communication type of the protocol that has been 0, 1 to 16 System
Receive packet number 5 executed fifth, the receive packet number successful in verification match is stored. If
the communication type is "receive only", "0" is stored. If an error occurs during
execution of the fifth protocol, "0" is stored. If the number of protocols executed is
less than 5, "0" is stored.
*1 User: Data to be set by users before the execution of the S(P).CPRTCL instruction.
System: Data to which the CPU module sets the execution result of the S(P).CPRTCL instruction.
21
Processing details
• Protocols registered with the engineering tool are executed. The communication CH specified by (n1) is used and the
protocol to be executed follows the control data of the device specified by (s) or later.
• Protocols are executed consecutively for the number of the protocols specified by (n2) (up to eight protocols) in one
instruction execution.
• The number of executed protocols is stored in the device specified by (s)+1.
• The execution of the S(P).CPRTCL instruction and whether it has been completed normally or with an error can be checked
with the completion device (d) or resulting of executed protocols device (d)+1.
■Completion device (d)
The completion device turns on in END processing of the scan performed upon completion of the S(P).CPRTCL instruction and turns off in the next END
processing.
■Completion status indication device (d)+1
The completion device turns on or off depending on the completion status of the S(P).CPRTCL instruction.
When completed normally:
Unchanged from OFF.
When completed with an error:
Turns on in END processing of the scan performed upon completion of the S(P).CPRTCL instruction and turns off in the next END processing. When the
processing is completed abnormally, the error code is stored in the result of executed protocols (s).
Sequence scan 0 to END process 0 to END process 0 to END process 0 to END process
S(P).CPRTCL instruction
The value corresponding to the current protocol execution status is stored in each of the devices above. Any of the values
listed in the following table is stored in each of the devices above.
Stored value Protocol execution status Description
0 Unexecuted The protocol has never been executed since the power supply turned on or the reset. Once the protocol
has been executed, the status of the protocol does not return to unexecuted until the power supply is
turned on or the reset.
1 Waiting for transmission The status before starting to send a packet to the counterpart device. When the CPU module is
preparing or waiting to send a packet, the protocol is in this status.
2 Sending A packet is being sent to the counterpart device.
3 Waiting for data reception The CPU module waits to receive data from the counterpart device.
4 Receiving Data was received from the counterpart device and the receive processing is being executed. Any of
the following processing is included in this status.
• Data verification processing
• General data processing of when a CPU device is specified as a variable
5 Completed The execution of a protocol has been completed.
Completion status
indication device (d)+1
Protocol cancel
specification 0: Normally operation 1: Cancel request 2: Cancel operation completed
21
The operation differs as follows depending on the protocol communication in execution and the timing of the cancel request
(protocol execution status).
The protocol Cancel timing (Protocol execution status) Resulting of executed protocols
communication in
execution.
Send Executed protocols start - Before data transmission start The packet is not sent.
(Waiting for transmission)
Data transmission start - Before send completed (Sending) The packet is not suspended, let the send complete.
Receive Send completed - Before data reception start (Waiting for data The packet is not received.
reception)
After data reception start (Receiving) The packet is suspended, and the packet is discarded.
Precautions
• If a cancel request is issued while no protocol is being executed, the CPU module completes the cancel request without
performing any processing.
• The CPU module periodically checks for a cancel request. For this reason, it may take time until cancel processing is
performed after a cancel request is issued.
■Monitor start
When 0001H is set for send/receive data monitoring function setting, the device number of monitoring data and the number of
monitor data are initialized and monitoring is started. When monitoring is started, monitoring (0002H) is written to send/
receive data monitoring function setting.
■Monitoring
After monitoring is started, data is stored in order of receive data, send data, and receive error starting from the monitor data
area. The storage timing of the data is as follows.
• Receive data: When data receiving
• Send data: When data sending
• Receive error data: When sending error detection
The following shows the operations of when the size of the monitored data exceeds the size of the monitor data area.
• When monitoring continued (bit 0: OFF) is set for data area full stop specification
The old data is overwritten with the new data and the monitoring continues.
• When monitoring stop (bit 0: 0N) is set for data area full stop specification
Monitoring stops and monitoring stop (1002H) is written to send/receive data monitoring function settings.
■Monitor stop
Monitoring is stopped by one of the following methods.
• Monitoring is stopped when 0000H is set for send/receive data monitoring function setting.
• When monitoring stop (bit 0: ON) is set for data area full stop specification
Monitoring is stopped when the data is stored for the size of the monitor data area. At this time, monitoring stop (1002H) is
written for send/receive data monitoring function setting.
• When 1-packet stop specified (bit 1: ON) is set for 1-packet stop specification
Monitoring is stopped when the sending of one packet send data or the receiving of one packet receive data is completed. If
the size of one packet exceeds the size of the monitor data area, monitoring is stopped when the data is stored for the size of
the monitor data area. At this time, monitoring stop (1002H) is written to send/receive data monitoring function setting. The
type of packets for which monitoring starts or stops differs depending on the communication type of protocols.
Communication type Stop requirement
Send Only Monitoring stops when one send packet is monitored.*1
Receive Only Monitoring stops when one receive packet is monitored.*1
Send & Receive Monitoring stops when one send packet and one receive packet are monitored.*1
*1 If the size of one packet exceeds the size of the monitor data area, monitoring stops when the data for size of the monitor data area is
stored.
Ex.
Monitoring data device specification: D device (0)
Monitoring data start device No. specification: 0
Monitoring data size specification: 100
Device Data Description Program Explanation of data
D0 0032H Monitor data device No. Number of the device in which the oldest data is stored. The oldest data is D50. (0032H=50)
D1 0064H Number of monitor data Number of monitor data stored in the monitor data area Number of monitor data is 100
(0064H=100)
D2 1000H Monitor data 1 Monitor data area Send data/00H
D3 1001H Monitor data 2 Send data/01H
D4 1002H Monitor data 3 Send data/02H
D99 1003H Monitor data 98 Send data/03H 21
D100 1004H Monitor data 99 Send data/04H
D101 1005H Monitor data 100 Send data/05H
Two words from the start device number are used for the device number of monitoring data and the number of monitor data.
The devices with the device numbers after the first two words are used for the monitor data area.
• Monitoring data device No.
Among the data stored in the monitor data area, the number of the device in which the oldest data is stored. The monitor data
device number is initialized when the send/receive data monitoring starts.
The storage range is from the start of the monitor data area to (the start of the monitor data area + monitor data size -1).
■When monitoring continued (bit 0: OFF) is set for data area full stop specification
The start device numbers of the monitor data area are stored until the size of the data area where the data is stored and set exceeds the size of the monitor
data. When the monitor data area is overwritten because the number of monitor data exceeds the monitor data size, the device in which the oldest data is stored
is updated.
■When monitoring stop (bit 0: ON) is set for data area full stop specification
The start device number of the monitor data area is stored.
One word consists of the send/receive data (1 byte) for lower 8 bits and the data classification/signal monitor for upper 8 bits.
Upper high rank 4bit (b15 to b12) Upper low rank 4bit (b11 to b8) Lower 8bit (b7 to b0)
Data type Signal monitor Send/receive data
0 (0000b): Receive data b11: 0
1 (0001b): Send data
3 (0011b): Receive error
Caution
• If an error occurs in the "n"th protocol while multiple protocols are being executed, the instruction does not execute the
"n+1"th protocol and after and is completed with an error.
• If same instructions are executed for the same channel, the subsequent instruction is ignored and is not executed until the
preceding instruction is completed.
• If the receive waiting time is set to 0: Infinite wait, the S(P).CPRTCL instruction is not completed until the data specified in
the protocol setting is received.
Program example
The following shows an example of a program to execute consecutively the protocols in order of protocol numbers 4, 7, and 5
from the communication board (CH2) with the predefined protocol support function.
Program example
Drive Drive S(P).CPRTCL instruction
instruction
X20
= SD9102 K1 MOV K4 D12 Protocol number executed first (4)
Program example
Monitor start Monitor start
trigger Monitoring
X21 M21
Monitoring data device specification
MOV H1 SD9242
(R device)
Monitoring data start device No.
MOV H0 SD9243
specification (R0)
SET M21
Monitoring setting error is
= SD9240 H100F RST M20 detected.
Monitoring is suspended.
SET M21
Available communication channels vary depending on the CPU module and system configuration.
For communication channels, refer to Page 453 System Configuration.
Special relays
R: Read only
Device No. Name Description R/W
CH1 CH2 CH3 CH4
SM8500 SM8510 SM8520 SM8530 Serial communication error Turns ON when an error occurs in serial communication. R
Special registers
R: Read only, W: Write only, R/W: Read/write
Device No. Name Description R/W
CH1 CH2 CH3 CH4
SD8500 SD8510 SD8520 SD8530 Serial communication error When a serial communication error occurs, the error code is stored. R
code
SD8502 SD8512 SD8522 SD8532 Serial communication Stores the setting of the communication parameter. R
settings
SD8503 SD8513 SD8523 SD8533 Serial communication This device stores the current communication mode being used. R
operation mode
SD9102 Predefined protocol ready The reflected status after the protocol setting data has been written is R
stored.
SD9120 Predefined protocol setting When a protocol setting data error was detected, information to R
data error information: identify the error position is stored.
Protocol No.
SD9121 Predefined protocol setting R
data error information:
Setting type
SD9122 Predefined protocol setting R
data error information:
Packet No.
SD9123 Predefined protocol setting R
data error information:
Element No.
SD9124 Number of registered The number of registered protocol setting data is stored. R
predefined protocols
SD9132, SD9133, SD9134, SD9135 Predefined protocol The ON/OFF state of the bit corresponding to a protocol number R
registration indicates whether the protocol setting data has been registered or
not.
SD9150 SD9170 SD9190 SD9210 Protocol execution status The status of a protocol in execution is stored. R
SD9168 SD9188 SD9208 SD9228 Protocol execution count The cumulative number of executions of a protocol is stored. R
SD9169 SD9189 SD9209 SD9229 Protocol cancel specification The protocol in execution can be cancelled with a value to be stored R/W
in this area.
SD9230 SD9240 SD9250 SD9260 Send/receive data monitoring The setting of the send/receive data monitoring function is stored. R/W
function setting
SD9231 SD9241 SD9251 SD9261 Send/receive data monitoring The option setting of the send/receive data monitoring function is W
function option setting stored.
SD9232 SD9242 SD9252 SD9262 Monitoring data device The type of word device used as the monitor data areas is stored. W
specification
Precautions
Do not turn ON or OFF with program or engineering tool.
Serial communication error does not turn OFF even if the communication is restored to normal state. The devices turn OFF
when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is turned ON.
Precautions
Do not change the value with program or engineering tool.
Serial communication error code is not cleared even after communication is restored to normal state. They are cleared by
turning the PLC power OFFON, STOPRUN, reset or by SM50 (Error Detection Reset Completion) is turned ON.
Precautions
Do not turn ON or OFF with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
These devices store "12" while S(P).CPRTCL instruction is being driven or not, as long as the communication mode has not
changed.
Precautions
Do not change the value with program or engineering tool.
The written protocol setting data is reflected when power is turned OFFON or reset.
*1 Damaged protocol setting data (failures of the memory built in the CPU memory module or the SD memory card) can be a factor that
causes a setting value to be not identifiable.
Precautions
Do not change the value with program or engineering tool.
*1 Damaged protocol setting data (failures of the memory built in the CPU memory module or the SD memory card) can be a factor that
causes a setting value to be not identifiable.
Precautions
Do not change the value with program or engineering tool.
*1 Damaged protocol setting data (failures of the memory built in the CPU memory module or the SD memory card) can be a factor that
causes a setting value to be not identifiable.
Precautions
Do not change the value with program or engineering tool.
*1 Damaged protocol setting data (failures of the memory built in the CPU memory module or the SD memory card) can be a factor that
causes a setting value to be not identifiable.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
The following table lists protocol numbers corresponding to bits of each device.
Device bit*1
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
SD9132 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1
SD9133 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 21
SD9134 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33
SD9135 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
*1 When a protocol setting data error has occurred, 0 is stored in all these areas.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
Precautions
Do not change the value with program or engineering tool.
The following table lists the setting contents of the send/receive data monitoring function option setting.
Bit No. Name Description
0 (bit is OFF) 1 (bit is ON)
b0 Data area full stop specification Monitor continued (data is Monitor stop
overwritten)
b1 Packet stop specification 1-packet stop specification disabled 1-packet stop specification enabled
b2 to b15 Not used
Precautions
When a device value is changed after the send/receive data monitoring has been started, the change is not reflected. When
monitoring is started after the receive data monitoring was stopped (including a stop due to a receive error), the change is
reflected.
When the storage destinations of monitor data overlap for each channel, no error occurs and the values in those areas are
overwritten with new values.
Precautions
When a device value is changed after the send/receive data monitoring has been started, the change is not reflected. When
monitoring is started after the receive data monitoring was stopped (including a stop due to a receive error), the change is
reflected.
When the storage destinations of monitor data overlap for each channel, no error occurs and the values in those areas are
overwritten with new values.
21
Monitoring data size specification
The size of word devices used as the monitor data areas with the send/receive data monitoring function is stored in word
units. For details, refer to Page 487 Monitor data.
W: Write only
CH1 CH2 CH3 CH4 Description R/W
SD9234 SD9244 SD9254 SD9264 1 to 32765 W
Precautions
When a device value is changed after the send/receive data monitoring has been started, the change is not reflected. When
monitoring is started after the receive data monitoring was stopped (including a stop due to a receive error), the change is
reflected.
When the storage destinations of monitor data overlap for each channel, no error occurs and the values in those areas are
overwritten with new values.
22 OUTLINE
23 SPECIFICATIONS
25 COMMUNICATION SETTING
26 FUNCTION
499
22 OUTLINE
This chapter explains the FX5 MODBUS/TCP communication (slave station).
For details on the predefined protocol support function, refer to the following.
Page 100 PREDEFINED PROTOCOL SUPPORT FUNCTION
System
Third party
programmable Personal
FX5 controller computer Display module
master station master station master station master station
Ethernet
FX5
slave station
An external device other than FX5 can be used as the master station and slave station.
22 OUTLINE
500 22.1 Outline of Function
22.2 Procedure for Operation
The flow chart below shows the procedure for setting up a MODBUS/TCP communication (slave station):
3. Check of function*2
Refer to Page 510 FUNCTION.
• Slave function
*1 For details on the connection method or operation method to the PLC of GX Works3, refer to the following manual.
GX Works3 Operating Manual 22
*2 The slave station does not need a program.
22 OUTLINE
22.2 Procedure for Operation 501
23 SPECIFICATIONS
This chapter explains the specifications of MODBUS/TCP communication.
*1 The number of available connections decreases when the other Ethernet communication function is used. For details on Ethernet
function, refer to the following manual.
Page 24 OUTLINE
*2 The port station No. can be changed by the communication setting.
23 SPECIFICATIONS
502 23.1 Communication Specifications
MEMO
23
23 SPECIFICATIONS
23.1 Communication Specifications 503
24 MODBUS/TCP COMMUNICATION
SPECIFICATIONS
This chapter explains the details of MODBUS Protocol for MODBUS/TCP communication and the MODBUS standard
functions supported by the FX5.
• For the list of supported MODBUS standard functions, refer to Page 505 List of supported MODBUS standard
functions.
• For usage of the supported MODBUS standard functions, refer to Page 510 FUNCTION.
Message length
*1 For details on the MODBUS protocol data section, refer to the following.
Page 899 MODBUS protocol data unit formats
The following table provides details of the frame specifications for the MODBUS Protocol.
Area name Description
Transaction ID Used by the master for matching of the response message from the slave.
Protocol ID Indicates the protocol of the PDU (protocol data unit).
Stores 0 in the case of MODBUS/TCP.
Message length Stores the message size in byte unit.
The message length after this field is stored. (See the above figure.)
Module ID Used to specify the slave connected to the other line, e.g. MODBUS serial protocol. (FX5 is not supported)
Function code The master specifies the function code to the slave.
Data [When the master sends a request message to a slave]
Stores the requested processing.
[When the slave sends a response message to the master]
Stores the result of processing execution.
24
Window
Drag and drop the "MODBUS/TCP Connection Module" from "Module List" to the left side on the screen. Execute the settings
as described below.
Item Setting Remarks
PLC Port No. 1 to 5548, 5570 to 65534 (Default value: 502) Set the port No. of slave station.
Do not specify 5549 to 5569 because these ports are used by the
system.
For setup method for IP address of slave station, refer to the following.
Page 38 Connection via a Hub
Precautions
For host station port number, using 502 is recommended. When changing the port number, use 1024 to 5548 and 5570 to
61439 (0400H to 15ACH and 15C2H to EFFFH).
When using the following functions, do not specify the port No. of the function to be used in MODBUS/TCP communication
function.
• File transfer function (FTP server): 20 (14H), 21 (15H)
• Web server function: 80 (50H)*1
• Time setting function (SNTP client): 123 (7BH)
• SLMP function: 61440 (F000H), 61441 (F001H)
• CC-Link IE Field Network Basic: 61450 (F00AH)
*1 Port No. can be changed. (Default value: 80)
25 COMMUNICATION SETTING
506 25.1 Setup Method for Port No.
25.2 Setup Method for MODBUS/TCP Communication
For the MODBUS/TCP communication setting of the FX5, set parameters with GX Works3.
25
Navigation window [Parameter] Module model name [Module Parameter] [Ethernet Port] [Basic Settings]
[MODBUS/TCP Settings]
Window
25 COMMUNICATION SETTING
25.2 Setup Method for MODBUS/TCP Communication 507
Contents of parameter setting
The device allocation used for parameter setting of MODBUS/TCP communication are as follows.
Window
25 COMMUNICATION SETTING
508 25.2 Setup Method for MODBUS/TCP Communication
■Available devices
The following table shows devices that can be set to coil, input, input register, and holding register.
List of devices Allocable MODBUS device 25
Device type Device Coil Input Input register Holding register
Special relay SM *1 *1
Special register SD
Input X *1 *1
Output Y *1 *1
Internal relay M *1 *1
Latch relay L *1 *1
Annunciator F *1 *1
Link relay B *1 *1
Data register D
Link register W
Timer Coil TC *1 *1
Contact TS *1 *1
Current value TN
*1
Retentive timer Coil STC *1
Contact STS *1 *1
Current value STN
Counter Coil CC *1 *1
Contact CS *1 *1
Current value CN
Long counter Coil LCC *1 *1
*1
Contact LCS *1
Current value LCN *2 *2
*1
Link special relay SB *1
Link special register SW
Step relay S *1 *1
Index register Z
Index register LZ *2 *2
File register R
Extended file register ER
*1 Set the device number and the allocating points in multiples of 16. In the case that the number of points is not a multiple of 16, a
parameter setting error occurs in GX Works3.
*2 Because MODBUS devices are long type devices, 2 points are allocated.
Precautions
• The same device cannot be set for a coil and an input.
• The same device cannot be set for an input register and a holding register.
• A parameter setting error occurs in GX Works3 when the total of selected head device number and the allocated points
exceed the valid range for the selected PLC device.
25 COMMUNICATION SETTING
25.2 Setup Method for MODBUS/TCP Communication 509
26 FUNCTION
This chapter explains the function of MODBUS/TCP communication.
Connection settings
Navigation window [Parameter] Module model name [Module Parameter] [Ethernet Port] [Basic Settings]
[External Device Configuration] Double click <Detailed Setting> of "External Device Configuration".
Window
Drag and drop the "Active Connection Module" from "Module List" to the left side on the screen. Execute the settings as
described below.
Item Setting Remarks
Communication Method Specify the Predefined Protocol.
PLC Port No. 1 to 5548, 5570 to 65534 Set the port No. of master station.
Do not specify 5549 to 5569 because these ports are used by the
system.
Sensor/Device IP Address 0.0.0.1 to 223.255.255.254 Set the IP Address of slave station.
Port No. Set the port No. of slave station.
26 FUNCTION
510 26.1 Master Function
Protocol settings
Send the request message from the master station to the slave station through the predefined protocol support function.
Create the protocol data of MODBUS function requesting to the slave station.
[Tool] [Predefined Protocol Support Function] [File] [New] "Protocol Setting" screen [Edit] [Add Protocol]
26
Set the following items, and add the protocol of MODBUS/TCP communication.
Item Description
Type Specify the Predefined ProtocolLlibrary.
Manufacturer Specify the General-purpose protocol.
Model Specify MODBUS/TCP.
Protocol Name*1 01: RD Coils (01H: Read coils)
02: RD Discrete Inputs (02H: Read discrete inputs)
03: RD Holding Registers (03H: Read holding registers)
04: RD IN Registers (04H: Read input registers)
05: WR Single Coil (05H: Write single coil)
06: WR Single Registers (06H: Write single register)
15: WR Multi Coil (0FH: Write multiple coils)
16: WR Multi Registers (10H: Write multiple registers)
20: RD File Record (14H: Read file record)*2
21: WR File Record (15H: Write file record)*2
22: Mask WR Registers (16H: Mask write register)
23: RD/WR Multi Registers (17H: Read/write multiple registers)
When setting the packet setting to the FX5 slave station, use the device assigned MODBUS device for the
device specified to variable. (Page 508 MODBUS device allocation)
26 FUNCTION
26.1 Master Function 511
Program
The flow of the program performing the MODBUS/TCP communication by the FX5 master station is shown below.
1. Establishes a connection
Open a connection of the slave station for communication by SP.SOCOPEN instruction.
2. Executes the protocols
Execute the protocol (MODBUS standard function) set to the slave station for communication by SP.ECPRTCL instruction.
3. Closes a connection
Close a connection of the slave station for communication by SP.SOCCLOSE instruction.
Automatic response
This function performs operations according to the supported function code by communicating with the master station.
For the supported function codes, refer to Page 505 List of supported MODBUS standard functions.
Ethernet diagnostics
This function can execute the troubleshooting when an abnormality occurs.
For details, refer to the following.
Page 799 Ethernet diagnostics
26 FUNCTION
512 26.2 Slave Function
26.3 Related Devices
In this section, the functions of the special registers are described for MODBUS/TCP communication.
The table shows the special registers used for the FX5 MODBUS/TCP communication.
R: Read only
26
Device number Name Valid Details R/W
SD10130 to SD10137 Error code Master/ Error code of built-in Ethernet (connection 1 to connection R
Slave 8) is stored.
Error code
Stores the current error code of built-in Ethernet. (Page 849 MODBUS Serial Communication)
R: Read only
Device number Name Description R/W
SD10130 Error code (Connection No.1) Stores the current error code generated during built-in Ethernet. R
SD10131 Error code (Connection No.2)
SD10132 Error code (Connection No.3)
SD10133 Error code (Connection No.4)
SD10134 Error code (Connection No.5)
SD10135 Error code (Connection No.6)
SD10136 Error code (Connection No.7)
SD10137 Error code (Connection No.8)
Precautions
Do not change the device value using a program or an engineering tool.
26 FUNCTION
26.3 Related Devices 513
MEMO
26 FUNCTION
514 26.3 Related Devices
PART 4
PART 4 MODBUS SERIAL
COMMUNICATION
27 OUTLINE
28 CONFIGURATION
29 SPECIFICATIONS
31 WIRING
32 COMMUNICATION SETTING
33 FUNCTION
34 CREATING PROGRAMS
515
27 OUTLINE
This chapter explains the FX5 MODBUS serial communication.
• When predefined protocol support function is used, refer to the following.
Page 452 PREDEFINED PROTOCOL SUPPORT FUNCTION
System
<RS-485>
1200 m (50 m or shorter when other than the FX5-485ADP is included in the system)
•••
Built-in RS-485 port, Built-in RS-485 port, Built-in RS-485 port,
etc. etc. etc.
<RS-232C>
15 m
FX5 FX5
master station slave station 1
The slave station No. can be set from 1 to 247*2. However, the number of slave station which can be
connected to the FX5 master station is 32.
*1 Maximum number of channels differs depending on the CPU module. (Page 518 System Configuration)
*2 Slave station No. that can be set in FX5 master station differs depending on the version. (Page 935 Added and Changed Functions)
27 OUTLINE
516 27.1 Outline of Function
27.2 Procedure for Operation
The flow chart below shows the procedure for setting up a MODBUS serial communication network:
5. Program creation
Refer to Page 538 FUNCTION and Page 550 CREATING PROGRAMS.
• Function
Master function, Slave function, Related special device
• MODBUS serial communication program
Example of creating programs of the master using ADPRW instruction
27 OUTLINE
27.2 Procedure for Operation 517
28 CONFIGURATION
This chapter explains the configuration of RS-485 and RS-232C communication of the FX5.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
28 CONFIGURATION
518 28.1 System Configuration
FX5UJ CPU module
In FX5UJ CPU module, up to two communication port channels can be connected to a CPU module using communication
board, and communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
The combinations which can be configured are shown below.
[Configuration example 1] [Configuration example 2]
28
CH2: Communication
board
Item Communication Important point in selection Total
port extension
distance
Communication FX5-485-BD CH2 Mounted on top of the CPU module, there is no change in the installation 50 m or less
board FX5-232-BD space requirements 15 m or less
Communication FX5-485ADP CH3, CH4 *1 Mount the communication adapter to the left of the CPU module 1200 m or less
adapter
FX5-232ADP 15 m or less
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
28 CONFIGURATION
28.1 System Configuration 519
FX5U CPU module
In FX5U CPU module, up to four communication port channels can be connected to a CPU module using built-in RS-485 port,
communication board, and communication adapter.
Communication channel assignments are fixed regardless of the system configuration.
CH4: Communication adapter 2
CH3: Communication adapter 1
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
*1 The adapters are assigned to CH3 and CH4 in the order, from the closest one to the CPU module.
28 CONFIGURATION
520 28.1 System Configuration
29 SPECIFICATIONS
This chapter explains the specifications of MODBUS serial communication.
*1 Maximum number of channels differs depending on the CPU module. (Page 518 System Configuration)
29 SPECIFICATIONS
29.1 Communication Specifications 521
29.2 Link Time
The link time indicates the cycle time in which a master module completes a single instruction with a slave, as illustrated by
the diagram below.
X0
SET M0
M0
ADPRW ** ** ** ** ** **
SM8029
RST M0
Instruction execution complete flag
M0
SM8029
T1 T2 T3
Master Message
to Message
Delay
Command
T4 Creation
Request Sending
Response Receiving
3.5
character
T5 wait
Processing
T6 T7 T8 T9 T10
Request Receiving
Slave Message to
Message Delay
Processing
T14 T15
Response Sending
29 SPECIFICATIONS
522 29.2 Link Time
The master processing time (Tm) can be calculated in milliseconds (ms) as follows. "INT(n)" indicates an integer obtained by
truncating decimal places of "n".
Character length (bits):
Start bit (1 bit) + Data Length (8 bit) + Parity bit (0 bit or 1 bit) + Stop bit (1 bit or 2 bit)
Tm = T1 + T2 + T3
T4
T1 = INT +1 Max. Scan Time
Max. Scan Time
T4 = SD8864, SD8874, SD8884, or SD8894 (depending on the communication channel)
T5
T2 = INT +1 Max. Scan Time
Max. Scan Time
T5 = T6 + T7 + T8 + T9 + T10
T6 = less than 1 ms
The slave processing time (Ts) can be calculated in milliseconds (ms) as follows.
Character length (bits):
Start bit (1 bit) + Data Length (8 bit) + Parity bit (0 bit or 1 bit) + Stop bit (1 bit or 2 bit)
29 SPECIFICATIONS
29.2 Link Time 523
Example link time calculations:
T4 = 5 ms
5 ms
T1 = INT +1 5 ms = (1 + 1) 5 ms = 10 ms
5 ms
T6 1 ms
8 Bytes 10 Bits
T7 = 1000 (ms) + 1 ms ¬ 5.2 ms
19200 bps
T8 = 10 ms
25 Bytes 10 Bits
T9 = 1000 (ms) + 1 ms ¬ 14.0 ms
19200 bps
33 ms
T2 = INT +1 5 ms = (6 + 1) 5 ms = 35 ms
5 ms
T3 1 ms
Tm = 5 ms + 35 ms + 1 ms = 41 ms
8 Bytes 10 Bits
T14 = 1000 (ms) + 1 ms ¬ 5.2 ms
19200 bps
T15 = 5 ms
25 Bytes 10 Bits
T13 = 1000 (ms) + 1 ms ¬ 14.0 ms
19200 bps
Ts = 15.2 ms + 1 ms + 14.0 ms = 30.2 ms
29 SPECIFICATIONS
524 29.2 Link Time
30 MODBUS COMMUNICATION SPECIFICATIONS
This chapter explains the details of MODBUS Protocol for MODBUS serial communication and the MODBUS standard
functions supported by the FX5.
• For the list of supported MODBUS standard functions, refer to Page 526 List of supported MODBUS standard
functions.
• For usage of the supported MODBUS standard functions, refer to Page 538 FUNCTION.
*2 The address number that can be used in FX5 master station differs depending on the version. (Page 935 Added and Changed
Functions)
Refer to Page 526 Frame mode for the data size of each area.
END
Start Address field Function code Data Error check Address field
(Start)
3.5 character 3.5 character
1 byte 1 byte 0 to 252 bytes 2 bytes 1 byte
time or more time or more
The error check in the RTU mode is conducted by CRC (Cyclic Redundancy Check).
The CRC field is two bytes, containing a 16 bit binary value. The CRC value is calculated by the transmitting
device, which appends the CRC to the message. The device that receives recalculates a CRC during receipt
of the message, and compares the calculated value to the actual value it received in the CRC field. If the two
values are not equal, an error occurs. (For procedure for generating of CRC, refer to Page 897 Frame
Specifications)
For RS-232C
Use an RS-232C cable of the RS-232 standard within 15 m.
31
For RS-485
Use shielded twisted pair cables for connecting RS-485 communication equipment.
Example of two-pair cable structural drawing Example of three-pair cable structural drawing
31 WIRING
31.1 Wiring Procedure 527
Connecting cables
The table below shows applicable cables and tightening torques.
Item Number of Cable size Tightening
connected electric Solid wire, Stranded wire Wire ferrule with torque
wires per terminal insulating sleeve
FX5U CPU module built-in RS-485 port 1-wire connection 0.2 to 0.5 (24 to 20 AWG) 0.2 to 0.5 (24 to 20 AWG) 0.22 to 0.25 Nm
2-wire connection 0.2 (24 AWG)
FX5UC CPU module built-in RS-485 port 1-wire connection 0.3 to 0.5 (22 to 20 AWG) 0.3 to 0.5 (22 to 20 AWG)
FX5-485-BD
2-wire connection 0.3 (22 AWG)
FX5-485ADP
Precautions
Do not tighten terminal screws with torque beyond the specified range. Otherwise it may cause equipment failure or
malfunction.
5 mm 9 mm
6 mm 8 mm
2 to 2.5 mm 2.6 mm
10.5 to 12 mm 14 mm
<Reference>
Item Manufacturer Model name Crimping tool
FX5U CPU module built-in RS-485 port Phoenix Contact GmbH & Co. KG AI 0.5-6WH CRIMPFOX 6
CRIMPFOX 6T-F
FX5UC CPU module built-in RS-485 port AI 0.5-8WH
FX5-485-BD
FX5-485ADP
31 WIRING
528 31.2 Selecting Connection
■Tool
For tightening the terminal, use a commercially available small screwdriver with straight tip that is not
widened toward the end as shown below.
■Precautions
With straight tip
If the diameter of the screwdriver tip is too small, the required tightening torque cannot be achieved. To
achieve the appropriate tightening torque shown in the previous page, use the following screwdriver or its
equivalent (grip diameter: approximately 25mm).
0.4 mm 2.5 mm
<Reference>
Manufacturer Model
Phoenix Contact GmbH & Co. KG SZS 0.42.5
31
31 WIRING
31.2 Selecting Connection 529
Termination resistor setting
Make sure to provide a termination resistor at each end of a line.
Built-in RS-485 port, FX5-485-BD, and FX5-485ADP have a built-in termination resistor.
Set the termination resistor selector switch accordingly.
Wiring Termination resistor selector switch
Two-pair wiring 330
One-pair wiring 110
FX5U CPU module built-in RS-485 port FX5UC CPU module built-in RS-485 port
Termination
resistor selector
switch
Termination
resistor
selector switch
• FX5-485-BD
Termination
resistor selector
switch
• FX5-485ADP
Termination
resistor
selector switch
31 WIRING
530 31.2 Selecting Connection
31.3 Connection Diagram
Representative wiring examples are shown in this section. When pin numbers in the counterpart equipment are different, wire
the pins as shown below.
SG SG SG SG
31 WIRING
31.3 Connection Diagram 531
Two-pair wiring
Master Slave Slave Slave
built-in RS-485 port built-in RS-485 port built-in RS-485 port built-in RS-485 port
FX5-485-BD FX5-485-BD FX5-485-BD FX5-485-BD
FX5-485ADP FX5-485ADP FX5-485ADP FX5-485ADP
SDA SDA SDA SDA
(TXD+) (TXD+) (TXD+) (TXD+)
*2
*2
SDB SDB SDB SDB
(TXD-) (TXD-) (TXD-) (TXD-)
*2
RDB RDB RDB RDB
Termination (RXD-) (RXD-) (RXD-) (RXD-) Termination
resistor: resistor:
330 330
2
SG SG SG SG 2
31.4 Grounding
Grounding should be performed as stated below.
• Perform Class-D grounding. (Grounding resistance: 100 or less)
• Independent grounding should be performed for best results. If the PLC cannot be grounded independently, perform the
"Shared grounding" shown below.
For details, refer to User's Manual (Hardware) of the CPU module used.
31 WIRING
532 31.4 Grounding
32 COMMUNICATION SETTING
This chapter explains the setup method for using MODBUS serial communication with an FX5.
Window
The following screen will be displayed if "MODBUS_RTU Communication" is set for Communication Protocol Type.
■Basic Settings
■Fixed Setting
*1 When set to "Latch" by SM/SD Setting, setting values of the Host Station No. can be changed through special registers. (Refer to
Page 537 Latch setting.) When other than 1 is set for the special register of a channel that is already set as a master station (station
number: 0) by parameter, the channel does not function as a slave station. In addition, when 0 is set for the special register of a channel
that is already set as a slave station (station number: 1 to 247) by parameter, the channel does not function as a master station.
*2 Set master station side broadcast delay as equal to one or more scan times of the slave station.
32 COMMUNICATION SETTING
32.1 Setup Method for MODBUS Serial Communication 533
■MODBUS Device Assignment
■SM/SD Setting
Window
The following screen will be displayed, if Extended Board to be used is set up and "MODBUS_RTU Communication" is set
Communication Protocol Type.
■Basic Settings
All screens and setting fields other than extended board are the same as "Using the CPU module". (Refer to Page 533
Using the CPU module.)
32 COMMUNICATION SETTING
534 32.1 Setup Method for MODBUS Serial Communication
Using an expansion adapter
When an expansion adapter is used, add expansion adapter to Module Information.
Navigation window [Parameter] [Module Information] Right-click [Add New Module]
After adding the expansion adapter, make settings on the screen displayed from the following operation.
Navigation window [Parameter] [Module Information] [ADP1 to ADP6] [Module Parameter]
Window
Each setting screen is the same as "Using the CPU module". (Refer to Page 533 Using the CPU module.)
Window
<Detailed Setting> of "MODBUS Device Assignment" (Page 534 MODBUS Device Assignment) is double-clicked.
32
32 COMMUNICATION SETTING
32.1 Setup Method for MODBUS Serial Communication 535
■Available devices
The following table shows devices that can be set to coil, input, input register, and holding register.
List of devices Allocable MODBUS device
Device type Device Coil Input Input register Holding register
Special relay SM *1 *1
Special register SD
Input X *1 *1
Output Y *1 *1
Internal relay M *1 *1
Latch relay L *1 *1
Annunciator F *1 *1
Link relay B *1 *1
Data register D
Link register W
Timer Coil TC *1 *1
Contact TS *1 *1
Current value TN
*1
Retentive timer Coil STC *1
Contact STS *1 *1
Current value STN
Counter Coil CC *1 *1
Contact CS *1 *1
Current value CN
Long counter Coil LCC *1 *1
*1
Contact LCS *1
Current value LCN *2 *2
*1
Link special relay SB *1
Link special register SW
Step relay S *1 *1
Index register Z
Index register LZ *2 *2
File register R
Extended file register ER
*1 Set the device number and the allocating points in multiples of 16. In the case that the number of points is not a multiple of 16, a
parameter setting error occurs in GX Works3.
*2 Because MODBUS devices are long type devices, 2 points are allocated.
Precautions
• The same device cannot be set for a coil and an input.
• The same device cannot be set for an input register and a holding register.
• A parameter setting error occurs in GX Works3 when the total of selected head device number and the allocated points
exceed the valid range for the selected PLC device.
32 COMMUNICATION SETTING
536 32.1 Setup Method for MODBUS Serial Communication
Latch setting
In latch setting, it can be set up whether the host number should operate using the GX Works3 parameter or special register.
• In the case of "Do Not Latch", the host number operates using the value set by the parameter setting of GX Works3.
• In the case of "Latch", special relays corresponding to each CH turn on and the host number operates using the value set
by special registers. Value of special registers can be changed by program. The following table shows special relays and
special registers corresponding for each channel.
CH Special relays Special registers Corresponding parameter
CH1 SM8861 SD8861 Host station number setting
CH2 SM8871 SD8871
CH3 SM8881 SD8881
CH4 SM8891 SD8891
Setting value of special registers or parameter are reflected when the power supply is turned from off to on or
reset.
Precautions
When the SD latch setting valid information is set to off due to memory clear and so on, while the parameter is set to "Latch",
the parameter setting becomes valid when the power is turned off to on or reset.
32 COMMUNICATION SETTING
32.1 Setup Method for MODBUS Serial Communication 537
33 FUNCTION
This chapter explains the function of MODBUS serial communication.
ADPRW
This instruction allows to communicate (read/write data) with the slave station by the function code which is supported by the
master.
Ladder diagram Structured text
ENO:=ADPRW (EN, s1, s2, s3, s4, s5d1, d2);
FBD/LD
EN ENO
s1 d2
s2
s3
s4
s5d1
Setting data
■Descriptions, ranges, data types
Operand Description Range Data type Data type (label)
(s1) Slave station No. 0 to F7H*1 16-bit signed binary ANY16
(s2) Function code (Refer to Page 539) 01H to 06H, 0FH, 10H 16-bit signed binary ANY16
(s3) Function parameter depending on the function code 0 to FFFFH 16-bit signed binary ANY16
(Refer to Page 539)
(s4) Function parameter depending on the function code 1 to 2000 16-bit signed binary ANY16
(Refer to Page 539)
(s5)/(d1) Function parameter depending on the function code Bit/16-bit signed binary ANY_ELEMENTARY
(Refer to Page 539)
(d2)*2 Start bit device number to which communication execution Bit ANYBIT_ARRAY
status is output (Number of elements:
3)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
*1 Slave station No. that can be used in FX5 master station differs depending on the version. (Page 935 Added and Changed
Functions)
*2 Three devices are occupied from the device specified in (d2). Make sure that these devices are not used in other controls.
33 FUNCTION
538 33.1 Master Function
■Available devices
Operand Bit Word Double word Indirect Constant Others
X, Y, M, L, SM, F, T, ST, C, D, W, U\G Z LC LZ specification K, H E $ 33
B, SB, S SD, SW, R
(s1) *1
(s2) *1
(s3) *1
(s4) *1
(s5)/(d1) *1
(d2) *1
Processing details
• Function code (s2) is operated on slave station No. (s1) according to parameters (s3), (s4), and (s5)/(d1). Use 0 as the
slave station No. (s1) for broadcast commands. (Refer to Page 539 Function code and function parameters.)
• The communication execution status (d2) is output according to each status of the ADPRW instruction such as
communicating/completed normally/completed with an error. (Refer to Page 540 Communication execution status
output device.)
33 FUNCTION
33.1 Master Function 539
(s2): Function code (s3): MODBUS address (s4): Access points (s5)/(d1): Start device storing data
Applicable device: (Refer to the following table of
the applicable devices.)
05H MODBUS address: 0 (fixed) Start device storing write data
Write coils 0000H to FFFFH
Applicable Word device
device*2 (Refer to the following table of
the applicable devices.)
Bit device
(Refer to the following table of
the applicable devices.)
Number of 1 point
occupied points
06H MODBUS address: 0 (fixed) Start device storing write data
Write holding registers 0000H to FFFFH Applicable device (Refer to the following table of
the applicable devices.)
Number of 1 point
occupied points
0FH MODBUS address: Access points: Start device storing write data
Write multiple coils 0000H to FFFFH 1 to 1968
Applicable device Word device
(Refer to the following table of
the applicable devices.)
Bit device
(Refer to the following table of
the applicable devices.)
Number of Word device
occupied points ((s4) + 15) 16 points*1
Bit device
(s4) points
10H MODBUS address: Access points: Start device storing write data
Write multiple holding 0000H to FFFFH 1 to 123
Applicable device (Refer to the following table of
registers
the applicable devices.)
Number of (s4) points
occupied points
*1 SM8401 (CH1) or SM8421 (CH2) turn on, when SM/SD for FX3 series compatible is set.
*2 (d2) + 1 turns on when the instruction is completed normally and (d2) + 2 turns on when the instruction is completed with an error, so
that whether the instruction is completed normally or with an error can be judged.
33 FUNCTION
540 33.1 Master Function
Precautions
• The channel which uses the ADPRW instruction must be set to the MODBUS master station by GX Works3. (Page 533 33
Fixed Setting) When it is not set, the device does not operate even though the ADPRW instruction is executed. (Also no
error occurs.)
• If the program stops due to error, the device value is turned off if a non-latch device is designated as the communication
execution status output device. Specify a latch device to keep the communication state output.
Available communication channels differs depending on the CPU module and system configuration.
For communication channels, refer to Page 518 System Configuration.
The devices of "For FX3 compatibility" operate in the channel which is specified by the SM/SD for
compatibility in communication setting.
For compatible SM/SD, refer to Page 533 COMMUNICATION SETTING.
33 FUNCTION
33.2 Slave Function 541
List of related devices
Special relays
The table shows the special relays used for the FX5 MODBUS serial communication.
setting valid
*1 The devices vary depending on the latch setting. The device becomes R when the Latch setting is "Do not Latch", and R/W when the
latch setting is "Latch".
33 FUNCTION
542 33.3 Related Devices
Special registers
The table shows the special registers used for the FX5 MODBUS serial communication.
33
■Only for FX5
R: Read only, R/W: Read/write
Device number Name Valid Details R/W
CH1 CH2 CH3 CH4
SD8500 SD8510 SD8520 SD8530 Serial communication error Master/ Stores the current error code generated during serial R
code Slave communication.
SD8501 SD8511 SD8521 SD8531 Serial communication error Master/ Stores current error details. R
details Slave
SD8502 SD8512 SD8522 SD8532 Serial communication Master/ Stores the communication properties in the CPU module. R
setting Slave
SD8503 SD8513 SD8523 SD8533 Serial communication Master/ Stores the mode of serial communication being executed. R
operation mode Slave
SD8800 SD8810 SD8820 SD8830 Current retry value Master/ Stores the current value of retries of when a R
Slave communication retry is executed due to slave response
timeout.
SD8861 SD8871 SD8881 SD8891 Host station number Master/ Stores the host station number setting value. *1
Slave
SD8862 SD8872 SD8882 SD8892 Slave response timeout Master/ Stores the slave response timeout setting value. R
Slave
SD8863 SD8873 SD8883 SD8893 Broadcast delay Master/ Stores the broadcast delay setting value. R
Slave
SD8864 SD8874 SD8884 SD8894 Message to message delay Master/ Stores the message to message delay setting value. R
Slave
SD8865 SD8875 SD8885 SD8895 Timeout retry count Master/ Stores the timeout retry count setting value. R
Slave
*1 The devices vary depending on the latch setting. The device becomes R when the Latch setting is "Do not Latch", and R/W when the
latch setting is "Latch".
33 FUNCTION
33.3 Related Devices 543
Details of related devices
SM8029 is also used as the execution completed flag for other instructions (such as positioning instructions).
When using SM8029, provide the contact just under the instruction whose execution completion is to be
checked.
Precautions
Do not turn ON with program or engineering tool.
The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, or the next ADPRW
instruction is executed.
Precautions
Do not turn ON with program or engineering tool.
The device is cleared when the power supply is turned from off to on, reset, or set from STOP to RUN.
Precautions
Do not turn ON with program or engineering tool.
This device does not turn OFF even if normal communication is restored. The device is cleared when the power supply is
turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection Reset Completion) is turned on, or the next
ADPRW instruction is executed.
33 FUNCTION
544 33.3 Related Devices
MODBUS communication error (latched)
This device checks if an error occurs during MODBUS serial communication.
33
R: Read only
For FX3 series compatibility Description R/W
CH1 CH2
SM8403 SM8423 Turns on once an error occurs during MODBUS serial communication. R
Precautions
Do not turn ON with program or engineering tool.
The device is cleared when the power supply is turned from off to on, reset, or set from STOP to RUN.
Precautions
Do not turn ON with program or engineering tool.
This device does not turn OFF even if normal communication is restored. The device is cleared when the power supply is
turned from off to on, reset, set from STOP to RUN, or SM50 (Error Detection Reset Completion) is turned on.
Retry
This device checks if a retry occurs during MODBUS serial communication.
R: Read only
Only for FX5 For FX3 series Description R/W
compatibility
CH1 CH2 CH3 CH4 CH1 CH2
SM8801 SM8811 SM8821 SM8831 SM8408 SM8428 Turns on while the master sends retries when the slave fails to R
respond in time.
Precautions
Do not turn ON with program or engineering tool.
The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection
Reset Completion) is turned on, or the next ADPRW instruction is executed.
33 FUNCTION
33.3 Related Devices 545
Timeout
This device checks if a timeout occurs during MODBUS serial communication.
R: Read only
Only for FX5 For FX3 series Description R/W
compatibility
CH1 CH2 CH3 CH4 CH1 CH2
SM8802 SM8812 SM8822 SM8832 SM8409 SM8429 Turns on if a response timeout occurs. R
Precautions
Do not turn ON with program or engineering tool.
The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection
Reset Completion) is turned on, or the next ADPRW instruction is executed.
If the number of retries is 1 or more, the error flag (Page 849 Error flags) is not set until the set number of retries fail by
timeout (or another failure).
communication parameter.
*1 The devices vary depending on the Latch Setting. The device becomes R when the Latch setting is "Do not Latch", and R/W when the
Latch setting is "Latch".
Precautions
Do not turn ON with program or engineering tool.
The device is set when the power supply is turned from off to on or reset.
Precautions
Do not change the device value using a program or an engineering tool.
The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, or SM50 (Error Detection
Reset Completion) is turned on, only in the master.
33 FUNCTION
546 33.3 Related Devices
Serial communication error details
This device stores the current error details during serial communication. (Page 849 MODBUS Serial Communication)
33
R: Read only
Only for FX5 For FX3 series Description R/W
compatibility
CH1 CH2 CH3 CH4 CH1 CH2
SD8501 SD8511 SD8521 SD8531 SD8403 SD8423 Stores the current error details generated during serial R
communication.
Precautions
Do not change the device value using a program or an engineering tool.
The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, or SM50 (Error Detection
Reset Completion) is turned on, only in the master.
The following table shows the parameter descriptions of the communication format.
Bit Name Description
0 (bit = OFF) 1 (bit = ON)
b0
b1, b2 Parity bit (b2, b1) = (0, 0): None
(b2, b1) = (0, 1): Odd
(b2, b1) = (1, 1): Even
b3 Stop bit 1bit 2bit
b4 to b7 Baud rate (bps) (b7, b6, b5, b4) = (0, 0, 1, 1): 300
(b7, b6, b5, b4) = (0, 1, 0, 0): 600
(b7, b6, b5, b4) = (0, 1, 0, 1): 1200
(b7, b6, b5, b4) = (0, 1, 1, 0): 2400
(b7, b6, b5, b4) = (0, 1, 1, 1): 4800
(b7, b6, b5, b4) = (1, 0, 0, 0): 9600
(b7, b6, b5, b4) = (1, 0, 0, 1): 19200
(b7, b6, b5, b4) = (1, 0, 1, 0): 38400
(b7, b6, b5, b4) = (1, 0, 1, 1): 57600
(b7, b6, b5, b4) = (1, 1, 0, 1): 115200
b8 to b15
Precautions
Do not change the device value using a program or an engineering tool.
The setting value changes when the power supply is turned from off to on or reset.
33 FUNCTION
33.3 Related Devices 547
Operation mode display
This device stores the operation mode of the serial communication being executed.
R: Read only
Only for FX5 For FX3 series Description R/W
compatibility
CH1 CH2 CH3 CH4 CH1 CH2
SD8503 SD8513 SD8523 SD8533 SD8419 SD8439 0: MELSOFT connection or MC protocol R
3: N:N Network Communication
5: Non-Protocol Communication
6: Parallel Link Communication
7: Inverter Communication
9: MODBUS RTU Communication
12: Predefined protocol support
Other than above: Not used
Precautions
Do not change the device value using a program or an engineering tool.
The device is cleared when ADPRW instruction is executed.
Precautions
Do not change the device value using a program or an engineering tool.
The device is cleared when the power supply is turned from off to on, reset, set from STOP to RUN, SM50 (Error Detection
Reset Completion) is turned on, or the next ADPRW instruction is executed.
*1 The devices vary depending on the Latch Setting. The device becomes R when the Latch setting is "Do not Latch", and R/W when the
Latch setting is "Latch".
Precautions
"Do Not latch"
Do not change the device value using a program or an engineering tool.
"Latch"
The device value can be changed by the program.
Change "Do Not Latch" to "Latch"
The setting value is reflected when the power supply is turned from on to off or reset, after parameter write from an
engineering tool.
33 FUNCTION
548 33.3 Related Devices
Slave response timeout
This device stores the slave response timeout setting value.
33
R: Read only
Only for FX5 Description R/W
CH1 CH2 CH3 CH4
SD8862 SD8872 SD8882 SD8892 Stores the parameters (slave response timeout) set by an engineering R
tool.
Precautions
The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is
executed.
Broadcast delay
This device stores the broadcast delay setting value.
R: Read only
Only for FX5 Description R/W
CH1 CH2 CH3 CH4
SD8863 SD8873 SD8883 SD8893 Stores the parameters (broadcast delay) set by an engineering tool. R
Precautions
The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is
executed.
Precautions
The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is
executed.
Precautions
The setting value is reflected when the power supply is turned from off to on, reset, or the next ADPRW instruction is
executed.
33 FUNCTION
33.3 Related Devices 549
34 CREATING PROGRAMS
This chapter explains an example of creating programs for the master in MODBUS serial communication.
RST M0
Driving contact OFF
M12
Abnormal completion
processing
Instruction
completed
abnormally RST M12
RST M0
Driving contact OFF
Program for Writing Multiple Registers
Write Multiple Registers to Slave 03H
M1 Slave address: 03H
ADPRW H3 H10 K0 K4 D1000 M20 Function code: 10H
MODBUS address: 0
Device count: 4
Start device storing write data: D1000
M21 The value of D1000 to D1003 of the
Normal completion
processing Master is written to MODBUS
Instruction Address 0 and onward for Slave
completed 03H.
normally RST M21
RST M1
Driving contact OFF
M22
Abnormal completion
processing
Instruction
completed
abnormally RST M22
RST M1
Driving contact OFF
34 CREATING PROGRAMS
550 34.1 Creating Programs for the Master Station
34.2 Cautions on Program Creation
• Make sure the driving contact of the ADPRW instruction does not turn off until the instruction has been completed.
• For the ADPRW instruction, a start timing of communication differs depending on the condition at the time of driving. When
the ADPRW instruction is driven alone, communication is instantaneously started. When multiple ADPRW instructions are
simultaneously driven, after communication by the former driven ADPRW instruction is completed, the communication by 34
the latter driven ADPRW instruction is started. Make sure the driving contact of the ADPRW instruction does not turn off
until the instruction has been completed.
• When using the Read coils function or Read inputs function in the Master with a word device (i.e. D, or R) as the destination
device, only the number of bits assigned in the device count of the ADPRW instruction will be overwritten. The remaining
bits of the word device will not be affected.
34 CREATING PROGRAMS
34.2 Cautions on Program Creation 551
MEMO
34 CREATING PROGRAMS
552 34.2 Cautions on Program Creation
PART 5
PART 5 SLMP
35 OUTLINE
37 MESSAGE FORMAT
38 3E FRAME COMMANDS
39 1E FRAME COMMANDS
553
35 OUTLINE
This manual describes the compatible devices, access ranges, communication procedures, and message formats of the
SLMP.
When transferring data using SLMP, always refer to Page 558 SLMP DATA COMMUNICATION.
Hub
SLMP communication
HMI
The message format of each SLMP is the same as that of the following MC protocols frames.
• 3E frame: QnA compatible 3E frame of MC protocol
• 1E frame: A compatible 1E frame of MC protocol
The external devices used with the above MC protocols can be connected to SLMP compatible devices.
For details on MC protocol, refer to the following manual.
MELSEC Communication Protocol Reference Manual
Applications
• Device data in an Ethernet-equipped module can be written or read from a personal computer or an HMI by using SLMP.
• Writing and reading the device allows operation monitoring, data analyzing, and production managing of an Ethernet-
equipped module by a personal computer or an HMI.
• External illegal access can be prevented by the remote password function.
35 OUTLINE
554 35.1 Outline of SLMP
Data communication procedures
The following shows the flow for starting SLMP communication. For details, refer to the following.
Page 90 SLMP FUNCTION
1. Connecting cables and external devices
Make the connections for SLMP communication.
2. Setting parameters
Configure the module parameters with the engineering tool.
100 100
Reading devices
105 105
Request message
Ethernet
Response message
35 OUTLINE
35.2 Features of SLMP 555
Connecting an external device used with MC protocol
An external device that uses the QnA compatible 3E frame of MC protocol and A compatible 1E frame of MC protocol can be
connected to an Ethernet-equipped module directly.
External device (MC protocol)
Ethernet
SLMP-compatible Switching hub SLMP-compatible
device device
External device
35 OUTLINE
556 35.2 Features of SLMP
Easy SLMP communication with the predefined protocol support function
SLMP communication can be easily used with the predefined protocol support function of the engineering tool.
Like external devices communicating on SLMP, CPU modules can control SLMP-compatible devices.
35
SLMP-compatible device
Request message
Read command of internal memory
SLMP
Header Memory Head memory
Read point
type number
Response message
35 OUTLINE
35.2 Features of SLMP 557
36 SLMP DATA COMMUNICATION
This chapter describes the SLMP data communication by which the external equipment reads or writes data to an Ethernet-
equipped module.
There are 2 types of ASCII code: ASCII code (X, Y OCT) and ASCII code (X, Y HEX).
The specification method of the device number for the X (input) and Y (output) to be accessed is different from
each other. (Page 611 Device range, Page 668 Device range)
• ASCII code (X, Y OCT): octal
• ASCII code (X, Y HEX): hexadecimal
Unless otherwise specified, the both of them are described as ASCII code.
For supported versions of ASCII code (X, Y HEX) for the FX5U/FX5UC CPU module, refer to Page 935
Added and Changed Functions.
3E frame
• The message format is the same as the QnA compatible 3E frame of MC protocol.
• The main purpose of the frame is to access all the devices of the Ethernet-equipped module from the external equipment.
• The frame enables access to CC-Link IE Controller Network and CC-Link IE Field Network.
When using binary codes, the communication time will decrease since the amount of communication data is
reduced by approximately half comparing to using ASCII codes.
1E frame
• The message format is the same as the A compatible 1E frame of MC protocol.
• This frame is designed mainly to facilitate access to Ethernet-equipped module devices from the external equipment.
The communication time of 1E frame is shorter than 3E frame because the amount of communication data by
the 1E frame is smaller compared to 3E frame.
SLMP frame
Frame Type of the network which connects the Reference
external device with the connecting stations
Ethernet communication frame Ethernet Page 562 MESSAGE FORMAT
(3E/1E frame)
Access range 36
External device
A
Ethernet A
(Command (Command
External equipment
message) message)
(Response (Response
Ethernet-equipped module
message) message)
External device
Ethernet-equipped module
Step 0 END Step 0 END Step 0 END Step 0 END
External device
Ethernet-equipped module
END END END END END
• Access between the external equipment and Ethernet-equipped module is processed at each END
processing when the Ethernet-equipped module is running for a command request. (The scan time
becomes longer by the processing time of the command request.)
• When accesses are requested simultaneously to the Ethernet-equipped module from multiple external
equipment, the processing requested from the external device may be on hold until END processing is
performed several times depending on the request timing.
The link time between Ethernet modules varies depending on the usage of other intelligent function modules.
Link time
■Calculation method
Calculate the minimum processing time of the SLMP communication by the following calculation formula.
However, the processing time may become longer depending on the load of the network (how much a line is crowded),
window size of each connecting device, number of connections to be used simultaneously, and system configuration. As a
36
guideline, recognize the value calculated by the following calculation formula as the processing time when a communication is
executed by only one connection.
• Minimum processing time of the SLMP communication (for batch read or batch write)
Tfs = Ke + (Kdt Df) + Scr Number of scans required for processing + ACK processing time of external equipment
Tfs: Time from when the request data of a personal computer is received until the CPU module completes the processing
(Unit: ms)*1
Ke, Kdt: Constant (Refer to the following table.)
Df: Number of words of the request data + Number of words of the response data (application data part)
Scr: Scan time
*1 The following shows the timing from when the request data of a personal computer is received until the CPU module completes the
processing.
External device
(personal computer)
Ex.
[Calculation example 1]
Time from when the request data of a personal computer is received until the processing is completed, when a TCP/IP
communication is executed between personal computers and 32 points data read from the data register (D) of own station by
the SLMP communication in binary code (Unit: ms)
The scan time of the mounted station is 40 ms.
Tfs = 1 + (0.001 32) + 40 1 + ACK processing time of external equipment
[Calculation example 2]
Time from when the request data of a personal computer is received until the processing is completed, when a TCP/IP
communication is executed between personal computers and 32 points data written to the data register (D) of own station by
the SLMP communication in binary code (Unit: ms)
The scan time of the mounted station is 40 ms.
Tfs = 1 + (0.001 32) + 40 1 + ACK processing time of external equipment
37.1 3E Frame
This section describes the message format for each command when performing the data communication using the 3E frame.
Data format
The data format consists of header and application data.
■Request message
Header Application data
Subheader Request Request Request Request Request Monitoring Command Subcommand Request
destination destination destination destination data timer data
network station No. module I/O multidrop length
No. No. station No.
■Response message
Header Application data
Subheader Request Request Request Request Response End Response
destination destination destination destination data length code data
network station No. module I/O multidrop
No. No. station No.
Header
This header is for TCP/IP and UDP/IP.
Add the header for external equipment to Ethernet-equipped module (command message) at the external equipment side
before sending the message (normally the header is added automatically).
It is not necessary to set the header for Ethernet-equipped module to external equipment (response message) by the user
because the header is added by the Ethernet-equipped module automatically.
37 MESSAGE FORMAT
562 37.1 3E Frame
Application data
Application data is divided into subheader and text.
The subheader indicates whether a message is a command message or a response message. (Page 563 Subheader
configuration)
Text is the request data (command) and the response date (response) in each function. (Page 602 3E FRAME
COMMANDS)
It is not necessary to set the response to a command from the external equipment by the user because the
response is created and sent by the Ethernet-equipped module.
Subheader configuration
This section describes the subheader configuration.
Control procedure
This section describes the control procedures and the format of the application data when performing the data
communication.
The (Thick line) part shown in the message explanation diagram (Page 610 Device Access) of this section are items
common to all commands and correspond to the * portion of the message explanation diagrams indicated in this chapter.
For the data contents and the data specification method of the (Thick line) part, refer to Page 568 Application data
specification items.
37 MESSAGE FORMAT
37.1 3E Frame 563
Data code (ASCII/binary) to be used when communicating, it is determined by the parameters of GX Works3.
[CPU module]
Navigation window [Parameter] Module model [Module Parameter] [Ethernet Port] [Basic
Settings] [Own Node Settings] "Communication Data Code"
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Basic
Settings] [Own Node Settings] "Communication Data Code"
Subheader
Network number
station number
Request destination
number
multi-drop station
Request destination
Monitoring timer
Command
Subcommand
(Data name)
*1
H L H L H - - L H L H - - L H - - L H - - L H - - L
(Example) 5 0 0 0 0 0 F F 0 3 F F 0 0 0 0 1 8 0 0 0 0
35H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 31H 38H 30H 30H 30H 30H
Subheader
Network number
station number
Request destination
number
multi-drop station
Request destination
End code
*1
H L H L H - - L H L H - - L H - - L
D 0 0 0 0 0 F F 0 3 F F 0 0 0 0 0 C 0 0 0 0
44H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 30H 43H 30H 30H 30H 30H
Subheader
(access station)
Network number
(access station)
station number
Request destination
number
multi-drop station
Request destination
other than 0H
End code
(responding station)
Network number
number
multi-drop station
Request destination
(responding station)
station number
Request destination
Command
Subcommand
(For C051H)
H L H L H - - L H L H - - L H - - L H L H L H - - L H L H - - L H - - L
D 0 0 0 0 0 F F 0 3 F F 0 0 0 0 1 6 C 0 5 1 0 0 F F 0 3 F F 0 0
44H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 31H 36H 43H 30H 35H31H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H
(22 bytes)
*1 The order of data items differs depending on the command or subcommand. For details, refer to Page 610 Device Access.
37 MESSAGE FORMAT
564 37.1 3E Frame
• When data is written from external equipment to an Ethernet-equipped module
Subheader
Network number
station number
Request destination
number
multi-drop station
Request destination
Monitoring timer
Command
Subcommand
(Data name)
*1
H L H L H - - L H L H - - L H - - L H - - L H - - L
(Example) 5 0 0 0 0 0 F F 0 3 F F 0 0 0 0 2 0 0 0 0 0
35H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 32H 30H 30H 30H 30H 30H
Subheader
Network number
station number
Request destination
number
multi-drop station
Request destination
End code
H L H L H - - L H L H - - L H - - L
D 0 0 0 0 0 F F 0 3 F F 0 0 0 0 0 4 0 0 0 0
44H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 30H 34H 30H 30H 30H 30H
(4 bytes)
Subheader
(access station)
Network number
(access station)
station number
Request destination
number
multi-drop station
Request destination
other than 0H
End code
(responding station)
Network number
number
multi-drop station
Request destination
(responding station)
station number
Request destination
Command
Subcommand
(For C051H)
H L H L H - - L H L H - - L H - - L H L H L H - - L H L H - - L H - - L
D 0 0 0 0 0 F F 0 3 F F 0 0 0 0 1 6 C 0 5 1 0 0 F F 0 3 F F 0 0
44H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 31H 36H 43H 30H 35H31H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H
(22 bytes)
*1 The order of data items differs depending on the command or subcommand. For details, refer to Page 610 Device Access.
37 MESSAGE FORMAT
37.1 3E Frame 565
■When communicating data in binary code
• When data is read from an Ethernet-equipped module by external equipment
Network number
station number
Request destination
Monitoring timer
Command
Subcommand
(Data name)
*1
(Example) L H L H L H L H L H
50H 00H 00H FFH FFH 03H 00H 0CH 00H 00H 00H
Network number
station number
Request destination
End code
Subheader
*1
L H L H L H
D0H 00H 00H FFH FFH 03H 00H 06H 00H 00H 00H
Subheader
(access station)
Network number
other than 0H
End code
(responding station)
Network number
Command
Subcommand
(For C051H)
L H L H L H L H L H L H
D0H 00H 00H FFH FFH 03H 00H 0BH 00H 51H C0H 00H FFH FFH 03H 00H
(11 bytes)
*1 The order of data items differs depending on the command or subcommand. For details, refer to Page 610 Device Access.
37 MESSAGE FORMAT
566 37.1 3E Frame
37
567
37 MESSAGE FORMAT
37.1 3E Frame
The order of data items differs depending on the command or subcommand. For details, refer to Page 610 Device Access.
Request data area
Character area A
H
*1
Subcommand
((Example) For 12 bytes)
L
H
Error information area
• When data is written from external equipment to an Ethernet-equipped module
Command
L
Request destination
H
D0H 00H 00H FFH FFH 03H 00H 0BH 00H 51H C0H 00H FFH FFH 03H 00H
(11 bytes)
Subcommand multi-drop station number
Ethernet-equipped module (command message)
H
Request destination
H
L
Command
Request destination station
L
Network number
H
(For C051H)
(2 bytes)
H L
D0H 00H 00H FFH FFH 03H 00H 02H 00H 00H 00H
H
H
End code End code
other than 0H
Request data length
H L
H L
L
L
Request destination Request destination
H
Request destination
multi-drop station number multi-drop station number
Text (response)
Text (response)
module I/O number
L
H
H
Request destination Request destination
Request destination module I/O number
station number module I/O number
L
(When completed with error)
Network number Request destination Request destination station
Subheader Subheader
Header
Header Header
(Data name)
(Example)
*1
Application data specification items
This section describes the data contents and the specification method of common data items in the application data in each
message when performing the data communication using the 3E frame.
■Response message
Header Application data
Subheader Request Request Request Request Response End Response
destination destination destination destination data length code data
network station No. module I/O multidrop
No. No. station No.
Specify the request destination network number and request destination station number to be used as an access destination
in hexadecimal.
Specify the request destination network number and request destination station number according to installation conditions of
access destination stations based on the following table.
Data of the response message is a value set in the request message.
No. Access destination Station to be specified Request destination Request destination station
network number number
1*1 Connecting station 00H FFH
(Within the range indicated in No. 1 (Specify the fixed value indicated
in the figure below) on the right)
2 Other stations or relay station Access destination station 01 to EFH (1 to 239) 01 to 78H (1 to 120): Station
(Within the range indicated in No. 2 number
in the figure below) 7DH: Assigned control station/
Master station
7EH: Present control station/
Master station
3 Multi-drop connecting station via A station on the network where 01 to EFH (1 to 239) 01 to 78H (1 to 120): Station
network multi-drop connecting stations are number
(Within the range indicated in No. 3 connected 7DH: Assigned control station/
in the figure below) (In the figure below, [A] is Master station
specified) 7EH: Present control station/
Master station
37 MESSAGE FORMAT
568 37.1 3E Frame
Another station Another station
Multi-drop connection
Multi-drop Multi-drop Multi-drop
Connecting Relay connecting connecting connecting
External device station station station station station
Network Network
No. 1 No. n A
MELSEC iQ-R
series etc.
Ethernet
Ex.
When specifying the connecting station (network No.00H, station number FFH)
ASCII code 0 0 F
30H 30H 46H 46H
F Binary code
00H FFH
37
Network number Station number Network number Station number
Precautions
The stations of network number 240 to 255 cannot be accessed.
Ethernet-equipped module cannot perform multi-drop connection.
Ethernet-equipped module cannot perform connection via network.
37 MESSAGE FORMAT
37.1 3E Frame 569
Request destination module I/O number
■Request message
Header Application data
Subheader Request Request Request Request Request Monitoring Command Subcommand Request
destination destination destination destination data timer data
network station No. module I/O multidrop length
No. No. station No.
■Response message
Header Application data
Subheader Request Request Request Request Response End Response
destination destination destination destination data length code data
network station No. module I/O multidrop
No. No. station No.
Select the module number of the access destination from the table below.
When the send destination of the request message is a multi-drop connecting station that is connected to the request
destination station, set the I/O number (upper 3 digits) of the serial communication module (MELSEC iQ-R series or other
series) which is performing the multi-drop connection.
No. Module to be accessed*1 Request destination station
Request destination module I/O number
1*2 Own station 03FFH
2 Other station (control CPU) 03FFH
3 The module which is performing multi-drop connection with serial 0000H to 01FFH
communication module ("A" in the figure below), which is connected to the
network
Ex.
When specifying the own station (03FFH) as the request destination module I/O number
37 MESSAGE FORMAT
570 37.1 3E Frame
Request destination multi-drop station number
■Request message
Header Application data
Subheader Request Request Request Request Request Monitoring Command Subcommand Request
destination destination destination destination data timer data
network station No. module I/O multidrop length
No. No. station No.
■Response message
Header Application data
Subheader Request Request Request Request Response End Response
destination destination destination destination data length code data
network station No. module I/O multidrop
No. No. station No.
Specify the station number of the SLMP compatible device linked by the multi-drop connection in the access destination,
within the range shown in the table below.
37
When not specifying the SLMP compatible device linked by the multi-drop connection, set 00H.
No. Access station of external equipment Request destination multi-drop station number
1 Stations on the multi-drop connection Set the station number (00H to 1FH (0 to 31))
("F" in the figure below) ("F" in the figure below)
2 A station that relays the network and the multi-drop connection 00H (0)
("E" in the figure below)
3*1 Other than above 00H (0)
Ex.
When specifying 00H as the requested multi-drop station number
37 MESSAGE FORMAT
37.1 3E Frame 571
Request data length
■Request message
Header Application data
Subheader Request Request Request Request Request Monitoring Command Subcommand Request
destination destination destination destination data timer data
network station No. module I/O multidrop length
No. No. station No.
Specify the total data size from the Monitoring timer to the request data in hexadecimal. (Unit: byte)
Ex.
When the request data length is 24 (18H) bytes
Error information
37 MESSAGE FORMAT
572 37.1 3E Frame
Monitoring timer
■Request message
Header Application data
Subheader Request Request Request Request Request Monitoring Command Subcommand Request
destination destination destination destination data timer data
network station No. module I/O multidrop length
No. No. station No.
This timer is used to set the wait time until a response is returned after the SLMP-compatible device that has received a
request message from an external device sends a processing request to the accessed device.
• 0000H (0): Indefinitely waiting (waiting until the processing is completed)
• 0001H to FFFFH (1 to 65535)*1: Wait time (unit: 250ms)
*1 Supported only for Ethernet modules.
For normal data communication, it is recommended to use this message within the setting range shown in the following table
depending on the communication destination.
Access destination Monitoring timer
37
Other station 01H to 28H (0.25 to 10 seconds)
Ex.
Precautions
Specify "0000H" (indefinite wait) for the CPU module.
37 MESSAGE FORMAT
37.1 3E Frame 573
End code
■Response message
Header Application data
Subheader Request Request Request Request Response End Response
destination destination destination destination data length code data
network station No. module I/O multidrop
No. No. station No.
Ex.
Request data
■Request message
Header Application data
Subheader Request Request Request Request Request Monitoring Command Subcommand Request
destination destination destination destination data timer data
network station No. module I/O multidrop length
No. No. station No.
Set a command to be executed and data for the argument of the subcommand.
(Some commands and subcommands do not require the request data specification.)
For details on the request data, refer to the paragraph relating to the command to be executed. (Page 610 Device
Access)
Response data
■Response message
Header Application data
Subheader Request Request Request Request Response End Response
destination destination destination destination data length code data
network station No. module I/O multidrop
No. No. station No.
37 MESSAGE FORMAT
574 37.1 3E Frame
Error information
The request destination network number, request destination station number, request destination module I/O number, and
request destination multi-drop station number of the station which responded with errors are stored.
Numbers which differ from the requested station specified by the request message may be stored because the information of
the station which responded with errors is stored.
The command and the subcommand specified by the request message of the request data are stored.
Character area 37
■Request message
Header Application data
Subheader Request Request Request Request Request Monitoring Command Subcommand Request
destination destination destination destination data timer data
network station No. module I/O multidrop length
No. No. station No.
Character area
A and C
■Response message
Header Application data
Subheader Request Request Request Request Response End Response
destination destination destination destination data length code data
network station No. module I/O multidrop
No. No. station No.
Character area B
37 MESSAGE FORMAT
37.1 3E Frame 575
Communicating data (when communicating in ASCII code)
■When bit device memory is read or written
The bit device memory is handled in 1-bit (1-point) units or in 1-word (16-point) units.
The transfer data in each case is described below.
• In 1-bit (1-point) units
When the bit device memory is handled in 1-bit units, specify 1-point (1-byte) with an ASCII code, and express "1" (31H) for
ON and "0" (30H) for OFF. Specify for the number of devices starting from the head device in the order of device numbers.
Ex.
When indicating the on/off status of five devices starting from M10
Device Number of
Head device No. Data
code adevices
M * 0 0 0 0 1 0 0 0 0 5 1 0 1 0 1
4DH 2AH 30H 30H 30H 30H 31H 30H 30H 30H 30H 35H 31H 30H 31H 30H 31H
Ex.
When indicating ON/OFF status of 32 points from M16
Because devices are handled in 16 point units,
the number of device is "0002".
Devide Head device No. Number of Data Data
code devices
M * 0 0 0 0 1 6 0 0 0 2 A B 1 2 3 4 C D
4DH 2AH 30H 30H 30H 30H 31H 36H 30H 30H 30H 32H 41H 42H 31H 32H 33H 34H 43H 44H
A B 1 2 3 4 C D
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1: Indicates ON.
1 0 1 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 1
0: Indicates OFF.
M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
Head End
37 MESSAGE FORMAT
576 37.1 3E Frame
■When word device memory is read or written
One word device is expressed with a 1-word (4-byte) 4-digit ASCII code (hexadecimal). Specify for the number of devices
starting from the head device in 1-word units in the order from the most significant byte to the least significant byte (b15 to b0).
Ex.
When indicating the contents stored in the data registers D350 and D351
D * 0 0 0 3 5 0 0 0 0 2 5 6 A B 1 7 0 F
44H 2AH 30H 30H 30H 33H 35H 30H 30H 30H 30H 32H 35H 36H 41H 42H 31H 37H 30H 46H
37
5 6 A B 1 7 0 F
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15b14b13b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1: Indicates ON.
0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1
0: Indicates OFF.
37 MESSAGE FORMAT
37.1 3E Frame 577
Communicating data (When communicating data in binary code)
■When bit device memory is read or written
The bit device memory is handled in 1-bit (1-point) units or in 1-word (16-point) units.
The transfer data in each case is described below.
• In 1-bit (1-point) units
When the bit device memory is handled in 1-bit units, specify 1-point, 4 bits, (two points, 1 byte) with a binary code, "1" for ON
and "0" for OFF. Specify for the number of devices starting from the head device in the order of device numbers from the most
significant bit.
Ex.
When indicating the on/off status of five devices starting from M10
Head Device Number Data
device code of
number devices
00000AH 0005H
L - H L H
0AH 00H 00H 90H 05H 00H 10H 10H 10H
Ex.
When indicating ON/OFF status of 32 points from M16
Because devices are handled in 16 point units,
the number of device is "0002".
Head Device Number
device of Data Data
number code devices
000010H 0002H AB12H 34CDH
L - H L H L H L H
10H 00H 00H 90H 02H 00H 12H ABH CDH 34H
1 2 A B C D 3 4
b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11b10 b9 b8
1: Indicates ON.
0 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0
0: Indicates OFF.
M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M
23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 39 38 37 36 35 34 33 32 47 46 45 44 43 42 41 40
Head End
37 MESSAGE FORMAT
578 37.1 3E Frame
■When word device memory is read or written
One word device memory is expressed with a 1-word (2-byte) 4-digit binary code (hexadecimal). Specify for the number of
devices starting from the head device in 1-word units in the order from the least significant bytes (b7 to b0) to the most
significant bytes (b15 to b8).
Ex.
When indicating the contents stored in the data registers D350 and D351
Head Device Number
device of Data Data
number code devices
00015EH 0002H 56ABH 170FH
L - H L H L H L H
5EH 01H 00H A8H 02H 00H ABH 56H 0FH 17H
37
A B 5 6 0 F 1 7
b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11b10 b9 b8
1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 0 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1
1: Indicates ON.
0: Indicates OFF.
5 6 A B 1 7 0 F
b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1
When data other than integer value (real number, character string), is stored in the word device memory for
reading data, the stored value are read as integer value.
(Example 1) When a real number (0.75) is stored in D0 and D1, the value is read as the following integer
value.
• D0 = 0000H, D1 = 3F40H
(Example 2) When a character string (12AB) is stored in D2 and D3, the character string is read as the
following integer value.
• D2 = 3231H, D3 = 4241H
Reading and writing extension file registers and buffer memory areas are performed in the same way as those
of the word device memory.
37 MESSAGE FORMAT
37.1 3E Frame 579
Character areas
This section explains character areas in the control procedure (data area when communicating in binary code).
• Character areas differ depending on command to be used and contents to be specified. This section explains the data
common to the character area when the device memory to be read or written is specified directly.
• Character area data handled only by a certain command and not by others, is explained in the section that explains the
corresponding command.
Device code
Head device
Number of devices
External *
equipment
Character area B
H - - L H - - - - L H - - L
Device code
Head device
Number of devices
External *
equipment
H - - L H - - - - L H - - L
Ethernet-equipped module *
The data array and the data contents marked with * are shown in Page 562 Message format and control procedure.
37 MESSAGE FORMAT
580 37.1 3E Frame
Data of data area (when communicating in binary code)
■In the case of reading
Data area (corresponding to character area A)
Subcommand
Device code
Number of devices
External *
equipment Data area
(corresponding to
character area B)
L H L - H L H
37
Device code
Number of devices
of device points
Data on specified number
External *
equipment
L H L - H L H
Ethernet-equipped module *
The data array and the data contents marked with * are shown in Page 562 Message format and control procedure.
37 MESSAGE FORMAT
37.1 3E Frame 581
When communicating data in ASCII code
The value 0000H (0), or the following value (), is converted to a 4 digit (hexadecimal) ASCII code and sequentially
transmitted beginning from the most significant digit ("0").
When communicating data in binary code
The value 0000H, or the following 2-byte value (), is used for transmission.
The following figure shows the specification contents of the subcommand.
b15 b7 b6 b1 b0
0 0
■Device code
Device codes are data for identifying the device memory to be read or written.
Device codes are shown in Page 611 Device range.
When communicating data in ASCII code
Device codes are converted into 2-digit ASCII code (2-digit code/6-digit number specification) or 4-digit ASCII code (4-digit
code/8-digit number specification), and the device codes are sequentially sent beginning from the most significant digit. Use
capitalized code for alphabetical letter in ASCII code.
Ex.
In the case of input (X)
2 digit code/6 digit number specification X * 4 digit code/8 digit number specification X * * *
58H 2AH 58H 2AH 2AH 2AH
The input relay device code "X*" is sequentially sent from "X".
The second character "*" can be specified by a space (code: 20H).
When communicating data in binary code
Ex.
In the case of input (X)
2 digit code/6 digit number specification 4 digit code/8 digit number specification
9CH 00H 9CH
37 MESSAGE FORMAT
582 37.1 3E Frame
■Head device No. (device No.)
Data for specifying the number of the device to read data from or write data to. When specifying continuous device areas,
specify the head number of the device range. Specify the head device number by the expressing method for the relevant
device (octal, decimal, or hexadecimal number).
For the device number and expressing method, refer to Page 611 Device range.
When communicating data in ASCII code
The device number is converted to a 6-digit ASCII code (2-digit code/6-digit number specification) or 8-digit ASCII code (4-
digit code/8-digit number specification), and sequentially sent beginning from the most significant digit.
The "0" column of the most significant digit (in for example "001234", this refers to "0" of the first two characters) can also be
specified by a space (code: 20H).
Ex.
When the device number is "1234"
0 0 1 2 3 4 0 0 0 0 1 2 3 4
2 digit code/6 digit number specification
30H 30H 31H 32H 33H 34H
4 digit code/8 digit number specification
30H 30H 30H 30H 31H 32H 33H 34H 37
When communicating data in binary code
The 3-byte (2 digit code/6 digit number specification) or 4-byte (4 digit code/8 digit number specification) binary code with the
device number specified by the device specification format is sequentially sent starting from the low byte. The device with
decimal device number is sent after converting to hexadecimal device number.
Ex.
In case of internal relay M1234 and link relay B1234
M1234 B1234
M1234 B1234
Internal relay M1234 becomes 0004D2H and is sent in the order of D2H, 04H, and 00H.
Link relay B1234 becomes 001234H and is sent in the order of 34H, 12H, and 00H.
37 MESSAGE FORMAT
37.1 3E Frame 583
■Number of device points
This data is for specifying the number of points to be read or written when each command is executed. It must be specified
within the limits of the number of points that can be processed per communication. (Page 610 Commands)
When communicating data in ASCII code
Points are converted into 4-digit ASCII code (hexadecimal) and sequentially sent from the upper byte to lower byte. Use
capitalized code for alphabetical letter.
Ex.
In the case of 5 points and 20 points
5 points 20 points
0 0 0 5 0 0 1 4
30H 30H 30H 35H 30H 30H 31H 34H
Ex.
In the case of 5 points and 20 points
5 points 20 points
Ex.
In the case of 5 points and 20 points
5 points 20 points
0 0 0 5 0 0 1 4
30H 30H 30H 35H 30H 30H 31H 34H
Ex.
In the case of 5 points and 20 points
5 points 20 points
37 MESSAGE FORMAT
584 37.1 3E Frame
■Device memory extension specification (subcommand: bit7)
For details, refer to Page 911 Device Memory Extension Specification.
This section explains how to read or write a device from/to module access device areas and how to specify a device indirectly
by using index register.
Message format
Response messages are extended as well.
• When communicating data in ASCII code
2 digit code/6 digit number specification
Extension
When extension Extension
specification
Device Head device No. or
is specified 0 0 specification code device No. 0 0 0
30H 30H modification 30H 30H 30H
37
4 digit code/8 digit number specification
Extension
When extension Extension Head device No. or
specification Device code
0 0 specification device No. 0 0 0 0
is specified modification
30H 30H 30H 30H 30H 30H
37 MESSAGE FORMAT
37.1 3E Frame 585
Module access device specification
The following shows the approach for module access device specification in programming and request data.
U \G
Extension Device Head device No.
specification code or device No.
• Extension specification
Specify the start I/O number of intelligent function modules.
ASCII code Binary code
Specify the start I/O number in hexadecimal (3-digit ASCII code). When Specify the start I/O in hexadecimal (2 bytes). When described with 4-digits,
described with 4-digits, specify the start I/O number with the upper 3-digits. specify the start I/O number with the upper 3-digits.
U U 0 0 1
55H 55H 30H 30H 31H H H 01H 00H
• Device code
Specify the module access device. (Page 611 Device range)
• Head device No. or device No.
The format is the same as the message when extension is not specified.
37 MESSAGE FORMAT
586 37.1 3E Frame
37.2 1E Frame
This section describes the message format for each command when performing the data communication using the 1E frame.
Data format
The data format consists of header and application data.
■Request message
Header Application data
37
Subheader
PC No.
timer
Monitoring
Request data
■Response message
Header Application data
Subheader
Response data
End code
Header
This header is for TCP/IP and UDP/IP.
Add the header for external equipment to Ethernet-equipped module (command message) at the external equipment side
before sending the message (normally the header is added automatically).
It is not necessary to set the header for Ethernet-equipped module to external equipment (response message) by the user
because the header is added by the Ethernet-equipped module automatically.
Application data
Application data is divided into subheader and text.
The subheader indicates whether a message is a command message or a response message. (Page 588 Subheader
configuration)
Text is the request data (command) and the response date (response) in each function. (Page 666 1E FRAME
COMMANDS)
37 MESSAGE FORMAT
37.2 1E Frame 587
■When communicating data in binary code
The text differs
depending on the
Application data function and whether
the command ends
1 byte normally or not.
External equipment Subheader Text (command)
It is not necessary to set the response to a command from the external equipment by the user because the
response is created and sent by the Ethernet-equipped module.
Subheader configuration
This section describes the subheader configuration.
Precautions
When the communication data code is an ASCII code, if data that cannot be binary converted into a subheader is specified,
the data cannot be recognized as a 1E frame message, and no response message is returned.
Control procedure
This section describes the control procedures and the format of the application data when performing the data
communication.
The (Thick line) part shown in the message explanation diagram of this section are items common to all commands.
For the data contents and the data specification method of the (Thick line) part, refer to Page 591 Application data
specification items.
Data code (ASCII/binary) to be used when communicating, it is determined by the parameters of GX Works3.
[CPU module]
Navigation window [Parameter] Module model [Module Parameter] [Ethernet Port] [Basic
Settings] [Own Node Settings] "Communication Data Code"
[Ethernet module]
Navigation window [Parameter] [Module Information] [FX5-ENET] or [FX5-ENET/IP] [Basic
Settings] [Own Node Settings] "Communication Data Code"
37 MESSAGE FORMAT
588 37.2 1E Frame
■When communicating data in ASCII code
• When data is read from an Ethernet-equipped module by external equipment
Subheader
PC No.
Monitoring timer
(Data name)
*1
H L H L H - - L
(Example) 0 1 F F 0 0 0 F
30H 31H 46H 46H 30H 30H 30H 30H
Subheader
End code
Header
Subheader
End code
Error code
*2
*1
H L H L H L H L H L
8 1 0 0 8 1 5 B 1 0
38H 31H 30H 30H 38H 31H 35H 42H 31H 30H
*1 The order of data items differs depending on the command. For details, refer to Page 667 Device Access.
*2 The error code is stored when the end code is "5BH".
• When data is written from external equipment to an Ethernet-equipped module
Subheader
PC No.
Monitoring timer
(Data name)
*1
H L H L H - - L
(Example) 0 1 F F 0 0 0 F
30H 31H 46H 46H 30H 30H 30H 30H
Subheader
End code
Header
Subheader
End code
Error code
*2
H L H L H L H L H L
8 1 0 0 8 1 5 B 1 0
38H 31H 30H 30H 38H 31H 35H 42H 31H 30H
*1 The order of data items differs depending on the command. For details, refer to Page 667 Device Access.
*2 The error code is stored when the end code is "5BH".
37 MESSAGE FORMAT
37.2 1E Frame 589
■When communicating data in binary code
• When data is read from an Ethernet-equipped module by external equipment
Monitoring timer
(Data name)
*1
(Example)
01H FFH 30H 30H
Header
Subheader
End code
Error code
*2
*1
*1 The order of data items differs depending on the command. For details, refer to Page 667 Device Access.
*2 The error code is stored when the end code is "5BH".
• When data is written from external equipment to an Ethernet-equipped module
Monitoring timer
(Data name)
*1
(Example)
01H FFH 30H 30H
Header
Subheader
End code
Error code
*2
*1 The order of data items differs depending on the command. For details, refer to Page 667 Device Access.
*2 The error code is stored when the end code is "5BH".
37 MESSAGE FORMAT
590 37.2 1E Frame
Application data specification items
This section describes the data contents and the specification method of common data items in the application data in each
message when performing the data communication using the 3E frame.
PC No.
■Request message
Header Application data
Subheader
PC No.
timer
Monitoring
Request data
Ethernet
Ex.
When specifying the connecting station (PC No. FFH)
Precautions
When the communication data code is an ASCII code, if data that cannot be binary converted into a PC number is specified,
the data cannot be recognized as a 1E frame message, and no response message is returned.
Monitoring timer
■Request message
Header Application data
Subheader
PC No.
timer
Monitoring
Request data
This timer is used to set the wait time until a response is returned after the SLMP-compatible device that has received a
request message from an external device sends a processing request to the accessed device.
• 0000H (0): Indefinitely waiting (waiting until the processing is completed)
• 0001H to FFFFH (1 to 65535)*1: Wait time (unit: 250ms)
*1 Supported only for Ethernet modules.
For normal data communication, it is recommended to use this message within the setting range shown in the following table
depending on the communication destination.
Access destination Monitoring timer
Other station 01H to 28H (0.25 to 10 seconds)
37 MESSAGE FORMAT
37.2 1E Frame 591
■When communicating data in binary code
Sending from the lower byte to the upper byte.
Precautions
Specify "0000H" (indefinite wait) for the CPU module.
Ex.
When specifying the 0000H (Unlimited wait)
End code
■Response message
Header Application data
Subheader
Response data
End code
Ex.
When completed When failed
(for 50H)
Request data
■Request message
Header Application data
Subheader
PC No.
timer
Monitoring
Request data
37 MESSAGE FORMAT
592 37.2 1E Frame
Response data
■Response message
Header Application data
Subheader
Response data
End code
Character area
■Request message
Header Application data
Subheader
PC No.
timer
Monitoring
Request data
Character
area A and C
■Response message
Header Application data
Subheader
Response data
End code
Character
area B
37 MESSAGE FORMAT
37.2 1E Frame 593
Communicating data (when communicating in ASCII code)
■When bit device memory is read or written
The bit device memory is handled in 1-bit (1-point) units or in 1-word (16-point) units.
The transfer data in each case is described below.
• In 1-bit (1-point) units
When the bit device memory is handled in 1-bit units, specify 1-point (1-byte) with an ASCII code, and express "1" (31H) for
ON and "0" (30H) for OFF. Specify for the number of devices starting from the head device in the order of device numbers.
Ex.
When indicating the on/off status of five devices starting from M10
4 D 2 0 0 0 0 0 0 0 0 A 0 5 0 0 1 0 1 0 1
34H 44H 32H 30H 30H 30H 30H 30H 30H 30H 30H 41H 30H 35H 30H 30H 31H 30H 31H 30H 31H
Ex.
When indicating ON/OFF status of 32 points from M16
Because devices are handled in 16 point units,
the number of device is "02".
Number Fixed
Device name Head device No. Data Data
of devices value
4 D 2 0 0 0 0 0 0 0 1 0 0 2 0 0 A B 1 2 3 4 C D
34H 44H 32H 30H 30H 30H 30H 30H 30H 30H 31H 30H 30H 32H 30H 30H 41H 42H 31H 32H 33H 34H 43H 44H
A B 1 2 3 4 C D
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1: Indicates ON.
1 0 1 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 1
0: Indicates OFF.
M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
Head End
37 MESSAGE FORMAT
594 37.2 1E Frame
■When word device memory is read or written
One word device is expressed with a 1-word (4-byte) 4-digit ASCII code (hexadecimal). Specify for the number of devices
starting from the head device in 1-word units in the order from the most significant byte to the least significant byte (b15 to b0).
Ex.
When indicating the contents stored in the data registers D350 and D351
Number Fixed
Device name Head device No. Data Data
of devices value
4 4 2 0 0 0 0 0 0 1 5 E 0 2 0 0 5 6 A B 1 7 0 F
34H 34H 32H 30H 30H 30H 30H 30H 30H 31H 35H 45H 30H 32H 30H 30H 35H 36H 41H 42H 31H 37H 30H 46H
37
5 6 A B 1 7 0 F
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15b14b13b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1: Indicates ON.
0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1
0: Indicates OFF.
37 MESSAGE FORMAT
37.2 1E Frame 595
Communicating data (When communicating data in binary code)
■When bit device memory is read or written
The bit device memory is handled in 1-bit (1-point) units or in 1-word (16-point) units.
The transfer data in each case is described below.
• In 1-bit (1-point) units
When the bit device memory is handled in 1-bit units, specify 1-point, 4 bits, (two points, 1 byte) with a binary code, "1" for ON
and "0" for OFF. Specify for the number of devices starting from the head device in the order of device numbers from the most
significant bit.
Ex.
When indicating the on/off status of five devices starting from M10
Ex.
When indicating ON/OFF status of 32 points from M16
Because devices are handled in 16 point
units, the number of device is "02".
Device Number Fixed
Head device No. name of devices Data Data
value
L - - H L H L H L H
000010H 4D20H AB12H 34CDH
10H 00H 00H 00H 20H 4DH 02H 00H 12H ABH CDH 34H
1 2 A B C D 3 4
b7 b6 b5 b4 b3 b2 b1 b0 b15b14b13b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15b14b13b12 b11 b10 b9 b8
1: Indicates ON.
0 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0
0: Indicates OFF.
M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M
23 22 21 20 19 18 17 16 31 30 29 28 27 26 25 24 39 38 37 36 35 34 33 32 47 46 45 44 43 42 41 40
Head End
37 MESSAGE FORMAT
596 37.2 1E Frame
■When word device memory is read or written
One word device memory is expressed with a 1-word (2-byte) 4-digit binary code (hexadecimal). Specify for the number of
devices starting from the head device in 1-word units in the order from the least significant bytes (b7 to b0) to the most
significant bytes (b15 to b8).
Ex.
When indicating the contents stored in the data registers D350 and D351
Device Number Fixed
Head device No. Data Data
name of devices value
L - - H L H L H L H
0000015EH 4420H 56ABH 170FH
5EH 01H 00H 00H 20H 44H 02H 00H ABH 56H 0FH 17H
37
A B 5 6 0 F 1 7
b7 b6 b5 b4 b3 b2 b1 b0 b15b14b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15b14b13b12 b11b10 b9 b8
1 0 1 0 1 0 1 1 0 1 0 1 0 1 1 0 0 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1
1: Indicates ON.
0: Indicates OFF.
5 6 A B 1 7 0 F
b15b14b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15b14b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 0 0 1 0 1 1 1 0 0 0 0 1 1 1 1
When data other than integer value (real number, character string), is stored in the word device memory for
reading data, the stored value are read as integer value.
(Example 1) When a real number (0.75) is stored in D0 and D1, the value is read as the following integer
value.
• D0 = 0000H, D1 = 3F40H
(Example 2) When a character string (12AB) is stored in D2 and D3, the character string is read as the
following integer value.
• D2 = 3231H, D3 = 4241H
37 MESSAGE FORMAT
37.2 1E Frame 597
Character areas
This section explains character areas in the control procedure (data area when communicating in binary code).
• Character areas differ depending on command to be used and contents to be specified. This section explains the data
common to the character area when the device memory to be read or written is specified directly.
• Character area data handled only by a certain command and not by others, is explained in the section that explains the
corresponding command.
Number of devices
Fixed value
External *
equipment
Character area B
H - - L H - - - - - - L H L H L
Number of devices
Fixed value
External *
equipment
H - - L H - - - - - - L H L H L
Ethernet-equipped module *
The data array and the data contents marked with * are shown in Page 587 Message format and control procedure.
37 MESSAGE FORMAT
598 37.2 1E Frame
Data of data area (when communicating in binary code)
■In the case of reading
Data area
(corresponding to character area A)
Head device No.
Device name
Number of devices
Fixed value
External
equipment
Data area
(corresponding to character area B)
L - - H L H
Fixed value
Head device No.
Device name
External *
equipment
L - - H L H
Ethernet-equipped module *
The data array and the data contents marked with * are shown in Page 587 Message format and control procedure.
37 MESSAGE FORMAT
37.2 1E Frame 599
Data contents common to character areas
■Device name (Device code)
Device codes are data for identifying the device memory to be read or written.
Device codes are shown in Page 668 Device range.
When communicating data in ASCII code
Device codes are converted into 4-digit ASCII code (hexadecimal), and the device codes are sequentially sent beginning from
the most significant digit. Use capitalized code for alphabetical letter in ASCII code.
Ex.
In the case of input (X)
5 8 2 0
35H 38H 32H 30H
Ex.
In the case of input (X)
5820H
20H 58H
Ex.
When the device number is "1234 (4D2H)"
0 0 0 0 0 4 D 2
30H 30H 30H 30H 30H 34H 44H 32H
Ex.
When the device number is "1234 (4D2H)"
4D2H
D2H 04H 00H 00H
37 MESSAGE FORMAT
600 37.2 1E Frame
■Number of device points
This data is for specifying the number of points to be read or written when each command is executed. It must be specified
within the limits of the number of points that can be processed per communication. (Page 667 Commands)
When communicating data in ASCII code
Points are converted into 4-digit ASCII code (hexadecimal), and the device codes are sequentially sent from the upper byte to
lower byte. Use capitalized code for alphabetical letter.
Ex.
In the case of 5 points and 20 points
5 points 20 points
05 1E
30H 35H 31H 45H
Ex. 37
In the case of 5 points and 20 points
5 points 20 points
05H 14H
■Fixed value
A fixed value (00H) must be specified after the number of device points.
When communicating data in ASCII code
Specify the fixed value after converting into a 2-digit ASCII code.
Ex.
00
30H 30H
Ex.
00H
37 MESSAGE FORMAT
37.2 1E Frame 601
38 3E FRAME COMMANDS
This chapter explains 3E frame commands of SLMP.
For parts of the transmission message other than the command part, refer to Page 562 3E Frame.
CPU module
Name Command Subcommand Processing content Number of points processed per
communication
Device Read 0401H 0001H This command reads data from a bit device or word device ASCII: 1792 points
(Batch) in units of 1 bit. BIN: 3584 points
0000H • This command reads data from bit devices in units of 16 ASCII: 480 words (7680 points)
bits. BIN: 960 words (15360 points)
• This command reads data from word devices in units of 1
word.
0081H • This command reads data from the buffer memory in ASCII: 1792 points
intelligent function modules in units of 1 bit. BIN: 3584 points
• This command reads data from devices indirectly
specified by index registers in units of 1 bit.
0080H • This command reads data from the buffer memory in ASCII: 480 words (7680 points)
intelligent function modules in units of 1 word. BIN: 960 words (15360 points)
• This command reads data from devices indirectly
specified by index registers in units of 1 word.
0083H • This command reads data from the buffer memory in ASCII: 1792 points
intelligent function modules in units of 1 bit. BIN: 3584 points
• This command reads data from devices indirectly
specified by index registers in units of 1 bit.
0082H • This command reads data from the buffer memory in ASCII: 480 words (7680 points)
intelligent function modules in units of 1 word. BIN: 960 words (15360 points)
• This command reads data from devices indirectly
specified by index registers in units of 1 word.
Device Write 1401H 0001H This command writes data to bit devices in units of 1 bit. ASCII: 1792 points
(Batch) BIN: 3584 points
0000H • This command writes data to bit devices in units of 16 ASCII:
bits. 480 words (7680 points)
• This command writes data to word devices in units of 1 BIN:
word. 960 words (15360 points)
0081H • This command writes data to the buffer memory in ASCII: 1792 points
intelligent function modules and SLMP-compatible BIN: 3584 points
devices in units of 1 bit.
• Bit devices, word devices, and buffer memory are
indirectly specified by index registers.
0080H This command writes data to the buffer memory in ASCII:
intelligent function modules and SLMP-compatible devices 480 words (7680 points)
in units of 1 word (16 bits). BIN:
960 words (15360 points)
0083H This command writes data to the buffer memory in ASCII: 1792 points
intelligent function modules and SLMP-compatible devices BIN: 3584 points
in units of 1 bit.
0082H This command writes data to the buffer memory in ASCII:
intelligent function modules and SLMP-compatible devices 480 words (7680 points)
in units of 1 word (16 bits). BIN:
960 words (15360 points)
38 3E FRAME COMMANDS
602 38.1 List of Commands and Functions
Name Command Subcommand Processing content Number of points processed per
communication
Device Read 0403H 0000H This command reads data from word devices in units of 1 ASCII:
Random word or 2 words by randomly specifying device numbers. (Word access points + double-word
access points) 2 192
BIN:
Word access points + double-word
access points 192
0080H This command reads data from the buffer memory in ASCII:
intelligent function modules and SLMP-compatible devices (Word access points + double-word
in units of 1 word (16 bits). access points) 4 192
BIN:
(Word access points + double-word
access points) 2 192
0082H This command reads data from the buffer memory in ASCII:
intelligent function modules and SLMP-compatible devices (Word access points + double-word
in units of 1 word (16 bits). access points) 4 192
BIN:
(Word access points + double-word
access points) 2 192
Device Write 1402H 0001H This command writes data to bit devices in units of 1 bit by ASCII: 94 points
Random randomly specifying device numbers. BIN: 188 points
0000H • This command writes data to bit devices in units of 16 bits
by randomly specifying device numbers.
ASCII:
((Word access points) 12 + (double-
38
• This command writes data to word devices in units of 1 word access points) 14) 2 1920
word or 2 words by randomly specifying device numbers. points
BIN:
(Word access points) 12 + (double-
word access points) 14 1920 points
0081H • This command writes data to the buffer memory in ASCII: 47 points
intelligent function modules and SLMP-compatible BIN: 94 points
devices in units of 1 bit.
• Buffer memory is indirectly specified by index registers.
0080H This command writes data to the buffer memory in ASCII:
intelligent function modules and SLMP-compatible devices ((Word access points) 12 + (double-
in units of 1 word (16 bits) or 2 words. word access points) 14) 4 1920
points
BIN:
((Word access points) 12 + (double-
word access points) 14) 2 1920
points
0083H This command writes data to the buffer memory in ASCII: 47 points
intelligent function modules and SLMP-compatible devices BIN: 94 points
in units of 1 bit.
0082H This command writes data to the buffer memory in ASCII:
intelligent function modules and SLMP-compatible devices ((Word access points) 12 + (double-
in units of 1 word (16 bits) or 2 words. word access points) 14) 4 1920
points
BIN:
((Word access points) 12 + (double-
word access points) 14) 2 1920
points
Device Read 0406H 0000H With n points of bit devices and word devices as 1 block, ASCII:
Block this command reads data by randomly specifying multiple (Number of word device blocks +
blocks. number of bit device blocks) 2 120
(When bit devices are specified, 1 point is 16 bits.) points and (Total points of each block of
word device + total points of each block
of bit device) 2 960 points
BIN:
Number of word device blocks +
number of bit device blocks 120
points and Total points of each block of
word device + total points of each block
of bit device 960 points
38 3E FRAME COMMANDS
38.1 List of Commands and Functions 603
Name Command Subcommand Processing content Number of points processed per
communication
Device Read 0406H 0080H With n points of buffer memory in intelligent function ASCII:
Block modules and SLMP-compatible devices as 1 block, this (Number of word device blocks +
command reads data by randomly specifying multiple number of bit device blocks) 4 120
blocks. points and (Total points of each block of
(When bit devices are specified, 1 point is 16 bits.) word device + total points of each block
of bit device) 2 960 points
BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and Total points of each block of
word device + total points of each block
of bit device 960 points
0082H With n points of buffer memory in intelligent function ASCII:
modules and SLMP-compatible devices as 1 block, this (Number of word device blocks +
command reads data by randomly specifying multiple number of bit device blocks) 4 120
blocks. points and (Total points of each block of
word device + total points of each block
of bit device) 2 960 points
BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and Total points of each block of
word device + total points of each block
of bit device 960 points
Device Write 1406H 0000H With n points of bit devices and word devices as 1 block, ASCII:
Block this command writes data by randomly specifying multiple (Number of word device blocks +
blocks. number of bit device blocks) 2 120
(When bit devices are specified, 1 point is 16 bits.) points and ((Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device) 2 760 points
BIN:
Number of word device blocks +
number of bit device blocks 120
points and (Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device 760 points
0080H With n points of buffer memory in intelligent function ASCII:
modules and SLMP-compatible devices as 1 block, this (Number of word device blocks +
command writes data by randomly specifying multiple number of bit device blocks) 4 120
blocks. points and ((Number of word device
(When bit devices are specified, 1 point is 16 bits.) blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device) 2 760 points
BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and (Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device 760 points
38 3E FRAME COMMANDS
604 38.1 List of Commands and Functions
Name Command Subcommand Processing content Number of points processed per
communication
Device Write 1406H 0082H With n points of buffer memory in intelligent function ASCII:
Block modules and SLMP-compatible devices as 1 block, this (Number of word device blocks +
command writes data by randomly specifying multiple number of bit device blocks) 4 120
blocks. points and ((Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device) 2 760 points
BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and (Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device 760 points
Remote Run 1001H 0000H This command performs a remote RUN request for a
device.
Remote Stop 1002H 0000H This command performs a remote STOP request for a
device.
Remote Pause 1003H 0000H This command performs a remote PAUSE request for a
device. 38
Remote Latch 1005H 0000H This command performs a remote latch clear request when
Clear the device is in the STOP state.
Remote Reset 1006H 0000H This command performs a remote reset request to reset the
device error stop state.
Read Type Name 0101H 0000H This command reads the processor module name code
(processor type) of a device.
Self-Test 0619H 0000H This command checks if normal communication is possible.
Clear Error 1617H 0001H This command batch clears all errors and turns off the LED.
Password Lock 1631H 0000H This command sets to the locked status from the unlocked
status by specifying the remote password. (Sets the device
to the state where communication is not possible.)
Password Unlock 1630H 0000H This command sets to the unlocked status from the locked
status by specifying the remote password. (Sets the device
to the state where communication is possible.)
38 3E FRAME COMMANDS
38.1 List of Commands and Functions 605
Ethernet module, FX5-CCLGN-MS, FX5-CCLIEF, FX5-40SSC-G, FX5-80SSC-G
Name Command Subcommand Processing content Number of points processed per
communication
Device Read 0401H 0001H This command reads data from a bit device in units of 1 bit. ASCII: 1792 points
(Batch) BIN: 3584 points
0000H • This command reads data from bit devices in units of 16 ASCII: 480 words (7680 points)
bits. BIN: 960 words (15360 points)
• This command reads data from word devices in units of 1
word.
0081H The CPU devices (bit devices) can be directly accessed. ASCII: 1792 points
This command performs the same processing as the batch BIN: 3584 points
read (command: 0401H) and subcommand: 0001H.
0080H • This command reads data from the buffer memory in ASCII: 480 words (7680 points)
intelligent function modules in units of 1 word. BIN: 960 words (15360 points)
• The CPU devices (bit devices and word devices) can be
directly accessed. This command performs the same
processing as the batch read (command: 0401) and
subcommand: 0000H.
0083H The CPU devices (bit devices) can be directly accessed. ASCII: 1792 points
This command performs the same processing as the batch BIN: 3584 points
read (command: 0401H) and subcommand: 0001H.
0082H • This command reads data from the buffer memory in ASCII: 480 words (7680 points)
intelligent function modules in units of 1 word. BIN: 960 words (15360 points)
• The CPU devices (bit devices and word devices) can be
directly accessed. This command performs the same
processing as the batch read (command: 0401) and
subcommand: 0000H.
Device Write 1401H 0001H This command writes data to bit devices in units of 1 bit. ASCII: 1792 points
(Batch) BIN: 3584 points
0000H • This command writes data to bit devices in units of 16 ASCII:
bits. 480 words (7680 points)
• This command writes data to word devices in units of 1 BIN:
word. 949 words (15184 points)
0081H The CPU devices (bit devices) can be directly accessed. ASCII: 1792 points
This command performs the same processing as the batch BIN: 3584 points
write (command: 1401H) and subcommand: 0001H.
0080H • This command writes data to the buffer memory in ASCII:
intelligent function modules and SLMP-compatible 480 words (7680 points)
devices in units of 1 word (16 bits). BIN:
• The CPU devices (bit devices and word devices) can be 949 words (15184 points)
directly accessed. This command performs the same
processing as the batch write (command: 1401H) and
subcommand: 0000H.
0083H The CPU devices (bit devices) can be directly accessed. ASCII: 1792 points
This command performs the same processing as the batch BIN: 3584 points
write (command: 1401H) and subcommand: 0001H.
0082H • This command writes data to the buffer memory in ASCII:
intelligent function modules and SLMP-compatible 480 words (7680 points)
devices in units of 1 word (16 bits). BIN:
• The CPU devices (bit devices and word devices) can be 949 words (15184 points)
directly accessed. This command performs the same
processing as the batch write (command: 1401H) and
subcommand: 0000H.
38 3E FRAME COMMANDS
606 38.1 List of Commands and Functions
Name Command Subcommand Processing content Number of points processed per
communication
Device Read 0403H 0000H This command reads data from bit devices and word ASCII:
Random*1 devices in units of 1 word or 2 words by randomly specifying (Word access points + double-word
device numbers. access points) 2 192
BIN:
Word access points + double-word
access points 123
0080H • This command reads data from the buffer memory in ASCII:
intelligent function modules in units of 1 word (16 bits) or (Word access points + double-word
2 words. access points) 4 192
• This command reads data from devices indirectly BIN:
specified by index registers in units of 1 word or 2 words. (Word access points + double-word
The CPU devices (bit devices and word devices) can be access points) 2 192
directly accessed.
• This command performs the same processing as the
random read (command: 0403H) and subcommand:
0000H.
0082H • This command reads data from the buffer memory in ASCII:
intelligent function modules in units of 1 word (16 bits) or (Word access points + double-word
2 words. access points) 4 192
• This command reads data from devices indirectly BIN:
specified by index registers in units of 1 word or 2 words. (Word access points + double-word
The CPU devices (bit devices and word devices) can be access points) 2 192 38
directly accessed.
• This command performs the same processing as the
random read (command: 0403H) and subcommand:
0000H.
Device Write 1402H 0001H This command writes data to bit devices in units of 1 bit by ASCII: 94 points
Random*2 randomly specifying device numbers. BIN: 188 points
0000H • This command writes data to bit devices in units of 16 bits ASCII:
by randomly specifying device numbers. ((Word access points) 12 + (double-
• This command writes data to word devices in units of 1 word access points) 14) 2 1920
word or 2 words by randomly specifying device numbers. points
BIN:
(Word access points) 18 + (double-
word access points) 20 1962 points
0081H The CPU devices (bit devices) can be directly accessed. ASCII: 47 points
This command performs the same processing as the BIN: 94 points
random write (command: 1402H) and subcommand:
0001H.
0080H • This command writes data to the buffer memory in ASCII:
intelligent function modules in units of 1 word (16 bits) or ((Word access points) 12 + (double-
2 words. word access points) 14) 4 1920
• This command writes data from devices indirectly points
specified by index registers in units of 1 word or 2 words. BIN:
The CPU devices (bit devices and word devices) can be ((Word access points) 12 + (double-
directly accessed. word access points) 14) 2 1920
• This command performs the same processing as the points
random write (command: 1402H) and subcommand:
0000H.
0083H The CPU devices (bit devices) can be directly accessed. ASCII: 47 points
This command performs the same processing as the BIN: 94 points
random write (command: 1402H) and subcommand:
0001H.
0082H • This command writes data to the buffer memory in ASCII:
intelligent function modules in units of 1 word (16 bits) or ((Word access points) 12 + (double-
2 words. word access points) 14) 4 1920
• This command writes data from devices indirectly points
specified by index registers in units of 1 word or 2 words. BIN:
The CPU devices (bit devices and word devices) can be ((Word access points) 12 + (double-
directly accessed. word access points) 14) 2 1920
• This command performs the same processing as the points
random write (command: 1402H) and subcommand:
0000H.
38 3E FRAME COMMANDS
38.1 List of Commands and Functions 607
Name Command Subcommand Processing content Number of points processed per
communication
Device Read 0406H 0000H With n points of bit devices and word devices as 1 block, ASCII:
Block*3 this command reads data by randomly specifying multiple (Number of word device blocks +
blocks. number of bit device blocks) 2 120
(When bit devices are specified, 1 point is 16 bits.) points and (Total points of each block of
word device + total points of each block
of bit device) 2 960 points
BIN:
Number of word device blocks +
number of bit device blocks 120
points and Total points of each block of
word device + total points of each block
of bit device 960 points
0080H • With n points of buffer memory in intelligent function ASCII:
modules as 1 block, this command reads data by (Number of word device blocks +
randomly specifying multiple blocks. (When bit devices number of bit device blocks) 4 120
are specified, 1 point is 16 bits.) points and (Total points of each block of
• This command performs the same processing as the word device + total points of each block
multiple block batch read (command: 0406H) and of bit device) 2 960 points
subcommand: 0000H. BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and Total points of each block of
word device + total points of each block
of bit device 960 points
0082H • With n points of buffer memory in intelligent function ASCII:
modules as 1 block, this command reads data by (Number of word device blocks +
randomly specifying multiple blocks. number of bit device blocks) 4 120
• This command performs the same processing as the points and (Total points of each block of
multiple block batch read (command: 0406H) and word device + total points of each block
subcommand: 0000H. of bit device) 2 960 points
BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and Total points of each block of
word device + total points of each block
of bit device 960 points
Device Write 1406H 0000H With n points of bit devices and word devices as 1 block, ASCII:
Block*3 this command writes data by randomly specifying multiple (Number of word device blocks +
blocks. number of bit device blocks) 2 120
(When bit devices are specified, 1 point is 16 bits.) points and ((Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device) 2 770 points
BIN:
Number of word device blocks +
number of bit device blocks 120
points and (Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device 770 points
0080H • With n points of buffer memory in intelligent function ASCII:
modules as 1 block, this command writes data by (Number of word device blocks +
randomly specifying multiple blocks. (When bit devices number of bit device blocks) 4 120
are specified, 1 point is 16 bits.) points and ((Number of word device
• This command performs the same processing as the blocks + number of bit device blocks)
multiple block batch write (command: 1406H) and 4 + Total points of each block of word
subcommand: 0000H. device + total points of each block of bit
device) 2 770 points
BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and (Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device 770 points
38 3E FRAME COMMANDS
608 38.1 List of Commands and Functions
Name Command Subcommand Processing content Number of points processed per
communication
Device Write 1406H 0082H • With n points of buffer memory in intelligent function ASCII:
Block*3 modules as 1 block, this command writes data by (Number of word device blocks +
randomly specifying multiple blocks. number of bit device blocks) 4 120
• This command performs the same processing as the points and ((Number of word device
multiple block batch write (command: 1406H) and blocks + number of bit device blocks)
subcommand: 0000H. 4 + Total points of each block of word
device + total points of each block of bit
device) 2 770 points
BIN:
(Number of word device blocks +
number of bit device blocks) 2 120
points and (Number of word device
blocks + number of bit device blocks)
4 + Total points of each block of word
device + total points of each block of bit
device 770 points
Remote Run 1001H 0000H This command performs a remote RUN request for a
device.
Remote Stop 1002H 0000H This command performs a remote STOP request for a
device.
Remote Pause 1003H 0000H This command performs a remote PAUSE request for a
device. 38
Remote Latch 1005H 0000H This command performs a remote latch clear request when
Clear the device is in the STOP state.
Remote Reset 1006H 0000H This command performs a remote reset request to reset the
device error stop state.
Read Type Name 0101H 0000H This command reads the processor module name code
(processor type) of a device.
Self-Test 0619H 0000H This command checks if normal communication is possible.
38 3E FRAME COMMANDS
38.1 List of Commands and Functions 609
38.2 Device Access
This section explains the control procedure specification method and shows a specification example when the device memory
is read and written.
Commands
This section explains commands when the device memory is read or written.
Commands
Function Command Processing content
(Subcommand)
Device Read (Batch) Bit units 0401 Reads bit devices in 1 point units.
(001)
Word units 0401 Reads bit devices in 16 point units.
(000)
Reads word devices in 1 point units.
Device Write (Batch) Bit units 1401 Writes bit devices in 1-point units.
(001)
Word units 1401 Writes bit devices in 16-point units.
(000) Writes word devices in 1-point units.
Device Read Random Word units 0403 Reads bit devices specified randomly in 16-point units or 32-point units.
(000)
Reads word devices specified randomly in 1-point units or 2-point units.
Device Write Random Bit units 1402 Sets or resets device memory to bit devices specified randomly in 1-point units.
(001)
Word units 1402 Sets or resets device memory to bit devices specified randomly in 16-point units or 32-point
(000) units
Writes device memory to word devices specified randomly in 1-point units or 2-point units.
Device Read Block Word units 0406 Sets n point(s) in the word device or bit device (one point is specified by 16-bit) as 1 block,
(000) specifies multiple blocks randomly and reads the device memory.
Device Write Block Word units 1406 Sets n point(s) in the word device or bit device (one point is specified by 16-bit) as 1 block,
(000) specifies multiple blocks randomly and writes the device memory.
38 3E FRAME COMMANDS
610 38.2 Device Access
Device range
This section shows accessible CPU module device.
Specify the device and device number range that exist in the module targeted for data read or write.
38 3E FRAME COMMANDS
38.2 Device Access 611
Classification Device Type Device code*1 Device No. Device
(Device specification compatibility*2
format: 4 digit code/8 digit
number specification)
ASCII code Binary code
Internal user Counter Contact Bit CS C4H Specify within the Decimal
device (CS**) (C400H) device No. range of
the module for
Coil Bit CC C3H
access destination.
(CC**) (C300H)
Current value Word CN C5H
(CN**) (C500H)
Long counter Contact Bit 55H Decimal
(LCS*) (5500H)
Coil Bit 54H
(LCC*) (5400H)
Current value Double 56H
Word (LCN*) (5600H)
Link special relay Bit SB A1H Hexadecimal
(SB**) (A100H)
Link special register Word SW B5H Hexadecimal
(SW**) (B500H)
System device Special relay Bit SM 91H Decimal
(SM**) (9100H)
Special register Word SD A9H Decimal
(SD**) (A900H)
Function input Bit Hexadecimal
Function output Hexadecimal
Function register Word Decimal
Index register Word Z* CCH Specify within the Decimal
(Z***) (CC00H) device No. range of
Long index register Double LZ 62H the module for Decimal
Word (LZ**) (6200H) access destination.
38 3E FRAME COMMANDS
612 38.2 Device Access
*1 [ASCII code]
If the device code is less than the specified character number, add "*" (ASCII code: 2AH) or a space (ASCII code: 20H) after the device
code.
[Binary code]
When "Device code" is less than the size specified add "00H" at the end of the device code.
*2 : SLMP-compatible device
: FX5-incompatible device
: SLMP-incompatible device
*3 Depends on the communication data code. See below.
ASCII code (X, Y OCT): Octal
ASCII code (X, Y HEX), Binary code: Hexadecimal
*4 It is necessary to make "Device memory extension specification" of the sub-command to ON (1).
38
38 3E FRAME COMMANDS
38.2 Device Access 613
Device Read (Batch)
Data in devices are read in a batch.
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification
4 bytes 4 bytes 2 bytes 6 bytes 4 bytes
Extension Extension
0 0 specification Device code Head device No. 0 0 0 0
specification
When extension is specified 30H 30H modification
30H 30H 30H 30H
Device
modification, Head device Device Extension Extension Direct
When extension is indirect No. code specification specification memory
specification modification specification
specified
Device Direct
modification, Device Extension Extension
Head device No. memory
When extension is indirect code specification specification specification
specification modification
specified
38 3E FRAME COMMANDS
614 38.2 Device Access
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Bit units 2 digit code/6 digit Not specified 0 0 0 1 01H 00H
number specification
30H 30H 30H 31H
Specified 0 0 8 1 81H 00H
30H 30H 38H 31H
4 digit code/8 digit Specified 0 0 8 3 83H 00H
number specification
30H 30H 38H 33H
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification 30H 30H 38H 32H
38
■Device code
Specify the device code that corresponds to the device type to be read. (Page 611 Device range)
Precautions
Batch Read (0401H) is not applicable to double word devices or long index registers (LZ).
■Device No.
Specify the head number of target device of reading.
■Number of devices
Specify the number of target device points of reading.
Item Number of devices
ASCII code Binary code
When reading data in bit units 1 to 1792 points 1 to 3584 points
When reading data in word units 1 to 480 points 1 to 960 points
Response data
The read device value is stored in hexadecimal. The data order differs depending on the type of code, ASCII code or binary
code.
Read data
38 3E FRAME COMMANDS
38.2 Device Access 615
Communication example
■When reading data in bit units
M100 to M107 are read.
• When communicating data in ASCII code
(Request data)
Device
Subcommand code Head device No. Number of devices
0 4 0 1 0 0 0 1 M * 0 0 0 1 0 0 0 0 0 8
30H 34H 30H 31H 30H 30H 30H 31H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H
(Response data)
0 0 0 1 0 0 1 1 0 = OFF
1 = ON
30H 30H 30H 31H 30H 30H 31H 31H
M100 to M107
01H 04H 01H 00H 64H 00H 00H 90H 08H 00H
(Response data)
0 = OFF
1 = ON
00H 01H 00H 11H
M107
to
M106
M101
M100
0 4 0 1 0 0 0 0 M * 0 0 0 1 0 0 0 0 0 2
30H 34H 30H 31H 30H 30H 30H 30H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 32H
(Response data)
1 2 3 4 0 0 0 2
31H 32H 33H 34H 30H 30H 30H 32H
1 2 3 4 0 0 0 2
0 = OFF
000 1001 0001 1010 0000 0000 0000 0001 0
1 = ON
M115 to M100 M131 to M116
38 3E FRAME COMMANDS
616 38.2 Device Access
• When communicating data in binary code
(Request data)
Device
Subcommand code
Head Number
device No. of devices
01H 04H 00H 00H 64H 00H 00H 90H 02H 00H
(Response data)
3 4 1 2 0 2 0 0
0 = OFF
001 1010 0000 1001 0000 0001 0000 0000 0 1 = ON
M107 to M100 M115 to M108 M123 to M116 M131 to M124
0 4 0 1 0 0 0 0 T N 0 0 0 1 0 0 0 0 0 3
30H 34H 30H 31H 30H 30H 30H 30H 54H 4EH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H
(Response data)
1 2 3 4 0 0 0 2 1 D E F
31H 32H 33H 34H 30H 30H 30H 32H 31H 44H 45H 46H
01H 04H 00H 00H 64H 00H 00H C2H 03H 00H
(Response data)
38 3E FRAME COMMANDS
38.2 Device Access 617
Device Write (Batch)
Data in devices are written in a batch.
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification
4 bytes 4 bytes 2 bytes 6 bytes 4 bytes
Extension Device
0 0 Extension Head device No. 0 0 0
specification
When extension specification modification code
is specified 30H 30H 30H 30H 30H
When extension
is not specified 1 4 0 1 Subcommand Device code Head device No. Number of Write data for the
devices number of points
31H 34H 30H 31H
Extension
0 0 Extension Device Head device No. 0 0 0 0
specification
When extension specification modification code
30H 30H 30H 30H 30H 30H
is specified
2 bytes 4 bytes 4 bytes 4 bytes 10 bytes 4 bytes
When extension is not Head device Device Number Write data for the number
Subcommand of
specified No. code
devices of points
01H 14H
Device
modification, Device Extension Extension Direct
When extension is indirect Head device No. code specification specification memory
modification specification
specified specification
38 3E FRAME COMMANDS
618 38.2 Device Access
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Bit units 2 digit code/6 digit Not specified 0 0 0 1 01H 00H
number specification
30H 30H 30H 31H
Specified 0 0 8 1 81H 00H
30H 30H 38H 31H
4 digit code/8 digit Specified 0 0 8 3 83H 00H
number specification
30H 30H 38H 33H
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification 30H 30H 38H 32H
38
■Device code
Specify the device code that corresponds to the device type to be written. (Page 611 Device range)
Precautions
Batch Write (1401H) is not applicable to double word devices or long index registers (LZ).
■Device No.
Specify the head number of target device of writing.
■Number of devices
Specify the number of target device points of writing.
Item Number of devices
ASCII code Binary code
CPU module Ethernet module, FX5-
CCLGNMS, FX5-CCLIEF, FX5-
40SSCG, FX5-80SSC-G
When writing data in bit units 1 to 1792 points 1 to 3584 points
When writing data in word units 1 to 480 points 1 to 960 points 1 to 949 points
■Write data
Specify value to be written to a device for the number of points specified in "Device point".
38 3E FRAME COMMANDS
38.2 Device Access 619
Response data
There is no response data for the Device Write command.
Communication example
■When writing data in bit units
Values are written to M100 to M107.
• When communicating data in ASCII code
(Request data)
Device
Subcommand code Head device No. Number of devices Write data
1 4 0 1 0 0 0 1 M * 0 0 0 1 0 0 0 0 0 8 1 1 0 0 1 1 0 0
31H 34H 30H 31H 30H 30H 30H 31H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H 31H 31H 30H 30H 31H 31H 30H 30H
0 = OFF
01H 14H 01H 00H 64H 00H 00H 90H 08H 00H 11H 00H 11H 00H 1 = ON
M107
to
M106
M101
M100
1 4 0 1 0 0 0 0 M * 0 0 0 1 0 0 0 0 0 2 2 3 4 7 A B 9 6
31H 34H 30H 31H 30H 30H 30H 30H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 32H 32H 33H 34H 37H 41H 42H 39H 36H
2 3 4 7 A B 9 6
001 0001 1010 0011 1101 0101 1100 1011 0 0 OFF
1 ON
M115 to M100 M131 to M116
01H 14H 00H 00H 64H 00H 00H 90H 02H 00H 47H 23H 96H ABH
4 7 2 3 9 6 A B
010 0011 1001 0001 1100 1011 0101 0101 1 0 OFF
1 ON
M107 to M100 M115 to M108 M123 to M116 M131 to M124
38 3E FRAME COMMANDS
620 38.2 Device Access
■When writing data in word units (word device)
6549 (1995H) is written in D100, 4610 (1202H) is written in D101, and 4400 (1130H) is written in D102.
• When communicating data in ASCII code
(Request data)
Device
Subcommand code Head device No. Number of devices Write data
1 4 0 1 0 0 0 0 D * 0 0 0 1 0 0 0 0 0 3 1 9 9 5 1 2 0 2 1 1 3 0
31H 34H 30H 31H 30H 30H 30H 30H 44H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H 31H 39H 39H 35H 31H 32H 30H 32H 31H 31H 33H 30H
01H 14H 00H 00H 64H 00H 00H A8H 03H 00H 95H 19H 02H 12H 30H 11H
38 3E FRAME COMMANDS
38.2 Device Access 621
Device Read Random
This command specifies the device No. randomly and reads the device value.
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points.
1 point
Extension Device
When extension is 0 0 Extension specification Device No. 0 0 0
specification modification
code
specified 30H 30H 30H 30H 30H
Double-word access
Device Device
Device No. Device No.
code code
4 digit code/8 digit number specification Specify the devices for the specified number of points.
1 point
Double-word access
Device Device
Device No. Device No.
code code
38 3E FRAME COMMANDS
622 38.2 Device Access
■When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
1 point
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
1 point
Device
modification, Device Extension Extension Direct
When extension is Device No. specification memory
indirect code modification specification specification
specification
specified
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification
30H 30H 38H 32H
*1 123 points when the subcommand 0000H is specified in the Ethernet module.
38 3E FRAME COMMANDS
38.2 Device Access 623
■Device code, device No.
Specify the target device of reading.
Item Description
Word access Specify the device points specified as word access points. The specification is not necessary when the word access points are
zero.
Double-word access Specify the device points specified as double-word access points. The specification is not necessary when the double-word
access points are zero.
Precautions
Random Read (0403H) is not applicable to the following devices (contacts and coils).
• Timers (TS and TC)
• Accumulated timers (STS and STC)
• Counters (CS and CC)
• Long counters (LCS and LCC)
Response data
The read device value is stored in hexadecimal. The data order differs depending on the type of code, ASCII code or binary
code.
Data for the word access points Data for the double-word access points
Read data 1 ... Read data m Read data 1 ... Read data n
38 3E FRAME COMMANDS
624 38.2 Device Access
Communication example
Read D0, T0, M100 to M115, X20 to X37 by word access, and D1500 to D1501, Y160 to Y217, M1111 to M1142 by double-
word access.
It is supposed that 6549 (1995H) is stored in D0, 4610 (1202H) is stored in T0, 20302 (4F4EH) is stored in D1500, 19540
(4C54H) is stored in D1501.
0 4 0 3 0 0 0 0 0 4 0 3
30H 34H 30H 33H 30H 30H 30H 30H 30H 34H 30H 33H
D * 0 0 0 0 0 0 T N 0 0 0 0 0 0 M * 0 0 0 1 0 0 X * 0 0 0 0 2 0
44H 2AH 30H 30H 30H 30H 30H 30H 54H 4EH 30H 30H 30H 30H 30H 30H 4DH 2AH 30H 30H 30H 31H 30H 30H 58H 2AH 30H 30H 30H 30H 32H 30H
D * 0 0 1 5 0 0 Y * 0 0 0 1 6 0 M * 0 0 1 1 1 1
44H 2AH 30H 30H 31H 35H 30H 30H 59H 2AH 30H 30H 30H 31H 36H 30H 4DH 2AH 30H 30H 31H 31H 31H 31H
• Response data
Word access Word access Word access Word access
read data 1 read data 2 read data 3 read data 4
1 9 9 5 1 2 0 2 2 0 3 0 4 8 4 9
31H 39H 39H 35H 31H 32H 30H 32H 32H 30H 33H 30H 34H 38H 34H 39H
4 C 5 4 4 F 4 E C 3 D E B 9 A F B A D D B C B 7
34H 43H 35H 34H 34H 46H 34H 45H 43H 33H 44H 45H 42H 39H 41H 46H 42H 41H 44H 44H 42H 43H 42H 37H
Double-word access Double-word access Double-word access
read data 1 read data 2 read data 3
38 3E FRAME COMMANDS
38.2 Device Access 625
■When communicating data in binary code
• Request data
Word Double-word
access points access points
Subcommand
00H 00H 00H A8H 00H 00H 00H C2H 64H 00H 00H 90H 20H 00H 00H 9CH
DCH05H 00H A8H 60H 01H 00H 9DH 57H 04H 00H 90H
• Response data
Word Word Word Word
access access access access Double-word Double-word Double-word
read read read read access access access
data 1 data 2 data 3 data 4 read data 1 read data 2 read data 3
95H 19H 02H 12H 30H 20H 49H 48H 4EH 4FH 54H 4CH AFH B9H DEH C3H B7H BCH DDH BAH
0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 OFF 0 OFF
1 0 1 1 0 1 1 1 1 0 1 1 1 0 1 0
1 ON 1 ON
X27 to X20 X37 to X30 M1118 to M1111 M1142 to M1135
38 3E FRAME COMMANDS
626 38.2 Device Access
Device Write Random
This command specifies the device No. randomly and writes the data.
Request data
■When writing data in bit units
• When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points.
When Bit
extension is 1 4 0 2 0 0 0 1 access Device Device No.
Set or Device
Device No.
Set or
code reset code reset
not specified 31H 34H 30H 32H 30H 30H 30H 31H points
1 point
Extension Extension
Device
When extension is 0 0 specification specification Device No. 0 0 0
specified modification code
30H 30H 30H 30H 30H
When Bit
extension is 1 4 0 2 0 0 0 3 access Device code Device No. Set or reset
not specified 31H 34H 30H 32H 30H 30H 30H 33H points
1 point
Extension
Extension
When extension is 0 0 specification specification
modification
Device code Device No. 0 0 0 0
specified 30H 30H 30H 30H 30H 30H
38 3E FRAME COMMANDS
38.2 Device Access 627
• When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
2 bytes 2 bytes 1 byte
When
extension Bit
Device Set or Device Set or
access Device No. Device No.
is not code reset code reset
specified 02H 14H 01H 00H points
1 point
Device
Extension Extension Direct
modification, Device specification
When extension is indirect Device No. memory
code modification specification specification
specification
specified
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
2 bytes 2 bytes 1 byte
When
extension Bit
Device Set or Device Set or
is not access Device No. Device No.
code reset code reset
specified 02H 14H 03H 00H points
1 point
Device
Extension Extension Direct
modification, Device specification
When extension is indirect Device No. memory
code modification specification specification
specified specification
38 3E FRAME COMMANDS
628 38.2 Device Access
■When writing data in word units
• When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points.
1 point
Extension
0 0 Extension specification Device Device No. 0 0 0
When extension is
specification modification code
specified 30H 30H 30H 30H 30H
Double-word access
Device
code Device No. Write data
38
4 digit code/8 digit number specification Specify the devices for the specified number of points.
1 point
Extension
Extension specification Device
When extension is 0 0 specification code
Device No. 0 0 0 0
modification
specified 30H 30H 30H 30H 30H 30H
Double-word access
Device
code Device No. Write data
38 3E FRAME COMMANDS
38.2 Device Access 629
• When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
1 point
Device
modification, Device Extension Extension Direct
When extension is indirect Device No. specification memory
code modification specification specification
specified specification
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
1 point
Device
modification, Device Extension Extension Direct
When extension is indirect Device No. specification memory
code modification specification specification
specified specification
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Bit units 2 digit code/6 digit Not specified 0 0 0 1 01H 00H
number specification
30H 30H 30H 31H
Specified 0 0 8 1 81H 00H
30H 30H 38H 31H
4 digit code/8 digit Specified 0 0 8 3 83H 00H
number specification
30H 30H 38H 33H
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification
30H 30H 38H 32H
38 3E FRAME COMMANDS
630 38.2 Device Access
■Bit access points, word access points, double-word access points
Item Description Number of points
ASCII code Binary code
Bit access points Specify the number of bit device points in one-point 1 to 94 1 to 188
units. When device memory extension When device memory extension
specification is used specification is used
1 to 47 1 to 94
Word access points Specify the number of points to be accessed in 1 (word access points 12 + 1 word access points 12 +
one-word units. double-word access points 14) 2 double-word access points 14
The bit device is 16-point units, the word device is 1920 1920*1
one-word units. When device memory extension When device memory extension
specification is used, double the specification is used, double the
Double-word access points Specify the number of points to be accessed in
number of the access points. number of the access points.
two-word units.
The bit device is 32-point units, the word device is
two-word units.
*1 When the subcommand 0000H is specified in the Ethernet module, the number of points is:
1 (number of word access points) 18 + (number of double-word access points) 20 1962 points
Precautions
Random Write (1402H) is not applicable to the following devices (contacts and coils).
• Timers (TS and TC)
• Accumulated timers (STS and STC)
• Counters (CS and CC)
■Set or reset
Specify ON/OFF of the bit device.
• 2 digit code/6 digit number specification
Item Data to write Remark
ON OFF
ASCII code "01" "00" Two characters will be sent in order from "0".
Binary code 01H 00H The one-byte numerical value shown left will be sent.
38 3E FRAME COMMANDS
38.2 Device Access 631
Response data
There is no response data for the Write Random command.
Communication example
■When writing data in bit units
Turn off M50 and turn on Y27.
• When communicating data in ASCII code (X, Y OCT)
(Request data)
Bit
access Device Set or Device Set or
Subcommand points code Device No. reset code Device No. reset
1 4 0 2 0 0 0 1 0 2 M * 0 0 0 0 5 0 0 0 Y * 0 0 0 0 2 7 0 1
31H 34H 30H 32H 30H 30H 30H 31H 30H 32H 4DH 2AH 30H 30H 30H30H 35H 30H 30H 30H 59H 2AH 30H 30H 30H30H 32H 37H 30H 31H
02H 14H 01H 00H 02H 32H 00H 00H 90H 00H 27H 00H 00H 9DH 01H
38 3E FRAME COMMANDS
632 38.2 Device Access
■When writing data in word units
Write the value in a device as follows.
Item Target device
Word access D0, D1, M100 to M115, X20 to X37
Double-word access D1500 to D1501, Y160 to Y217, M1111 to M1142
1 4 0 2 0 0 0 0 0 4 0 3
31H 34H 30H 32H 30H 30H 30H 30H 30H 34H 30H 33H
Device Device
code Device No. Write data code Device No. Write data
D * 0 0 0 0 0 0 0 5 5 0 D * 0 0 0 0 0 1 0 5 7 5
44H 2AH 30H 30H 30H 30H 30H 30H 30H 35H 35H 30H 44H 2AH 30H 30H 30H 30H 30H 31H 30H 35H 37H 35H
Data 1 Data 2
38
M * 0 0 0 1 0 0 0 5 4 0 X * 0 0 0 0 2 0 0 5 8 3
4DH 2AH 30H 30H 30H 31H 30H 30H 30H 35H 34H 30H 58H 2AH 30H 30H 30H 30H 32H 30H 30H 35H 38H 33H
Data 3
D * 0 0 1 5 0 0 0 4 3 9 1 2 0 2 Y * 0 0 0 1 6 0 2 3 7 5 2 6 0 7
44H 2AH 30H 30H 31H 35H 30H 30H 30H 34H 33H 39H 31H 32H 30H 32H 59H 2AH 30H 30H 30H 31H 36H 30H 32H 33H 37H 35H 32H 36H 30H 37H
Data 4
M * 0 0 1 1 1 1 0 4 2 5 0 4 7 5
4DH 2AH 30H 30H 31H 31H 31H 31H 30H 34H 32H 35H 30H 34H 37H 35H
0 5 4 0 2 3 0 7
0 5 8 3 0 4 7 5
38 3E FRAME COMMANDS
38.2 Device Access 633
• When communicating data in binary code
(Request data)
Word Double-word
access access
points points
Subcommand
00H 00H 00H A8H 50H 05H 01H 00H 00H A8H 75H 05H 64H 00H 00H 90H 40H 05H 20H 00H 00H 9CH 83H 05H
Data 3 Data 4
DCH 05H 00H A8H 02H 12H 39H 04H 60H 01H 00H 9DH 07H 26H 75H 23H 57H 04H 00H 90H 75H 04H 25H 04H
4 0 0 5 0 OFF
1 ON
Data 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1
M107 to M100 M115 to M108
8 3 0 5 0 OFF
1 ON
Data 2 1 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1
0 7 2 6 7 5 2 3 0 OFF
1 ON
Data 3 0 0 0 0 0 1 1 1 0 0 1 0 0 1 1 0 0 1 1 1 0 1 0 1 0 0 1 0 0 0 1 1
Y167 to Y160 Y177 to Y170 Y207 to Y200 Y217 to Y210
7 5 0 4 2 5 0 4 0 OFF
1 ON
Data 4 0 1 1 1 0 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 1 0 0
38 3E FRAME COMMANDS
634 38.2 Device Access
Device Read Block
The examples shown in this section explain the control procedure for reading by randomly specifying multiple blocks, where 1
block consists of n point(s) of a bit device memory (one point is specified by 16-bit) and a word device memory (one point is
specified by 1-word).
Data array in the character area during the device read block
This section explains how data is ordered in the character areas during device read block.
Subcommand
device blocks
Number of word
device blocks
Number of bit
Device code
No.
Word device
devices
Number of
Device code
No.
Word device
devices
Number of
(Data name)
---
External
equipment
H - - L H - - L H L H L H - - - - L H - - L H - - - - L H - - L
Specify the target device to be read. Specify the target device to be read.
(1st block) (nth block)
Specify the target device to be read. (for the specified number of word device blocks)
38
Device code
devices
Number of
Device code
devices
Number of
---
H - - - - L H - - L H - - - - L H - - L
Specify the target device to be read. Specify the target device to be read.
(1st block) (mth block)
Specify the target device to be read. (for the specified number of bit device blocks)
(Response data)
Data
Data
Data
Data
Data
Data
Data
Data
1st block
device in the
1st word
1st block
device in the
2nd word
nth block
device in the
1st word
nth block
device in the
Last word
block
in the 1st
1st bit device
1st block
device in the
2nd bit
block
in the mth
1st bit device
mth block
device in the
Last bit
(Data name)
--- --- --- ---
Ethernet-equipped
module
H - - L H - - L H - - L H - - L H - - L H - - L H - - L H - - L
Total number of each block of the read word device data Total number of each block of the read bit device data
Subcommand
device blocks
Number of word
device blocks
Number of bit
No.
Word device
Device code
devices
Number of
No.
Word device
Device code
devices
Number of
Device code
devices
Number of
Device code
devices
Number of
Device code
devices
Number of
(Data name)
--- ---
External
equipment
L H L H L - H L H L - H L H L - H L H L - H L H L - H L H
Specify the target Specify the target Specify the target Specify the target
device to be read. device to be read. device to be read. device to be read.
(1st block) (nth block) (1st block) (mth block)
Specify the target device to be read. (for the Specify the target device to be read. (for the
specified number of word device blocks) specified number of bit device blocks)
(Response data)
Data
Data
Data
Data
Data
Data
Data
Data
1st block
device in the
1st word
1st block
device in the
2nd word
nth block
device in the
1st word
nth block
device in the
Last word
block
in the 1st
1st bit device
1st block
device in the
2nd bit
block
in the mth
1st bit device
mth block
device in the
Last bit
(Data name)
--- --- --- ---
Ethernet-equipped
module
L H L H L H L H L H L H L H L H
Total number of each block of the read word device data Total number of each block of the read bit device data
38 3E FRAME COMMANDS
38.2 Device Access 635
Contents of the character areas during device read block
This section explains what is in the character area when a device read block function is performed.
Ex.
For 5 blocks: Converted to "05", and sent sequentially from "0".
For 20 blocks: Converted to "14", and sent sequentially from "1".
• When communicating data in binary code
1-byte numeric value indicating the number of blocks is transmitted.
Ex.
For 5 blocks: 05H is sent.
For 20 blocks: 14H is sent.
• Specify the number of blocks so the following condition is satisfied:
120 number of word device blocks + number of bit device blocks
• When setting either number of blocks to 0, the corresponding device number, device code, number of device points, and
data specification are not necessary.
Ex.
Internal relay M1234 and link register W1234:
The internal relay M1234 is converted to "001234" or " 1234", and the link register W1234 is converted to "001234" or "
__1234". In both cases, the transmission starts from "0" or " " (space).
• When communicating data in binary code
The head device number of each block is indicated in a 3-byte numeric value and sent.
Ex.
Internal relay M1234 and link register W1234:
Internal relay M1234 becomes 0004D2H and is sent in the order of D2H, 04H, and 00H.
The link register W1234 is converted to 001234H and sent in the order of 34H, 12H, and 00H.
38 3E FRAME COMMANDS
636 38.2 Device Access
■Device code
This data is for identifying the head device memory for each block for which batch read is performed.
The device code for each device is shown in Page 611 Device range.
Precautions
Double word devices and long index registers (LZ) cannot be used in the multiple block batch read (0406H).
• When communicating data in ASCII code
Each device code is converted to 2-digit ASCII code (hexadecimal) and sent.
Ex.
Internal relay (M) and link register (W):
The internal relay (M) is converted to "M*" and link register (W) is converted to "W*", and sent from "M" and "W" respectively.
• When communicating data in binary code
1-byte numeric value indicating each device code is sent.
Ex.
Internal relay (M) and link register (W):
90H is transmitted for the internal relay (M) and B4H is sent for the link register (W).
■Number of devices 38
This data is for specifying the number of points in the continuous device range of each block for which batch read is performed
(1 point = 16 bits for bit device memory and 1 point = 1 word for word device memory), where one block consists of continuous
word or bit devices.
• When communicating data in ASCII code
The number of points for each block is converted to a 4-digit ASCII code (hexadecimal) and sent.
Ex.
For 5 points: Converted to "0005", and sent sequentially from "0".
For 20 points: Converted to "0014", and sent sequentially from "0".
• When communicating data in binary code
2-byte numeric value indicating the number of points for each block is sent.
Ex.
For 5 points: Converted to 0005H, and sent sequentially from 05H.
For 20 points: Converted to 0014H, and sent sequentially from 14H.
• Specify number of devices so that the appropriate condition is satisfied
960 total number of points for all word device blocks + total number of points for all bit device blocks
The extension specification is allowed for the device memory being read using the device read block
functions.
38 3E FRAME COMMANDS
38.2 Device Access 637
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification
Specify the devices for the specified number of points.
Block 1
Extension
When extension is Extension Device
0 0 specification Device No. 0 0 0
specified specification modification code
30H 30H 30H 30H 30H
Block 1
Extension
When extension is Extension
specification
Device
0 0 specification code Head device No. 0 0 0 0
specified modification
30H 30H 30H 30H 30H 30H
38 3E FRAME COMMANDS
638 38.2 Device Access
■When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
When Number of Number of 1st word device in the nth block Last bit device in the mth block
extension is Subcommand word device bit device Device Number of Device Number
Device No. Device No.
not specified 06H 04H blocks blocks code devices code of devices
Block 1
Device Direct
Extension
When extension modification, Device specification Extension memory
Device No.
is specified
indirect
specification
code modification specification specification
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
When Number of Number of 1st word device in the nth block Last bit device in the mth block
extension is
not specified 06H 04H
Subcommand word device bit device
blocks blocks
Device No.
Device
code
Number of devices Device No.
Device
code
Number of devices 38
Block 1
Device
Extension Extension Direct
When extension modification, Device specification memory
Device No.
is specified
indirect
specification
code modification specification specification
Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification 30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification
30H 30H 38H 32H
38 3E FRAME COMMANDS
38.2 Device Access 639
Device code, device No., number of device points
Specify the device points while satisfying the following conditions:
Total number of points for all word device blocks + total number of points for all bit device blocks 960
Item Description
Word device Specify the device points specified in "Number of word device blocks". When "Number of word device blocks" is set to 0,
this specification is unnecessary.
Bit device Specify the device points specified in "Number of bit device blocks". When "Number of bit device blocks" is set to 0, this
specification is unnecessary.
When specifying a contact and a coil of a timer, retentive timer, and counter, use the bit device block.
Set up in order of word device bit device.
Response data
Data of the specified word device blocks Data of the specified bit device blocks
1st block data ... nth block data 1st block data ... mth block data
Communication example
Values are read from devices as follows.
Item Read contents
Word device • Block 1: D0 to D3 (4 points)
• Block 2: W100 to W107 (8 points)
Bit device • Block 1: M0 to M31 (2 points)
• Block 2: M128 to M159 (2 points)
• Block 3: B100 to B12F (3 points)
Command Subcommand
0 4 0 6 0 0 0 0 0 2 0 3
30H 34H 30H 36H 30H 30H 30H 30H 30H 32H 30H 33H
Device Device
code Device No. Number of devices code Device No. Number of devices
D * 0 0 0 0 0 0 0 0 0 4 W * 0 0 0 1 0 0 0 0 0 8
44H 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 34H 57H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H
Device Device
code Device No. Number of devices code Device No. Number of devices
M * 0 0 0 0 0 0 0 0 0 2 M * 0 0 0 1 2 8 0 0 0 2
4DH 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 32H 4DH 2AH 30H 30H 30H 31H 32H 38H 30H 30H 30H 32H
Device
code Device No. Number of devices
B * 0 0 0 1 0 0 0 0 0 3
42H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H
38 3E FRAME COMMANDS
640 38.2 Device Access
(Response data)
1st block data of the 2nd block data of the
specified word device specified word device
0 0 0 8 2 0 3 0 1 5 4 5 2 8 0 0 0 9 7 0 ... 0 1 3 1
30H 30H 30H 38H 32H 30H 33H 30H 31H 35H 34H 35H 32H 38H 30H 30H 30H 39H 37H 30H 30H 31H 33H 31H
D0 D1 D2 D3 W100 to W107
M15 to M0 M31 to M16 M143 to M128 M159 to M144 B10F to B100 B11F to B110 B12F to B120
2 0 3 0 4 8 4 9 C 3 D E 2 8 0 0 0 9 7 0 B 9 A F B 9 A F
32H 30H 33H 30H 34H 38H 34H 39H 43H 33H 44H 45H 32H 38H 30H 30H 30H 39H 37H 30H 42H 39H 41H 46H 42H 39H 41H 46H
1st block data of the 2nd block data of the 3rd block data of the
specified bit device specified bit device specified bit device
0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0
0 = OFF
1 = ON 38
M15 to M0
Command Subcommand
Device Number Device Number Device Number Device Number of Device Number
Device No. code of devices Device No. code of devices Device No. code of devices Device No. code devices Device No. code of devices
00H 00H 00H A8H 04H 00H 00H 01H 00H B4H 08H 00H 00H 00H 00H 90H 02H 00H 80H 00H 00H 90H 02H 00H 00H 01H 00H A0H 03H 00H
(Response data)
1st block data of 2nd block data of 3rd block data of the
1st block data of the 2nd block data of the specified the specified specified bit
specified word device the specified word device bit device bit device device
...
08H 00H 30H 20H 45H 15H 00H 28H 70H 09H 31H 01H 30H 20H 49H 48H DEH C3H 00H 28H 70H 09H AFH B9H AFH B9H
38 3E FRAME COMMANDS
38.2 Device Access 641
Device Write Block
The examples shown in this section explain the control procedure for writing by randomly specifying multiple blocks, where 1
block consists of n point(s) of a bit device memory (one point is specified by 16-bit) and a word device memory (one point is
specified by 1-word).
Data array in the character area during the device write block
This section explains how data is ordered in the character areas during device write block.
Subcommand
device blocks
Number of word
device blocks
Number of bit
Device code
No.
Word device
devices
Number of
Data
Data
Device code
No.
Word device
devices
Number of
1st block
device in the
1st word
1st block
device in the
2nd word
(Data name)
---
External
equipment
H - - L H - - L H L H L H - - - - L H - - L H - - L H - - L H - - - - L H - - L
Data
Device code
devices
Number of
Data
Data
Device code
devices
Number of
Data
Data
nth block
device in the
1st word
nth block
device in the
Last word
block
in the 1st
1st bit device
1st block
device in the
2nd bit
block
in the mth
1st bit device
mth block
device in the
Last bit
--- --- ---
H - - L H - - L H - - - - L H - - L H - - L H - - L H - - - - L H - - L H - - L H - - L
Specify the target word device Specify the target bit device Specify the target bit device
data to be written. (for the data to be written. (for the data to be written. (for the
device point of the nth block) device point of the 1st block) device point of the mth block)
(Response data)
(Data name)
Ethernet-equipped module
38 3E FRAME COMMANDS
642 38.2 Device Access
■When communicating data in binary code
(Request data)
Command
Subcommand
device blocks
Number of word
device blocks
Number of bit
No.
Word device
Device code
devices
Number of
Data
Data
No.
Word device
Device code
devices
Number of
Data
Data
1st block
device in the
1st word
1st block
device in the
2nd word
nth block
device in the
1st word
nth block
device in the
Last word
(Data name)
--- ---
External
equipment
L H L H L - H L H L H L H L - H L H L H L H
Specify the target word device Specify the target word device
data to be written. (for the data to be written. (for the
device point of the 1st block) device point of the nth block)
Bit device No.
Device code
devices
Number of
Data
Data
Device code
devices
Number of
Data
Data
block
in the 1st
1st bit device
1st block
device in the
2nd bit
block
in the mth
1st bit device
mth block
device in the
Last bit
--- ---
L - H L H L H L H L - H L H L H L H
Specify the target bit device Specify the target bit device
data to be written. (for the
device point of the 1st block)
data to be written. (for the
device point of the mth block)
38
(Response data)
(Data name)
Ethernet-equipped module
Ex.
For 5 blocks: Converted to "05", and sent sequentially from "0".
For 20 blocks: Converted to "14", and sent sequentially from "1".
• When communicating data in binary code
1-byte numeric value indicating the number of blocks is transmitted.
Ex.
For 5 blocks: 05H is sent.
For 20 blocks: 14H is sent.
• Specify the number of blocks so the following condition is satisfied:
120 number of word device blocks + number of bit device blocks
• When setting either number of blocks to 0, the corresponding device number, device code, number of device points, and
data specification are not necessary.
38 3E FRAME COMMANDS
38.2 Device Access 643
■Word device number and bit device number
This data is for specifying the head word device or bit device for each block to which batch write is performed, where
continuous word or bit devices are considered one block.
• When communicating data in ASCII code
The head device number of each block is converted to 6-digit ASCII code and sent.
Ex.
Internal relay M1234 and link register W1234:
The internal relay M1234 is converted to "001234" or " 1234", and the link register W1234 is converted to "001234" or "
__1234". In both cases, the transmission starts from "0" or " " (space).
• When communicating data in binary code
The head device number of each block is indicated in a 3-byte numeric value and sent.
Ex.
Internal relay M1234 and link register W1234:
Internal relay M1234 becomes 0004D2H and is sent in the order of D2H, 04H, and 00H.
The link register W1234 is converted to 001234H and sent in the order of 34H, 12H, and 00H.
■Device code
This data is for identifying the head device memory for each block for which batch write is performed.
The device code for each device is shown in Page 611 Device range.
Precautions
Double word devices and long index registers (LZ) cannot be used in the multiple block batch write (1406H).
• When communicating data in ASCII code
Each device code is converted to 2-digit ASCII code (hexadecimal) and sent.
Ex.
Internal relay (M) and link register (W):
The internal relay (M) is converted to "M*" and link register (W) is converted to "W*", and sent from "M" and "W" respectively.
• When communicating data in binary code
1-byte numeric value indicating each device code is sent.
Ex.
Internal relay (M) and link register (W):
90H is transmitted for the internal relay (M) and B4H is sent for the link register (W).
38 3E FRAME COMMANDS
644 38.2 Device Access
■Number of devices
This data is for specifying the number of points in the continuous device range of each block for which batch write is
performed (1 point = 16 bits for bit device memory and 1 point = 1 word for word device memory), where one block consists of
continuous word or bit devices.
• When communicating data in ASCII code
The number of points for each block is converted to a 4-digit ASCII code (hexadecimal) and sent.
Ex.
For 5 points: Converted to "0005", and sent sequentially from "0".
For 20 points: Converted to "0014", and sent sequentially from "0".
• When communicating data in binary code
2-byte numeric value indicating the number of points for each block is sent.
Ex.
For 5 points: Converted to 0005H, and sent sequentially from 05H.
For 20 points: Converted to 0014H, and sent sequentially from 14H.
• Specify number of devices so that the appropriate condition is satisfied
760 4 (number of word device blocks + number of bit device blocks) + total number of points for all word device blocks +
total number of points for all bit device blocks
38
The extension specification is allowed for the device memory being written to using the device write block
functions.
38 3E FRAME COMMANDS
38.2 Device Access 645
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points.
Block 1
Extension
When Extension Device
0 0 specification Device No. 0 0 0
extension is specification modification code
30H 30H 30H 30H 30H
specified
2 bytes 4 bytes 3 bytes 2 bytes 6 bytes 3 bytes
4 digit code/8 digit number specification Specify the devices for the specified number of points.
Block 1
Extension
When extension Extension specification
Device
is specified 0 0 specification code Head device No. 0 0 0 0
modification
30H 30H 30H 30H 30H 30H
38 3E FRAME COMMANDS
646 38.2 Device Access
■When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
When 1st word device in the nth block Last bit device in the mth block
Number of Number of
extension Subcommand word device bit device
Head device Written device Head device Written device
is not blocks blocks Device No. Device Number of Data 1 Data n Device No.
Device Number of Data 1
Data n
specified 06H 14H code devices code devices
Block 1
Device
Device Extension Extension Direct
When modification,
specification specification memory
indirect Device No. code
extension is specification modification specification
specified
2 bytes 3 bytes 1 byte 2 bytes 2 bytes 1 byte
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
When
Number of Number of
1st word device in the nth block Last bit device in the mth block 38
extension Subcommand word device bit device
Head device Written device Head device Written device
is not blocks blocks Device No.
Device
Number of devices Data 1 Data n Device No.
Device
Number of devices Data 1 Data n
specified 06H 14H code code
Block 1
Device
When modification, Device Extension Extension Direct
Device No. specification
extension is
indirect code modification specification memory
specification specification
specified
2 bytes 4 bytes 2 bytes 2 bytes 2 bytes 1 byte
Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification 30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification 30H 30H 38H 32H
38 3E FRAME COMMANDS
38.2 Device Access 647
Number of word device blocks and number of bit device blocks
Specify the number of blocks of the device to be write in hexadecimal.
Item Description Number of points
ASCII code Binary code
CPU module Ethernet
module, FX5-
CCLGN-MS,
FX5-CCLIEF,
FX5-40SSC-G,
FX5-80SSC-G
Number of word device Specify the number of blocks of the word device (Number of word device blocks + Number of word device blocks +
blocks to be write. number of bit device blocks) 2 120 number of bit device blocks 120 and
and ((Number of word device blocks (Number of word device blocks +
Number of bit device Specify the number of blocks of the bit device to
blocks be write. + number of bit device blocks) 4 + number of bit device blocks) 4 +
Total points of each block of word Total points of each block of word
device + total points of each block of device + total points of each block of
bit device) 2 760 bit device 760
When specifying a contact and a coil of a timer, retentive timer, and counter, use the bit device block.
Set up in order of word device bit device.
Response data
There is no response data for the device write block command.
Communication example
Write values from devices as follows.
Item Write contents
Word device • Block 1: D0 to D3 (4 points)
• Block 2: W100 to W107 (8 points)
Bit device • Block 1: M0 to M31 (2 points)
• Block 2: M128 to M159 (2 points)
• Block 3: B100 to B12F (3 points)
38 3E FRAME COMMANDS
648 38.2 Device Access
■When communicating data in ASCII code
(Request data)
Command Subcommand
1 4 0 6 0 0 0 0 0 2 0 3
31H 34H 30H 36H 30H 30H 30H 30H 30H 32H 30H 33H
Device
code Device No. Number of devices Write data
D * 0 0 0 0 0 0 0 0 0 4 0 0 0 8 2 8 0 0
44H 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 34H 30H 30H 30H 38H 32H 38H 30H 30H
D0 to D3
Device
code Device No. Number of devices Write data
W * 0 0 0 1 0 0 0 0 0 8 0 9 7 0 0 1 3 1
57H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H 30H 39H 37H 30H 30H 31H 33H 31H
W100 to W107
38
Device
code Device No. Number of devices Write data
M * 0 0 0 0 0 0 0 0 0 2 2 0 3 0 4 8 4 9
4DH 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 32H 32H 30H 33H 30H 32H 38H 34H 39H
M * 0 0 0 1 2 8 0 0 0 2 C 3 D E 2 8 0 0
4DH 2AH 30H 30H 30H 31H 32H 38H 30H 30H 30H 32H 43H 33H 44H 45H 32H 38H 30H 30H
B * 0 0 0 1 0 0 0 0 0 3 0 9 7 0 B 9 A F
42H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H 30H 39H 37H 30H 42H 39H 41H 46H
B 9 A F
1 0 1 1 1 0 0 1 1 0 1 0 1 1 1 1 0 = OFF
1 = ON
B12F to B120
38 3E FRAME COMMANDS
38.2 Device Access 649
■When communicating data in binary code
(Request data)
Number of word device Number of bit device
blocks blocks
Command Subcommand
00H 00H 00H A8H 04H 00H 08H 00H 00H 28H 00H 01H 00H B4H 08H 00H 70H 09H 31H 01H
D0 to D3 W100 to W107
00H 00H 00H 90H 02H 00H 30H 20H 49H 48H 80H 00H 00H 90H 02H 00H DEH C3H 00H 28H
00H 01H 00H A0H 03H 00H 70H 09H AFH B9H
to B12F to B120
7 0 0 9
0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 = OFF
1 = ON
B107 to B100 B10F to B108
38 3E FRAME COMMANDS
650 38.2 Device Access
38.3 Remote Control
This section describes the command to set the SLMP compatible device or Ethernet-equipped module to the RUN status or
STOP status by a message from the external device.
The accessed device or module is turned off and on or reset after remote operation
The information about the remote operation will be deleted.
Ex.
Even if the Remote STOP is executed when the switch of the Ethernet-equipped module is in the RUN status, the switch will
return to the RUN status after resetting the module.
Remote RUN
This command executes Remote RUN to the access destination module.
Remote RUN can be executed when the switch of the access destination module is in the RUN status. Even if
the switch is in the STOP status, Remote RUN (command: 1001H) will be completed normally. However, the
access destination does not change to the RUN status.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes 2 bytes 2 bytes
Clear
1 0 0 1 Subcommand Mode mode 0 0
31H 30H 30H 31H 30H 30H 30H 30H 30H 30H
Clear
Subcommand Mode
mode
01H 10H 00H 00H 00H
38 3E FRAME COMMANDS
38.3 Remote Control 651
■Mode
This mode specifies whether Remote RUN can be executed forcibly by a device other than the external device which
performed Remote STOP or Remote PAUSE. If forced execution is not allowed, Remote RUN can be executed only by the
external device which performed Remote STOP or Remote PAUSE.
Forced execution is used when the external device which performed the remote operation cannot execute Remote RUN
because of a problem with the device.
Item Mode
ASCII code Binary code
Forced execution not allowed (Remote RUN cannot be executed when other device
executes Remote STOP or Remote PAUSE.)
0 0 0 1
30H 30H 30H 31H 01H 00H
Forced execution allowed (Remote RUN can be executed when other device
executes Remote STOP or Remote PAUSE.)
0 0 0 3
30H 30H 30H 33H 03H 00H
■Clear mode
This mode specifies whether the clear (initialization) processing of device is executed when starting the calculation for the
Remote RUN.
Only 00H is valid.
Item Mode
ASCII code Binary code
Do not clear the device
0 0
30H 30H 00H
Response data
There is no response data for the Remote RUN command.
Communication example
Set mode to "Forced execution not allowed.", and set clear mode to "Clear all devices including that in the latch range" when
executing Remote RUN.
• When communicating data in ASCII code
(Request data)
Clear
Mode mode
1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0
31H 30H 30H 31H 30H 30H 30H 30H 30H 30H 30H 31H 30H 30H 30H 30H
38 3E FRAME COMMANDS
652 38.3 Remote Control
Remote STOP
This command executes Remote STOP to the access destination module.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 2 Subcommand 0 0 0 0
31H 30H 30H 32H 30H 30H 30H 30H 30H 30H 30H 30H
Subcommand
38
Response data
There is no response data for the Remote STOP command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
Remote PAUSE
This command executes Remote PAUSE to the access destination module.
Remote PAUSE can be executed when the switch of the access destination module is in the RUN status.
Even if the switch is in the STOP status, Remote PAUSE (command: 1003H) will be completed normally.
However, the access destination does not change to the PAUSE status.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 3 Subcommand Mode
31H 30H 30H 33H 30H 30H 30H 30H
Subcommand Mode
38 3E FRAME COMMANDS
38.3 Remote Control 653
■Mode
This mode specifies whether Remote PAUSE can be executed forcibly by a device other than the external device which
performed Remote STOP or Remote PAUSE. If forced execution is not allowed, Remote PAUSE can be executed only by the
external device which performed Remote STOP or Remote PAUSE.
Forced execution is used when the external device which performed the remote operation cannot execute Remote PAUSE
because of a problem with the device.
Item Mode
ASCII code Binary code
Forced execution not allowed (Remote PAUSE cannot be executed when other
device executes Remote STOP or Remote PAUSE.)
0 0 0 1
30H 30H 30H 31H 01H 00H
Forced execution allowed (Remote PAUSE can be executed when other device
executes Remote STOP or Remote PAUSE.)
0 0 0 3
30H 30H 30H 33H 03H 00H
Response data
There is no response data for the Remote PAUSE command.
Communication example
Set mode to "Forced execution not allowed" when executing Remote PAUSE.
1 0 0 3 0 0 0 0 0 0 0 1
31H 30H 30H 33H 30H 30H 30H 30H 30H 30H 30H 31H
Mode
Before executing the remote latch clear, set the status of the access destination module to STOP.
While the access destination is stopped or paused remotely by request from another external device:
• The remote latch clear cannot be executed. Abnormal completion of the command will occur.
• Cancel the Remote STOP or Remote PAUSE before executing the command.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 5 Subcommand 0 0 0 0
31H 30H 30H 35H 30H 30H 30H 30H 30H 30H 30H 30H
38 3E FRAME COMMANDS
654 38.3 Remote Control
■When communicating data in binary code
2 bytes 2 bytes 2 bytes
Subcommand
Response data
There is no response data for remote latch clear command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
Remote RESET
This command executes Remote RESET to the access destination module. Remote RESET is used to restore when an error
occurred in the SLMP compatible device.
Precautions
• In some cases, Remote RESET cannot be executed because of hardware error, etc.
• The response message when Remote RESET is executed may not be sent back to the external device since the access
destination is reset.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 6 Subcommand 0 0 0 0
31H 30H 30H 36H 30H 30H 30H 30H 30H 30H 30H 30H
Subcommand
Response data
There is no response data for the Remote RESET command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
38 3E FRAME COMMANDS
38.3 Remote Control 655
Processor type read
This command reads the processor module name code (processor type) of the access destination module.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes
0 1 0 1 Subcommand
30H 31H 30H 31H 00H 00H 00H 00H
Subcommand
Response data
■When communicating data in ASCII code
16 bytes 4 bytes
Model Model
code
Model Model
code
■Model
The characters of the module model are stored for 16 characters from the upper byte.
If the model to be read is less than 16 characters, space (20H) is stored for the remaining characters. Even when
communicating data in binary code, the module model is stored in ASCII code.
■Model code
The following model codes will be stored.
When communicating in ASCII code, the data is stored in order from the upper byte to the lower byte.
When communicating in binary code, the data is stored in order from the lower byte to the upper byte.
Model Model code (hexadecimal)
FX5U-32MR/ES 4A21H
FX5U-64MR/ES 4A23H
FX5U-80MR/ES 4A24H
FX5U-32MT/ES 4A29H
FX5U-64MT/ES 4A2BH
FX5U-80MT/ES 4A2CH
FX5U-32MT/ESS 4A31H
FX5U-64MT/ESS 4A33H
FX5U-80MT/ESS 4A34H
FX5U-32MR/DS 4A41H
FX5U-64MR/DS 4A43H
FX5U-80MR/DS 4A44H
38 3E FRAME COMMANDS
656 38.3 Remote Control
Model Model code (hexadecimal)
FX5U-32MT/DS 4A49H
FX5U-64MT/DS 4A4BH
FX5U-80MT/DS 4A4CH
FX5U-32MT/DSS 4A51H
FX5U-64MT/DSS 4A53H
FX5U-80MT/DSS 4A54H
FX5UC-32MT/D 4A91H
FX5UC-64MT/D 4A92H
FX5UC-96MT/D 4A93H
FX5UC-32MT/DSS 4A99H
FX5UC-64MT/DSS 4A9AH
FX5UC-96MT/DSS 4A9BH
FX5UC-32MR/DS-TS 4AA9H
FX5UC-32MT/DS-TS 4AB1H
FX5UC-32MT/DSS-TS 4AB9H
FX5UJ-24MR/ES 4B0DH
FX5UJ-40MR/ES 4B0EH
FX5UJ-60MR/ES 4B0FH 38
FX5UJ-24MT/ES 4B14H
FX5UJ-40MT/ES 4B15H
FX5UJ-60MT/ES 4B16H
FX5UJ-24MT/ESS 4B1BH
FX5UJ-40MT/ESS 4B1CH
FX5UJ-60MT/ESS 4B1DH
FX5S-30MR/ES 4B4EH
FX5S-40MR/ES 4B4FH
FX5S-60MR/ES 4B50H
FX5S-80MR/ES*1 4B51H
FX5S-30MT/ES 4B55H
FX5S-40MT/ES 4B56H
FX5S-60MT/ES 4B57H
FX5S-80MT/ES*1 4B58H
FX5S-30MT/ESS 4B5CH
FX5S-40MT/ESS 4B5DH
FX5S-60MT/ESS 4B5EH
FX5S-80MT/ESS*1 4B5FH
*1 Area-specific model
38 3E FRAME COMMANDS
38.3 Remote Control 657
Communication example
■When communicating data in ASCII code
(Request data)
0 1 0 1 0 0 0 0
30H 31H 30H 31H 30H 30H 30H 30H
(Response data)
F X 5 U - 3 2 M R / E S 4 A 2 1
46H 58H 35H 55H 2DH 33H 32H 4DH 52H 2FH 45H 53H 20H 20H 20H 20H 34H 41H 32H 31H
(Response data)
F X 5 U - 3 2 M R / E S
46H 58H 35H 55H 2DH 33H 32H 4DH 52H 2FH 45H 53H 20H 20H 20H 20H 21H 4AH
38 3E FRAME COMMANDS
658 38.3 Remote Control
38.4 Clear Error
This function turns off ERR LED of the CPU module from the external equipment and/or initializes the communication error
information or error code stored in the buffer memory.
This function is used to initialize the current error information due to an abnormal response for a command message and
return it to the normal state or initialize the error code storage area of the buffer memory.
The order and description of the data item with * shown in the figure of the control procedure differ depending on the frame
and pattern in a communication.
This function can be used only for the CPU module which is connected with the external equipment.
This function cannot be used for the CPU module of another station via the network system.
The data part of the command and control procedure when the display LEDs of the CPU module are turned off and the
communication error information is initialized from the external equipment is described.
Command
Function Command Processing content
(Subcommand) 38
Clear Error 1617 (0000) Turns off the display LEDs, initializes the error code, and others.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes
1 6 1 7 Subcommand
31H 36H 31H 37H 30H 30H 30H 30H
Subcommand
Response data
There is no response data for the Clear Error command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
38 3E FRAME COMMANDS
38.4 Clear Error 659
38.5 Self-Test
This function tests whether the communication function between the external equipment and Ethernet-equipped module
operates normally or not. The control procedure when this function is used is described with examples.
• At the startup of the Ethernet-equipped module or when trouble occurs, this function can check whether the
connection between the external equipment and Ethernet-equipped module is correct and/or whether the
data communication function operates normally.
• This function can be used only for the Ethernet-equipped module which is connected with the external
equipment (including a multi-drop connecting station). This function cannot be used for the Ethernet-
equipped module of another station via the network system.
Command
Function Command Processing content
(Subcommand)
Self-Test 0619 (0000) Checks whether a data communication is executed normally.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes "n" bytes
Number of
0 6 1 9 Subcommand loopback data Loopback data
30H 36H 31H 39H 30H 30H 30H 30H
Response data
The same number of the loopback data and loopback data which the external equipment sent are sent back to the external
equipment.
38 3E FRAME COMMANDS
660 38.5 Self-Test
Communication example
Send request messages from the external device by using the message format in the request data. (Page 660 Request
data)
Examples of test with loopback data "ABCDE" are given below.
0 6 1 9 0 0 0 0 0 0 0 5 A B C D E
30H 36H 31H 39H 30H 30H 30H 30H 30H 30H 30H 35H 41H 42H 43H 44H 45H
(Response data)
Number of
loopback data Loopback data
0 0 0 5 A B C D E
30H 30H 30H 35H 41H 42H 43H 44H 45H
A B C D E
19H 06H 00H 00H 05H 00H 41H 42H 43H 44H 45H
(Response data)
Number of
loopback data Loopback data
A B C D E
05H 00H 41H 42H 43H 44H 45H
38 3E FRAME COMMANDS
38.5 Self-Test 661
38.6 Remote Password Unlock or Lock
A remote password prevents illegal access from a user who is not allowed to operate the SLMP compatible device. The
following modules support this function.
• FX5 CPU module
• FX5-CCLGN-MS
• FX5-CCLIEF
• FX5-40SSC-G, FX5-80SSC-G
If a remote password is set to the SLMP compatible device, the remote password is checked when the SLMP compatible
device is accessed.
The following shows how to use a command to lock or unlock the remote password by the SLMP.
Control procedure
The following shows the control procedure when a remote password is set to the SLMP compatible device.
YES
Data is transferred.
YES
End
38 3E FRAME COMMANDS
662 38.6 Remote Password Unlock or Lock
• When the FX5CPU communicating data is set with a remote password, communication is enabled after the
completion of the unlock process until the lock process.
• All commands received while the remote password is in locked status will generate an error response.
(Execute communication after executing the remote password unlock process.)
• The remote password lock process is automatically performed when the line is disconnected.
Lock
This command changes the remote password from unlocked status to locked status. (Sets the device to the state where
communication is not possible.)
Command
Function Command Processing content
(Subcommand)
Remote password Lock 1631 (0000) Specifies a remote password and changes the unlock status to the lock status.
(Communication to the CPU module is disabled.)
Request data
38
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes "n" bytes
Remote
Subcommand password Remote
length (n) password
31H 16H 00H 00H
■Subcommand
Item Subcommand
ASCII code Binary code
Default Characters 0 0 0 0
Character code 30H 30H 30H 30H 00H 00H
■Remote password
Remote password is not used.
Response data
There is no response data for the lock command of the remote password.
38 3E FRAME COMMANDS
38.6 Remote Password Unlock or Lock 663
Communication example
■When performing the lock process in communication using ASCII code
Remote
Command Subcommand password length Remote password
1 6 3 1 0 0 0 0 0 0 1 A a b c d e f g h i j k l
31H 36H 33H 31H 30H 30H 30H 30H 30H 30H 31H 41H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH
m n o p q r s t u v w x y z
6DH 6EH 6FH 70H 71C 72H 73H 74H 75H 76H 77H 78H 79H 7AH
a b c d e f g h i j k l m n o p q r s t u v w x y z
31H 16H 00H 00H 1AH 00H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH 6DH 6EH 6FH 70H 71C 72H 73H 74H 75H 76H 77H 78H 79H 7AH
Unlock
This command changes the remote password from locked status to unlocked status. (Sets the device to the state where
communication is possible.)
Command
Function Command Processing content
(Subcommand)
Remote password Unlock 1630 (0000) Specifies a remote password and changes the lock status to the unlock status.
(Communication to the CPU module is enabled.)
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes "n" bytes
Remote
Remote
Subcommand password password
length (n)
30H 16H 00H 00H
■Subcommand
Item Subcommand
ASCII code Binary code
Default Characters 0 0 0 0
Character code 30H 30H 30H 30H 00H 00H
38 3E FRAME COMMANDS
664 38.6 Remote Password Unlock or Lock
■Remote password length
Specify the remote password length.
The password length is the specified characters (6 to 32 characters).
Item Remote password length (when the number of remote password characters is 32)
ASCII code Binary code
6 to 32 characters Characters 0 0 2 0
Character code 30H 30H 32H 30H 20H 00H
■Remote password
Specify the remote password set for the SLMP-compatible device, CPU module or intelligent function module using GX
Works3.
Specify the remote password using ASCII code also when communicating using binary code.
Response data
There is no response data for the unlock command of the remote password.
Communication example
■When performing the unlock process in communication using ASCII code 38
Remote
Command Subcommand password length Remote password
1 6 3 0 0 0 0 0 0 0 1 A a b c d e f g h i j k l
31H 36H 33H 30H 30H 30H 30H 30H 30H 30H 31H 41H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH
m n o p q r s t u v w x y z
6DH 6EH 6FH 70H 71C 72H 73H 74H 75H 76H 77H 78H 79H 7AH
a b c d e f g h i j k l m n o p q r s t u v w x y z
30H 16H 00H 00H 1AH 00H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH 6DH 6EH 6FH 70H 71C 72H 73H 74H 75H 76H 77H 78H 79H 7AH
38 3E FRAME COMMANDS
38.6 Remote Password Unlock or Lock 665
39 1E FRAME COMMANDS
This chapter explains 1E frame commands of SLMP.
For parts of the transmission message other than the command part, refer to Page 587 1E Frame.
39 1E FRAME COMMANDS
666 39.1 List of Commands and Functions
39.2 Device Access
This section explains the control procedure specification method and shows a specification example when the device memory
is read and written.
Commands
This section explains commands when the device memory is read or written.
Commands
Name Command Processing content
Batch Reading Bit units 00H Reads bit devices in 1 point units.
Word units 01H Reads bit devices in 16-point units.
Reads word devices in 1 point units.
Batch Writing Bit units 02H Writes bit devices in 1-point units.
Word units 03H Writes bit devices in 16-point units.
Writes word devices in 1-point units.
Test (random Write) Bit units 04H Sets or resets device memory to bit devices specified randomly in 1-point units.
Word units 05H Sets or resets device memory to bit devices specified randomly in 16-point units.
Writes device memory to word devices specified randomly in 1-point units.
39
39 1E FRAME COMMANDS
39.2 Device Access 667
Device range
This section shows accessible CPU module device.
Specify the device and device number range that exist in the module targeted for data read or write.
*1 [ASCII code]
If the device code is less than the specified character number, add a space (ASCII code: 20H) after the device code.
[Binary code]
When "Device code" is less than the size specified add "20H" at the end of the device code.
*2 : Accessible to the FX5 CPU module devices
: Inaccessible to the FX5 CPU module devices
: Accessible to a specific device of FX5 CPU module (cannot be directly specified)
*3 Depends on the communication data code. See below.
ASCII code (X, Y OCT): Octal
ASCII code (X, Y HEX), Binary code: Hexadecimal
*4 Access LCS0 to LCS55 by specifying CS200 to CS255.
*5 Access LCN0 to LCN55 by specifying CN200 to CN255.
*6 Access SM8000 to SM8511 by specifying M8000 to M8511.
*7 Access SD8000 to SD8511 by specifying D8000 to D8511.
39 1E FRAME COMMANDS
668 39.2 Device Access
Batch Reading
Data in devices are read in a batch.
Request data
■When communicating data in ASCII code
2 bytes 2 bytes 4 bytes 4 bytes 8 bytes 2 bytes 2 bytes
Number Fixed
0 0 PC No. Monitoring timer Device name Head device No.
of devices value
30H 30H
■Subheader
Specify the command selected from the data size.
Data size Command
ASCII code Binary code
(Upper column: characters, lower column:
character code) 39
Bit devices in 1 point units 0 0 00H
30H 30H
Bit devices in 16 point units 0 1 01H
Word devices in 1 point units 30H 31H
■PC No.
Specify the "FFH".
■Monitoring timer
Specify the "0000H".
■Device name
Specify the device code that corresponds to the device type to be read. (Page 668 Device range)
■Number of devices
Specify the number of devices of reading.
Item Number of devices
When reading data in 1-bit units 1 to 256 points
When reading data in 16-bit units 1 to 32 words (16 to 512 points)
When reading data in 1-word units 1 to 64 points
■Fixed value
Specify the "00H".
39 1E FRAME COMMANDS
39.2 Device Access 669
Response data
The read device value is stored in hexadecimal. The data order differs depending on the ASCII code or binary code.
Read data
Communication example
■When reading data in bit units
Values in M100 to M111 are read.
• When communicating data in ASCII code
(Request data)
Number Fixed
Subheader PC No. Monitoring timer Device name Head device No. of devices value
0 0 F F 0 0 0 0 4 D 2 0 0 0 0 0 0 0 6 4 0 C 0 0
30H 30H 46H 46H 30H 30H 30H 30H 34H 44H 32H 30H 30H 30H 30H 30H 30H 30H 36H 34H 30H 43H 30H 30H
(Response data)
1 0 0 0 1 0 1 1 0 0 0 0 0 = OFF
1 = ON
31H 30H 30H 30H 31H 30H 31H 31H 30H 30H 30H 30H
M100 to M111
00H FFH 00H 00H 64H 00H 00H 00H 20H 4DH 0CH 00H
(Response data)
0 = OFF
1 = ON
10H 10H 10H 10H 10H 10H
M101 M111
to
M100 M110
0 1 F F 0 0 0 0 5 9 2 0 0 0 0 0 0 0 4 0 0 2 0 0
30H 30H 46H 46H 30H 30H 30H 30H 35H 39H 32H 30H 30H 30H 30H 30H 30H 30H 34H 30H 30H 32H 30H 30H
(Response data)
8 2 9 D 5 5 3 E
38H 32H 39H 44H 35H 35H 33H 45H
8 2 9 D 5 5 3 E
0 = OFF
100 0001 0100 1110 1010 1010 1001 1111 0
1 = ON
Y117 to Y100 Y137 to Y120
39 1E FRAME COMMANDS
670 39.2 Device Access
• When communicating data in binary code
(Request data)
Monitoring Device Number Fixed
Subheader PC No. timer Head device No. name of devices value
01H FFH 00H 00H 40H 00H 00H 00H 20H 59H 02H 00H
(Response data)
9 D 8 2 3 E 5 5
0 = OFF
100 1110 1100 0001 0001 1111 0010 1010 1 1 = ON
Y107 to Y100 Y117 to Y110 Y127 to Y120 Y137 to Y130
0 1 F F 0 0 0 0 4 4 2 0 0 0 0 0 0 0 6 4 0 3 0 0 39
30H 30H 46H 46H 30H 30H 30H 30H 34H 34H 32H 30H 30H 30H 30H 30H 30H 30H 36H 34H 30H 33H 30H 30H
(Response data)
1 2 3 4 0 0 0 5 6 7 8 9
31H 32H 33H 34H 30H 30H 30H 35H 36H 37H 38H 39H
01H FFH 00H 00H 64H 00H 00H 00H 20H 44H 03H 00H
(Response data)
39 1E FRAME COMMANDS
39.2 Device Access 671
Batch Writing
Data in devices are written in a batch.
Request data
■When communicating data in ASCII code
2 bytes 2 bytes 4 bytes 4 bytes 8 bytes 2 bytes 2 bytes
0 2 PC No. Monitoring timer Device name Head device No. Number Fixed
of devices value
30H 32H
■Subheader
Specify the command selected based on the data size.
Data size Command
ASCII code Binary code
(Upper column: characters, lower column:
character code)
Bit devices in 1 point units 0 2 02H
30H 32H
Bit devices in 16 point units 0 3 03H
Word devices in 1 point units 30H 33H
■PC No.
Specify the "FFH".
■Monitoring timer
Specify the "0000H".
■Device name
Specify the device code that corresponds to the device type to be read. (Page 668 Device range)
Precautions
When specifying the command 03H, observe the following instructions.
• When the CPU module uses long counters, specify the number of long counter points 2 for the number of device points.
• The Ethernet module cannot use long counters.
■Number of devices
Specify the number of devices of reading.
Item Number of devices
When reading data in 1-bit units 1 to 160 points
When reading data in 16-bit units 1 to 10 words (16 to 160 points)
When reading data in 1-word units 1 to 64 points
■Fixed value
Specify the "00H".
Response data
There is no response data for the Batch Writing command.
39 1E FRAME COMMANDS
672 39.2 Device Access
Communication example
■When writing data in bit units
Values are written to M50 to M61.
• When communicating data in ASCII code
(Request data)
Number Fixed
Subheader PC No. Monitoring timer Device name Head device No. of devices value
0 2 F F 0 0 0 0 4 D 2 0 0 0 0 0 0 0 3 2 0 C 0 0
30H 32H 46H 46H 30H 30H 30H 30H 34H 44H 32H 30H 30H 30H 30H 30H 30H 30H 33H 32H 30H 43H 30H 30H
Write data
0 OFF
0 1 1 1 0 1 0 0 0 0 0 1
1 ON
30H 31H 31H 31H 30H 31H 30H 30H 30H 30H 30H 31H
M50 to M61
0 = OFF
1 = ON
02H FFH 00H 00H 32H 00H 00H 00H 20H 4DH 0CH 00H 01H 11H 01H 00H 00H 01H
M51
to
M61 39
M50 M60
0 3 F F 0 0 0 0 4 D 2 0 0 0 0 0 0 0 2 0 0 2 0 0
30H 32H 46H 46H 30H 30H 30H 30H 34H 44H 32H 30H 30H 30H 30H 30H 30H 30H 32H 30H 30H 32H 30H 30H
Write data
2 3 4 7 A B 9 6
32H 33H 34H 37H 41H 42H 39H 36H
2 3 4 7 A B 9 6
0 = OFF
001 0001 1100 0011 1101 0101 11001 011 0
1 = ON
M47 to M32 M63 to M48
03H FFH 00H 00H 20H 00H 00H 00H 20H 4DH 02H 00H 47H 23H 96H ABH
4 7 2 3 9 6 A B
0 = OFF
010 0011 1001 0001 1101 1011 0101 0101 1 1 = ON
M39 to M32 M47 to M40 M55 to M48 M63 to M56
39 1E FRAME COMMANDS
39.2 Device Access 673
■When writing data in word units (word device)
4660 (1234H) is written in D100, 39030 (9876H) is written in D101, and 265 (109H) is written in D102.
• When communicating data in ASCII code
(Request data)
Number Fixed
Subheader PC No. Monitoring timer Device name Head device No. of devices value
0 3 F F 0 0 0 0 4 4 2 0 0 0 0 0 0 0 6 4 0 3 0 0
30H 33H 46H 46H 30H 30H 30H 30H 34H 34H 32H 30H 30H 30H 30H 30H 30H 30H 36H 34H 30H 33H 30H 30H
Write data
1 2 3 4 9 8 7 6 0 1 0 9
31H 32H 33H 34H 39H 38H 37H 36H 30H 31H 30H 39H
03H FFH 00H 00H 64H 00H 00H 00H 20H 44H 03H 00H 34H 12H 76H 98H 09H 01H
Request data
■When writing data in bit units
• When communicating data in ASCII code
Specify the devices for the specified number of points.
1 point
Device
Device name Head device No.
data
39 1E FRAME COMMANDS
674 39.2 Device Access
• When communicating data in binary code
Specify the devices for the specified number of points.
1 point
Device Device
Head device No.
name data
1 point
39
Device name Head device No. Device data
1 point
Device Device
Head device No.
name data
■Subheader
Specify the command selected from the data size.
Data size Command
ASCII code Binary code
(Upper column: characters, lower column:
character code)
Bit devices in 1 point units 0 4 04H
30H 34H
Bit devices in 16 point units 0 5 05H
Word devices in 1 point units 30H 35H
■PC No.
Specify the "FFH".
■Monitoring timer
Specify the "0000H".
39 1E FRAME COMMANDS
39.2 Device Access 675
■Device name
Specify the device code that corresponds to the device type to be read. (Page 668 Device range)
Precautions
When the command 05H is specified in the Ethernet module, TS (timer (contact)), CS (counter (contact)) and LCS (long timer
(contact)) cannot be used.
■Number of devices
Specify the number of devices of reading.
Item Number of devices
When reading data in 1-bit units 1 to 80 points
When reading data in 16-bit units 1 to 10 words (16 to 160 points)
When reading data in 1-word units 1 to 10 points
■Fixed value
Specify the "00H".
■Device data
Specify the value to be written to the device.
Device units Communicating data
ASCII code Binary code
Bit units If the specified device is ON, express it as "01". If it is OFF, If the specified device is ON, express it as "01". If it is OFF,
(1 point units) express it as "00". Convert the code into a 2-digit ASCII code, and express it as "00". Specify with a 1-byte binary code.
specify in the order from the most significant byte to the least
significant byte.
Word units Specify one word (16 bits) with a 4-digit ASCII code, and express Specify one word (2 bytes) with a binary code, and express 1-point
(Bit 16-point units) 1-point with 1-bit ON/OFF. Specify in 1-word units in the order from with 1-bit ON/OFF. Specify in 1-word units in the order from the
the most significant bit to the least significant bit (b15 to b0). least significant byte (b7 to b0) to the least significant byte (b15 to
b8).
Word units Express the value to be written with a 1-word (4-byte) 4-digit ASCII Express the value to be written with a 1-word (2-byte) 4-digit
(Word 1-point units) code (hexadecimal). Specify in 1-word units in the order from the binary code (hexadecimal). Specify in 1-word units in the order
most significant byte to the least significant byte. from the least significant byte to the most significant byte.
Response data
There is no response data for the Test (Random Write) command.
Communication example
■When writing data in bit units
Turn on Y45, turn off M60 and turn on S38.
• When communicating data in ASCII code (X, Y HEX)
(Request data)
Number Fixed Device
Subheader PC No. Monitoring timer of devices value Device name Head device No. data
0 4 F F 0 0 0 0 0 3 0 0 5 9 2 0 0 0 0 0 0 0 2 5 0 1
30H 32H 46H 46H 30H 30H 30H 30H 30H 33H 30H 30H 35H 39H 32H 30H 30H 30H 30H 30H 30H 30H 32H 35H 30H 31H
Turn on Y45.
4 D 2 0 0 0 0 0 0 0 3 C 0 0
34H 44H 32H 30H 30H 30H 30H 30H 30H 30H 33H 43H 30H 30H
Turn off M60.
5 3 2 0 0 0 0 0 0 0 2 6 0 1
35H 33H 32H 30H 30H 30H 30H 30H 30H 30H 32H 36H 30H 30H
Turn on S38.
39 1E FRAME COMMANDS
676 39.2 Device Access
• When communicating data in binary code
(Request data)
Monitoring Number Fixed Device Device
Subheader PC No. timer of devices value Head device No. name data
04H FFH 00H 00H 03H 00H 25H 00H 00H 00H 20H 59H 01H
Turn on Y45.
0 5 F F 0 0 0 0 0 3 0 0 5 9 2 0 0 0 0 0 0 0 2 0 7 B 2 9 39
30H 32H 46H 46H 30H 30H 30H 30H 30H 33H 30H 30H 35H 39H 32H 30H 30H 30H 30H 30H 30H 30H 31H 30H 37H 42H 32H 39H
Turn ON/OFF Y20 to Y37.
Data 1
5 2 2 0 0 0 0 0 0 0 1 A 1 2 3 4
35H 32H 32H 30H 30H 30H 30H 30H 30H 30H 33H 41H 31H 32H 33H 34H
Write 1234H to R26.
Data 1
7 B 2 9
0 OFF 4 3 4 E 0 0 0 0 0 0 1 2 0 0 5 0
0 1 1 1 1 0 1 1 0 0 1 0 1 0 0 1 34H 33H 34H 45H 30H 30H 30H 30H 30H 30H 31H 32H 30H 30H 35H 30H
1 ON
Y37 to Y20 Write 50H to C18.
05H FFH 00H 00H 03H 00H 10H 00H 00H 00H 20H 59H 29H 7BH
Turn ON/OFF Y20 to Y37.
Data 1
39 1E FRAME COMMANDS
39.2 Device Access 677
39.3 Remote Control
This section describes the command to set the SLMP compatible device or Ethernet-equipped module to the RUN status or
STOP status by a message from the external device.
The accessed device or module is turned off and on or reset after remote operation
The information about the remote operation will be deleted.
Ex.
When the Remote STOP is executed with the Ethernet-equipped module switch in the RUN status, if the Ethernet-equipped
module power is turned off and on, the module will return to the RUN status.
A remote password (3E frame) of the CPU module (access destination) is enabled
Remote operation from the external device is not available. An error will occur at the access destination, and an abnormal
response will be sent back to the external device. Unlock the remote password of the CPU module side, and resend the
request message.
Remote RUN
External equipment executes the Remote RUN operation for the Ethernet-equipped module.
The Remote RUN for the CPU module can be used when the switch of the accessed CPU module is set to
RUN. Even if the switch is in the STOP status, Remote RUN (command: 13H) will be completed normally.
However, the access destination does not change to the RUN status.
Request data
■When communicating data in ASCII code
2 bytes 2 bytes 4 bytes
Monitoring
PC No.
timer
13H
■Subheader
Specify the command.
Function Command
ASCII code Binary code
(Upper column: characters, lower column:
character code)
Remote RUN 1 3 13H
31H 33H
39 1E FRAME COMMANDS
678 39.3 Remote Control
■PC No.
Specify the "FFH".
■Monitoring timer
Specify the "0000H".
Response data
There is no response data for the Remote RUN command.
Remote STOP
External equipment executes the Remote STOP operation for the Ethernet-equipped module.
Request data
■When communicating data in ASCII code
2 bytes 2 bytes 4 bytes
Monitoring
39
PC No.
time
14H
■Subheader
Specify the command.
Function Command
ASCII code Binary code
(Upper column: characters, lower column:
character code)
Remote STOP 1 4 14H
31H 34H
■PC No.
Specify the "FFH".
■Monitoring timer
Specify the "0000H".
Response data
There is no response data for the Remote STOP command.
39 1E FRAME COMMANDS
39.3 Remote Control 679
39.4 Read PC Type Name
This command reads the type name code of Ethernet-equipped module.
Request data
■When communicating data in ASCII code
2 bytes 2 bytes 4 bytes
Monitoring
PC No.
timer
15H
■Subheader
Specify the command.
Function Command
ASCII code Binary code
(Upper column: characters, lower column:
character code)
Read PC Type Name 1 5 15H
31H 35H
■PC No.
Specify the "FFH".
■Monitoring timer
Specify the "0000H".
Response data
The model code "F3H" is stored.
F 3
46H 33H
F3H
39 1E FRAME COMMANDS
680 39.4 Read PC Type Name
39.5 Loopback Test
This function tests whether the communication function between the external equipment and Ethernet-equipped module
operates normally or not. The control procedure when this function is used is described with examples.
At the startup of the Ethernet-equipped module or when trouble occurs, this function can check whether the
connection between the external equipment and Ethernet-equipped module is correct and/or whether the data
communication function operates normally.
Request data
■When communicating data in ASCII code
(Specified byte length × 2) + 10 bytes
• Data length
Convert the data length to a 2-digit ASCII code (hexadecimal), and specify in the order from the most significant byte.
• Transmission data
Each character code with a sequence of 1-byte characters ("0" to "9" and "A" to "F") is set as a 2-byte value, and up to 254
characters are sent starting from the head.
39
■When communicating data in binary code
1 byte 1 byte 2 bytes Specified byte length + 5 bytes
• Data length
Specify the data length by 1-byte.
• Transmission data
Data is sent for up to 254 bytes from the head by treating each character code ("0" to "9", "A" to "F") as a 1 byte value.
■Subheader
Specify the command.
Function Command
ASCII code Binary code
(Upper column: characters, lower column:
character code)
Loopback Test 1 6 16H
31H 36H
■PC No.
Specify the "FFH".
■Monitoring timer
Specify the "0000H".
Response data
The same data length and data as those sent by the external equipment are returned to the external equipment from the
Ethernet-equipped module.
39 1E FRAME COMMANDS
39.5 Loopback Test 681
Communication example
"ABCDE" is sent.
1 6 F F 0 0 0 0 0 5 A B C D E
30H 32H 46H 46H 30H 30H 30H 30H 30H 35H 34H 31H 34H 32H 34H 33H 34H 34H 34H 35H
(Response data)
Data
length Transmission data
0 5 A B C D E
30H 35H 34H 31H 34H 32H 34H 33H 34H 34H 34H 35H
A B C D E
16H FFH 00H 00H 05H 41H 42H 43H 44H 45H
(Response data)
Data
length Transmission data
A B C D E
05H 41H 42H 43H 44H 45H
39 1E FRAME COMMANDS
682 39.5 Loopback Test
PART 6
PART 6 MC PROTOCOL
40 OUTLINE
42 MESSAGE FORMAT
43 COMMANDS
683
40 OUTLINE
This manual describes the method for reading or writing data in a CPU module with the data communication function of the
external device using MC protocol (serial communication).
When transferring data using MC protocol, always refer to Page 686 MC PROTOCOL DATA COMMUNICATION.
100 100
Reading of the device
105 105
Request message
Counterpart Message format of MC protocol CPU module
device Header Sub
Address Command
header
Serial
Sent message
40 OUTLINE
684 40.1 Outline of MC Protocol
MEMO
40
40 OUTLINE
40.2 Features of MC Protocol 685
41 MC PROTOCOL DATA COMMUNICATION
This chapter describes the MC protocol data communication by which the external device reads or writes data to a CPU
module.
*1 For the FX5U/FX5UC CPU module 1C frame compatible version, refer to Page 935 Added and Changed Functions.
(Request (Request
External device
message) message)
(Response (Response
PLC CPU
message) message)
External device
1) 2)
CPU module
Step 0 END Step 0 END Step 0 END Step 0 END
External device
1) 2)
CPU module
END END END END END
2. The CPU module reads or writes the data according to the description requested from the external device when the END
instruction of the CPU module is executed and sends a response message including the processing result to the external
device of the request source.
• Access between the external device and CPU module is processed at each END processing when the CPU
module is running for a command request. (The scan time becomes longer by the processing time of the
command request.)
• When accesses are requested simultaneously to the CPU module from multiple external device, the
processing requested from the external device may be on hold until several END processing is performed
several times depending on the request timing.
The tables below show the data transfer times depending on the number of continuously read or written word devices at
transmission speeds of 9600 bps and 19200 bps when the message waiting time is 0 ms*1, the maximum scan time is 20 ms,
and the interval time is 100 ms.
• When the transmission speed is 9600bps (Unit: Second)
Number of data points Number of stations
Station No. 1 Station No. 8 Station No. 16
10 points 0.3 1.9 3.7
32 points 0.4 2.6 5.2
64 points 0.5 3.7 7.3
When the types of read or written devices increase, "Data transfer time shown in above table Number of device types" is
required.
When the number of read or written points exceeds "64", the transfer time increases.
Accordingly, for achieving efficient data transfer, it is recommended to decrease the number of types of transferred devices
and use as many continuous device numbers as possible.
*1 When RS-485 one-pair wiring using FX-485PC-IF is adopted, the message waiting time (for every exchange) must be 70 to 150ms.
When RS-485 two-pair wiring or RS-232C is adopted, the message waiting time becomes 0ms.
*1 This is the processing time when accessing with only word access points specified.
*2 This is the processing time when 1 is set to [CPU Parameter] - [Service Processing Setting] - [Device/Label Access Service Processing
Setting] - [Set Processing Counts] of GX Works3.
*1 For the version of the FX5U/FX5UC CPU module compatible with each pattern, refer to Page 935 Added and Changed Functions.
Set the format with the module parameter of GX Works3.
Communication using binary code shorten the communication time since the amount of communication data
is reduced by approximately half as compared to the one using ASCII code.
Frame
This section explains the types and purposes of the frames (data communication messages) used by the external device to
access the supported devices using MC protocol.
The frames for MC protocol (serial communication) are as follows:
: Supported, : Not supported
Frame Features and purposes Compatible message format Format Corresponding of
FX5
4C frame Accessible from external devices with the maximum Dedicated protocols for MELSEC-QnA Formats 1 to 5
access range. series serial communication modules Corresponding to
(QnA extension frame). formats 1, 4, and 5.
3C frame These message formats are simplified compared to Dedicated protocols for MELSEC-QnA Formats 1 to 4
the 4C frame. series serial communication modules Corresponding to
Data communication software for MELSEC-QnA (QnA frame). formats 1 and 4.
series programmable controllers can be used.
2C frame Dedicated protocols for MELSEC-QnA
series serial communication modules
(QnA simplified frame).
1C frame These frames have the same message structures as Dedicated protocols for MELSEC-A
when accessing the CPU module using an FX3 or series computer link modules Corresponding to
MELSEC-A series computer link module. formats 1 and 4.
Data communication software for FX3 or MELSEC-A
series programmable controllers can be used.
42 MESSAGE FORMAT
692 42.1 Types and Purposes of Messages
42.2 Message Formats of Each Format
This section explains the message format and setting data per each format.
Format 1
42
There are 2 types of formats: format 1 (X, Y OCT) and format 1 (X, Y HEX).
The specification method of the device number for the X (input) and Y (output) to be accessed is different from each other.
(Page 712 Device Access)
• Format 1 (X, Y OCT): octal
• Format 1 (X, Y HEX): hexadecimal
Unless otherwise specified, the both of them are described as format 1.
Format 1 (X, Y HEX) cannot be used depending on the version. For the version of the FX5U/FX5UC CPU module compatible
with this format, refer to Page 935 Added and Changed Functions.
Message format
■Request message
Control code
ENQ Frame ID No. Access route Request data Sum check code
05H
Setting data
Set the following items.
Item Description Reference
Control code A code is defined for control. Page 696 Control code
(ENQ, STX, ACK, NAK, ETX)
Frame ID No. Specify the frame to be used. Page 698 Frame ID No.
Access route Specify the access route. Page 702 Accessible Ranges and
Settable Data for Each Frame
Request data Set the command that indicates the request content. Refer to "Request Page 709 COMMANDS
data" rows of each command.
Response data Store the read data for the command. Refer to "Response data" rows of
each command.
Sum check code The value of the lower one byte (8 bits) of the additional result regarding Page 699 Sum check code
the data in the sum check target range as a binary data.
Error code Error code indicates the content of occurred error. Page 701 Error code
42 MESSAGE FORMAT
42.2 Message Formats of Each Format 693
Format 4
There are 2 types of formats: format 4 (X, Y OCT) and format 4 (X, Y HEX).
The specification method of the device number for the X (input) and Y (output) to be accessed is different from each other.
(Page 712 Device Access)
• Format 4 (X, Y OCT): octal
• Format 4 (X, Y HEX): hexadecimal
Unless otherwise specified, the both of them are described as format 4.
Format 4 (X, Y HEX) cannot be used depending on the version. For the version of the FX5U/FX5UC CPU module compatible
with this format, refer to Page 935 Added and Changed Functions.
Message format
■Request message
Control code Control code
ENQ Frame ID No. Access route Request data Sum check code CR LF
05H 0DH 0AH
Setting data
Set the following items.
Item Description Reference
Control code A code is defined for control. Page 696 Control code
(ENQ, STX, ACK, NAK, ETX, CR, LF)
Frame ID No. Specify the frame to be used. Page 698 Frame ID No.
Access route Specify the access route. Page 702 Accessible Ranges and
Settable Data for Each Frame
Request data Set the command that indicates the request content. Refer to "Request Page 709 COMMANDS
data" rows of each command.
Response data Store the read data for the command. Refer to "Response data" rows of
each command.
Sum check code The value of the lower one byte (8 bits) of the additional result regarding Page 699 Sum check code
the data in the sum check target range as a binary data.
Error code Error code indicates the content of occurred error. Page 701 Error code
42 MESSAGE FORMAT
694 42.2 Message Formats of Each Format
Format 5
Message format
■Request message
Control code Frame Control code
42
Number of ID No. Access route Request
DLE STX DLE ETX Sum check code
data bytes data
10H 02H F8H 10H 03H
Setting data
Set the following items.
Item Description Reference
Control code A code is defined for control. Page 696 Control code
(DLE, STX, ETX)
Number of data bytes The number of bytes from the frame ID No. to control code (DLE, ETX). Page 697 Number of data bytes
Frame ID No. Specify the frame to be used. Page 698 Frame ID No.
Access route Specify the access route. Page 702 Accessible Ranges and
Settable Data for Each Frame
Request data Set the command that indicates the request content. Refer to "Request data" rows of each Page 709 COMMANDS
command.
Response data Store the read data for the command. Refer to "Response data" rows of each command.
Sum check code The value of the lower one byte (8 bits) of the additional result regarding the data in the sum Page 699 Sum check code
check target range as a binary data.
Response ID code This indicates a response message. The 2-byte numerical value, 'FFFFH' is stored.
Normal completion code This indicates the processing is completed normally. The 2-byte value, '0000H' is stored.
Error code Error code indicates the content of occurred error. Page 701 Error code
42 MESSAGE FORMAT
42.2 Message Formats of Each Format 695
42.3 Details of Setting Data (Format)
This section explains how to specify the common data items and their content in each message.
Control code
Control code is a data that has special meaning (such as head data of a message) for transmission control.
EOT CL
04H 0CH
Format 4
EOT CR LF CL CR LF
04H 0DH 0AH 0CH 0DH 0AH
42 MESSAGE FORMAT
696 42.3 Details of Setting Data (Format)
Control code used in a message (format 5) in binary code
The control code used for a message in binary code (format 5) is shown in the table below.
Symbol name Description Code (hexadecimal)
STX Start of Text 02H
ETX End of Text 03H 42
DLE Data Link Escape 10H
Range
Calculate the data in the range from frame ID No. before DLE (10H) except for the additional code. (Page 697 Additional
code (10H))
Setting method
Set the data in binary code (format 5) at data communication.
Send 2-byte numerical value from the lower byte (L: bits 0 to 7).
Ex.
Response message (Normal completion: Response data)
• Frame ID No.: 1 byte
• Access route: 7 byte
• Response ID code, normal completion code: 4 bytes
• Response data: 2 bytes + additional code (10H) 1 byte
Number of data bytes = 1 + 7 + 4 + 2 = 14 (0EH)
Control code Number of Frame Access route Response Normal Response Control code
data bytes ID No. ID code completion data
DLE STX code DLE ETX Sum check code
10H 02H 0E00H F8H ( 7 bytes ) FFFFH 0000H 001010H 10H 03H
42 MESSAGE FORMAT
42.3 Details of Setting Data (Format) 697
Block number
Block number is an arbitrary number defined by an external device and used for data defragmentation.
Block number converts data to 2-digit (hexadecimal) ASCII code within the range of '00H' to 'FFH' and sends them from the
upper digits.
CPU module only checks if the block number is specified within the correct range. It does not check whether the block
numbers are sent in order.
Frame ID No.
Specify the frame to be used.
Type Setting value
4C frame F8
3C frame F9
1C frame (Not required)
Setting method
■Data communication in ASCII code
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Ex.
For 4C frame (F8)
ASCII code Binary code
F 8
46H 38H F8H
42 MESSAGE FORMAT
698 42.3 Details of Setting Data (Format)
Sum check code
Set the sum check code when performing sum check.
For sum check code, set the value to be calculated from the data with the range of sum check for error detection.
Sum check 42
Sum check is a function for detecting error when data changes while data transmission.
Set the sum check existence by Engineering tool.
42 MESSAGE FORMAT
42.3 Details of Setting Data (Format) 699
Calculation of a sum check code
For sum check code, set the numerical values of the lower 1 byte (8 bits) of the added result (sum) as binary data within the
sum check range.
Calculate sum check code except for the additional code. (Page 697 Additional code (10H))
Ex.
In the following case of 3C frame format 1, the sum check code will be '1C'.
Formula: 46H + 39H + 30H + 30H + 30H + 30H + 46H + 46H + 30H + 30H + 30H + 34H + 30H + 31H + 30H + 30H + 30H +
31H + 58H + 2AH + 30H + 30H + 30H + 30H + 34H + 30H + 30H + 30H + 30H + 35H = 61CH
Sum check code: '1C' (ASCII code 31H, 43H)
E
Self-station No.
PC No.
Network No.
Station No.
Frame ID No.
Subcommand
Device code
Head device
N
Q
points
H L H L H L H L H L H - - L H - - L H - - - - L H - - L H L
05H 46H 39H 30H 30H 30H 30H 46H 46H 30H 30H 30H 34H 30H 31H 30H 30H 30H 31H 58H 2AH 30H 30H 30H 30H 40H 30H 30H 30H 30H 35H 31H 43H
In the following case of 4C frame format 5, the sum check code will be 'F7'.
Calculation formula: 12H + 00H + F8H + 05H + 00H + FFH + FFH + 03H + 00H + 00H + 01H + 04H + 01H + 00H + 40H + 00H
+ 00H + 9CH + 05H + 00H = 3F7H
Sum check code: 'F7' (ASCII code 46H, 37H)
PC No.
Request destination
Network No.
Request destination
Station No.
Self-station No.
Subcommand
Frame ID No.
D S D E
Device code
Head device
Number of device
Number of
data bytes
L T L T
module I/O No.
E X points E X
L H L H L H L H L - H L H H L
10H 02H 12H 00H F8H 05H 00H FFH FFH 03H 00H 00H 01H 04H 01H 00H 40H 00H 00H 9CH 05H 00H 10H 03H 46H 37H
Setting method
■Data communication in ASCII code
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Ex.
Sum check code: 'F7' (ASCII code 46H, 37H)
ASCII code, binary code
F 7
46H 37H
42 MESSAGE FORMAT
700 42.3 Details of Setting Data (Format)
Error code
Error code indicates the content of error.
If more than one error occurs at the same time, the error code detected first is returned.
For the content of error code and its corrective action, refer to the following.
Page 835 1C frame 42
MELSEC iQ-F FX5 User's Manual (Application)
Setting method
■Data communication in ASCII code
Convert the numerical value to 4-digit ASCII code (hexadecimal) and send it from upper digits.
Ex.
When error code 7143H is returned
ASCII code Binary code
7 1 4 3
37H 31H 34H 33H
43H 71H
42 MESSAGE FORMAT
42.3 Details of Setting Data (Format) 701
42.4 Accessible Ranges and Settable Data for Each
Frame
The accessible range of each frame and the data items to set an access route are as shown below.
4C frame
External device
Multidrop connection
Multidrop connection
Network Network
No.1 No.n
Connected station (Relay station)
(Host station)
:Accessible target station by FX5
Message format (Setting example for accessing connected station (host station))
■Data communication in ASCII code (Format 1, Format 4)
Network Request destination Request destination
No. module I/O No. module station No.
Station No. PC No. Self-station No.
0 0 0 0 F F 0 3 F F 0 0 0 0
30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H
Station PC Self-station
No. No. No.
Data to be set
Set the following items.
Item Description Reference
Station No. Specify the station to be connected from an external device. Page 705 Station No.
Network No. Specify the access target network No. Page 706 Network No., PC No.
PC No. Specify the access target station No.
Request destination Specify the start I/O number of a connection source module (relay station) of multidrop Page 707 Request destination
module I/O No. connection via network. module I/O No., request destination
module station No.
Request destination Specify the station No. of an access target module of multidrop connection via network.
module station No.
Self-station No. At the time of m:n multidrop connection, specify the station No. of a request source external Page 708 Self-station No.
device.
42 MESSAGE FORMAT
702 42.4 Accessible Ranges and Settable Data for Each Frame
3C frame
Network Network
No.1 No.n
Connected station (Relay station)
(Host station)
:Accessible target station by FX5
Message format (Setting example for accessing connected station (host station))
Station No. Network No. PC No. Self-station No.
0 0 0 0 F F 0 0
30H 30H 30H 30H 46H 46H 30H 30H
Data to be set
Set the following items.
Item Description Reference
Station No. Specify the station to be connected from an external device. Page 705 Station No.
Network No. Specify the access target network No. Page 706 Network No., PC No.
PC No. Specify the network station No. of the access target.
Self-station No. At m:n multidrop connection, specify the station No. of a request source external device. Page 708 Self-station No.
42 MESSAGE FORMAT
42.4 Accessible Ranges and Settable Data for Each Frame 703
1C frame
External device
Multidrop connection
Network
Connected station
(Host station)
:Accessible target station by FX5
Message format (Setting example for accessing connected station (host station))
Station No. PC No.
0 0 F F
30H 30H 46H 46H
Data to be set
Set the following items.
Item Description Reference
Station No. Specify the station to be connected from an external device. Page 705 Station No.
PC No. Specify the network station No. of the access target. Page 706 Network No., PC No.
42 MESSAGE FORMAT
704 42.4 Accessible Ranges and Settable Data for Each Frame
42.5 Details of Setting Data (Frame)
This section explains the content and specification method of the data items to set the access route.
: Setting required, : Setting not required
Item 4C frame 3C frame 1C frame Reference
42
Station No. Page 705 Station No.
Network No. Page 706 Network No., PC No.
PC No.
Request destination module I/O Page 707 Request destination module I/O No., request destination
No. module station No.
Request destination module
station No.
Self-station No. Page 708 Self-station No.
Station No.
Specify the station accessed from an external device.
External device
Connected station
(Host station) :Access target station
External device
Multidrop connection
42 MESSAGE FORMAT
42.5 Details of Setting Data (Frame) 705
Setting method
The station No. is specified by the following parameter items of engineering tool, and writes the "module parameter" in the
CPU module.
• GX Works3: "Station Number Settings" in "Module Parameter"
Ex.
When the station No. setting for CPU module to be accessed is '5'
ASCII code Binary code
0 5
30H 35H 05H
External device
Connected station
(Host station) :Access target station
External device
Multidrop connection
42 MESSAGE FORMAT
706 42.5 Details of Setting Data (Frame)
Setting method
■Data communication in ASCII code
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Network PC Network PC
No. No. No. No.
0 0 F F
30H 30H 46H 46H 00H FFH
Setting method
■Data communication in ASCII code
For the request destination module I/O No., convert the numerical value to 4-digit ASCII code (hexadecimal) and send it from
upper digits.
For the request destination module station No., convert the numerical value to 2-digit ASCII code (hexadecimal), and send it
from the upper digits.
Ex.
Accessing connected station (host station)
ASCII code Binary code
0 3 F F 0 0
30H 33H 46H 46H 30H 30H FFH 03H 00H
42 MESSAGE FORMAT
42.5 Details of Setting Data (Frame) 707
Self-station No.
The following fixed value is specified in FX5 CPU module.
Self-station No.
00H
Setting method
■Data communication in ASCII code
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Ex.
When 00H is specified
ASCII code Binary code
0 0
30H 30H 00H
42 MESSAGE FORMAT
708 42.5 Details of Setting Data (Frame)
43 COMMANDS
This chapter explains commands of MC protocol.
Request message
Command
Response message
The explanation of each command in Part 3, the message format of request data and response data are explained.
For the message formats other than request data and response data, refer to the following sections.
Page 692 MESSAGE FORMAT
43 COMMANDS
43.1 List of Commands and Functions 709
Command list
1C frame
For the commands for 1C frame, refer to Page 774 Command and Function Lists for 1C Frame.
3C/4C frame
Name Command Subcommand Contents of processing Number of points
processed in one-
time update
Batch read 0401H 0001H Reads data in 1-point units from bit devices or word devices. ASCII: 3584 points
BIN: 3584 points
0000H • Reads data in 16-point units from bit devices. 960 words (15360
• Reads data in 1-word unit from word devices. points)
0081H • Reads data in 1-bit unit from buffer memory of intelligent function ASCII: 3584 points
module. BIN: 3584 points
• Reads data in 1-bit unit from a device indirectly specified in the index
register.
0080H • Reads data in 1-word unit from buffer memory of intelligent function 960 words (15360
module. points)
• Reads data in 1-word unit from a device indirectly specified in the
index register.
0083H • Reads data in 1-bit unit from buffer memory of intelligent function ASCII: 3584 points
module. BIN: 3584 points
• Reads data in 1-bit unit from a device indirectly specified in the index
register.
0082H • Reads data in 1-word unit from buffer memory of intelligent function 960 words (15360
module. points)
• Reads data in 1-word unit from a device indirectly specified in the
index register.
Batch write 1401H 0001H Writes data in 1-bit units to bit devices. ASCII: 3584 points
BIN: 3584 points
0000H • Writes data in 16-bit units to bit devices. 960 words (15360
• Writes data in 1-word units to bit devices. points)
0081H • Writes data in 1-bit unit to MC protocol compatible devices or buffer ASCII: 3584 points
memory of intelligent function module. BIN: 3584 points
• Indirectly specifies bit devices, word devices and buffer memory in the
index register.
0080H Writes data in 1 word (16-bits) unit to MC protocol compatible devices or 960 words (15360
buffer memory of intelligent function module. points)
0083H Writes data in 1-bit unit to MC protocol compatible devices or buffer ASCII: 3584 points
memory of intelligent function module. BIN: 3584 points
0082H Writes data in 1 word (16-bits) unit to MC protocol compatible devices or 960 words (15360
buffer memory of intelligent function module. points)
Random read 0403H 0000H Reads a word device in 1-word unit or 2-word unit by randomly 192 points
specifying the device number.
0080H Reads data in 1-word (16-bit) unit from MC protocol compatible devices 192 points
or buffer memory of intelligent function module.
0082H Reads data in 1-word (16-bit) unit from MC protocol compatible devices 192 points
or buffer memory of intelligent function module.
43 COMMANDS
710 43.1 List of Commands and Functions
Name Command Subcommand Contents of processing Number of points
processed in one-
time update
Random write 1402H 0001H Writes data in 1-bit unit to a bit device by randomly specifying the device 188 points
number.
0000H • Writes data in 16-bit unit to a bit device by randomly specifying the (Number of word
device number. access points) 12 +
• Writes data in 1-word unit or 2-word unit to a word device by randomly (number of double word
specifying the device number. access points) 14
1920
0081H • Writes data in 1-bit unit to MC protocol compatible devices or buffer
memory of intelligent function module.
188 points 43
• Indirectly specifies a buffer memory in the index register.
0080H Writes data in 1-word (16-bits) or 2-word unit to MC protocol compatible (Number of word
devices or buffer memory of intelligent function module. access points) 12 +
(number of double word
access points) 14
1920*1
0083H Writes data in 1-bit unit to MC protocol compatible devices or buffer 188 points
memory of intelligent function module.
0082H Writes data in 1-word (16-bits) or 2-word unit to MC protocol compatible (Number of word
devices or buffer memory of intelligent function module. access points) 12 +
(number of double word
access points) 14
1920*1
Batch read multiple 0406H 0000H Assumes an n point part of a bit device or word device as 1-block and 960 points
blocks reads data by randomly specifying the multiple blocks.
(When bit devices are specified, 1 point is 16 bits.)
0080H Assumes an n point part of MC protocol compatible devices or buffer 960 points
memory of intelligent function module as 1-block and reads data by
randomly specifying the multiple blocks.
(When bit devices are specified, 1 point is 16 bits.)
0082H Assumes an n point part of MC protocol compatible devices or buffer 960 points
memory of intelligent function module as 1-block and reads data by
randomly specifying the multiple blocks.
Batch write 1406H 0000H Assumes an n point part of a bit device or word device as 1-block and 760 points
multiple blocks writes data by randomly specifying the multiple blocks.
(When bit devices are specified, 1 point is 16 bits.)
0080H Assumes an n point part of MC protocol compatible devices or buffer 760 points*1
memory of intelligent function module as 1-block and writes data by
randomly specifying multiple blocks.
(When bit devices are specified, 1 point is 16 bits.)
0082H Assumes an n point part of MC protocol compatible devices or buffer 760 points*1
memory of intelligent function module as 1-block and writes data by
randomly specifying multiple blocks.
Remote RUN 1001H 0000H Requests remote RUN to a device.
Remote STOP 1002H 0000H Requests remote STOP to a device.
Remote PAUSE 1003H 0000H Requests remote PAUSE to a device.
Remote latch clear 1005H 0000H Requests remote latch clear when a device is in STOP mode.
Remote RESET 1006H 0000H Requests remote reset to cancel error stop mode of a device.
Read CPU model 0101H 0000H Reads a processor module name code (processor type) of a device.
name
Loopback test 0619H 0000H Checks if normal communication is possible.
LED OFF, error 1617H 0000H Clears all errors in batches and turns OFF LED.
code initialization
*1 With device extension specification, the number of points that can be set become fewer. When using the device extension specification,
calculate doubling the number of access points.
43 COMMANDS
43.1 List of Commands and Functions 711
43.2 Device Access
This section explains the control procedure specification method and shows a specification example when the device memory
is read and written.
Subcommand
Subcommands are data for specifying the unit for reading and writing, device type to be specified, and the data reading
condition.
The following table shows the details of setting items.
Setting item Description
Data size specification Word units • The target data is read or written in word units.
• Select "0" even when the reading data or writing data does not exist in arguments of the
command.
Bit units The target data is read or written in bit units.
Device specification 2 digit code/6 digit number Data or items related to the address specifications are expressed in the following sizes, which are
format specification the same as the existing setting.
• Device code: 2-digit ASCII code, 1 byte in binary
• Device number: 6-digit ASCII code, 3 bytes in binary
4 digit code/8 digit number Data or items related to the address specifications are extended to the following size.
specification • Device code: 4-digit ASCII code, 2 bytes in binary
• Device number: 8-digit ASCII code, 4 bytes in binary
Device memory Not specified Set this when specifying devices of a CPU module.
extension specification * Set this when not using the device memory extension specification.
Specified • Set this for the buffer memory specification of the intelligent function module.
• This setting corresponds to the buffer memory indirect specification with index register.
0 0
43 COMMANDS
712 43.2 Device Access
Devices
Specify the device to be accessed by device code and device number.
• The data order differs between ASCII code and binary code.
• The data size to set up changes with setting of the device specification format of subcommand.
Device specification format of ASCII code Binary code
subcommand
2 digit code/6 digit number specification
Device Device Device
Device number number
43
code code
(3 bytes) (1 byte)
(2 digits) (6 digits)
When accessing any of the following devices, use the device extension specification (subcommand: 008).
• Module access device
For the message format for device extension specification, refer to the following section.
Page 923 Device Memory Extension Specification
Device codes
Specify the device name to be accessed.
Specify the device within the range of the access target module.
For the values of each device code, refer to the following section.
Page 715 Device code list
Ex.
For input (X)
Device specification format of ASCII code Binary code
subcommand
2 digit code/6 digit number specification
X *
58H 2AH 9CH
X * * *
58H 2AH 2AH 2AH 9CH 00H
43 COMMANDS
43.2 Device Access 713
Device number
Specify the number of the device to be accessed.
Specify the device number within the range of the access target module.
Ex.
For link relay (B) 1234 (a device of which device number is in hexadecimal)
Device specification format of ASCII code Binary code
subcommand
2 digit code/6 digit number specification
0 0 1 2 3 4
30H 30H 31H 32H 33H 34H 34H 12H 00H
0 0 0 0 1 2 3 4
30H 30H 30H 30H 31H 32H 33H 34H 34H 12H 00H 00H
For internal relay (M) 1234 (a device of which device number is in decimal)
For binary code, convert the device number to hexadecimal. '1234' (decimal) '4D2' (hexadecimal)
Device specification format of ASCII code Binary code
subcommand
2 digit code/6 digit number specification
0 0 1 2 3 4
30H 30H 31H 32H 33H 34H D2H 04H 00H
0 0 0 0 1 2 3 4
30H 30H 30H 30H 31H 32H 33H 34H D2H 04H 00H 00H
DLE
10H 10H 00H 00H
43 COMMANDS
714 43.2 Device Access
Device code list
The table below shows devices and device number range that can handled in commands used in communication by MC
protocol.
Specify devices and device number range that are there in the targeted unit for performing data reading, writing etc.
1C frame
For device code used in 1C frame, refer to Page 775 Data to be specified in command.
43
43 COMMANDS
43.2 Device Access 715
3C/4C frame
In 3C/4C frame, in the following "Device Code", specify a device of the access point.
Division Device Type Device Code*1 Device No. FX5
(Device specification format: device
Long) available*2
ASCII code Binary code
*3
Internal user Input Bit X* (X***) 9CH (9C00H) Specify within the
devices device No. range of *3
Output Y* (Y***) 9DH (9D00H)
the module for
Internal relay M* (M***) 90H (9000H) access destination. Decimal
Latch relay L* (L***) 92H (9200H) Decimal
Annunciator F* (F***) 93H (9300H) Decimal
Edge relay V* (V***) 94H (9400H) Decimal
Link relay B* (B***) A0H (A000H) Hexadecimal
Step relay S* (S***) 98H (9800H) Decimal
Data register Word D* (D***) A8H (A800H) Decimal
Link register W* (W***) B4H (B400H) Hexadecimal
Timer Contact Bit TS (TS**) C1H (C100H) Decimal
Coil TC (TC**) C0H (C000H)
Current value Word TN (TN**) C2H (C200H)
Long timer Contact Bit (LTS*) 51H (5100H) Decimal
Coil (LTC*) 50H (5000H)
Current value Double (LTN*) 52H (5200H)
word
Retentive timer Contact Bit SS (STS*) C7H (C700H) Decimal
Coil SC (STC*) C6H (C600H)
Current value Word SN (STN*) C8H (C800H)
Long Retentive Contact Bit (LSTS) 59H (5900H) Decimal
timer
Coil (LSTC) 58H (5800H)
Current value Double (LSTN) 5AH (5A00H)
word
Counter Contact Bit CS (CS**) C4H (C400H) Decimal
Coil CC (CC**) C3H (C300H)
Current value Word CN (CN**) C5H (C500H)
Long counter Contact Bit (LCS*) 55H (5500H) Decimal
Coil (LCC*) 54H (5400H)
Current value Double (LCN*) 56H (5600H)
word
Link special relay Bit SB (SB**) A1H (A100H) Hexadecimal
Link special register Word SW (SW**) B5H (B500H) Hexadecimal
System Special relay Bit SM (SM**) 91H (9100H) Decimal
device
Special register Word SD (SD**) A9H (A900H) Decimal
Command input Bit Hexadecimal
Command output Hexadecimal
Function register Word Decimal
Index register 16 bit Z* (Z***) CCH (CC00H) Specify within the Decimal
device No. range of
32 bit LZ (LZ**) 62H (6200H) Decimal
the module for
File register Word R* (R***) AFH (AF00H) access destination. Decimal
ZR (ZR**) B0H (B000H) Decimal
Module Link register Word W* (W***) B4H (B400H) Hexadecimal
access
Link special register SW (SW**) B5H (B500H) Hexadecimal
device*4
Module access device G* (G***) ABH (AB00H) Decimal
43 COMMANDS
716 43.2 Device Access
*1 [ASCII code]
When a device code is less than the specified number of characters, add "*" (ASCII code: 2AH), or <space> (ASCII code: 20H) at the
end of the device code.
[Binary code]
When a device code is less than the specified size, add "00H" at the end of the device code.
*2 : FX5 device
: No FX5 device
*3 Depends on the message format. See below.
Format 1 (X, Y OCT), format 4 (X, Y OCT): octal
Format 1 (X, Y HEX), format 4 (X, Y HEX), format 5: hexadecimal
*4 It is necessary to make "Device memory extension specification" of the subcommand to ON (1).
43
Number of device points
Specify the number of device points to be read or written.
Setting method
■Data communication using ASCII code
Convert the numerical value to 4-digit ASCII code (hexadecimal), and send it from the upper digits.
Use capitalized code for alphabetical letter.
Ex.
In the case of 5 points and 20 points
Number of device points ASCII code Binary code
5 points
0 0 0 5
30H 30H 30H 35H 05H 00H
20 points
0 0 1 4
30H 30H 31H 34H 14H 00H
43 COMMANDS
43.2 Device Access 717
Access points
Specify the number of device points to be accessed in word unit, double word unit, or bit unit.
Specify it within the number of points that can be processed in one communication. The number of points is shown in the table
of the command list (Page 710 Command list).
Setting method
■Data communication using ASCII code
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Use capitalized code for alphabetical letter.
Ex.
In the case of 5 points and 20 points
Number of device points ASCII code Binary code
5 points
0 5
30H 35H 05H
20 points
1 4
31H 34H 14H
43 COMMANDS
718 43.2 Device Access
Number of blocks
Specify the number of blocks of the device to be accessed in hexadecimal.
Set each number of blocks within the following range.
• Number of word device blocks + Number of bit device blocks 120
Ex.
In the case of 5 points and 20 points
Number of device points ASCII code Binary code
5 points
0 5
30H 35H 05H
20 points
1 4
31H 34H 14H
43 COMMANDS
43.2 Device Access 719
Read data, write data
The read device value is stored for reading. The data to be written is stored for writing.
The data order differs between bit units or word units.
Ex.
When indicating ON/OFF status of five points from M10
M10 M11 M12 M13 M14
ON OFF ON OFF ON
*1 The additional code may be added. (Page 697 Additional code (10H))
43 COMMANDS
720 43.2 Device Access
For word units (16-point unit for bit device)
The following shows the data to be read and written in word units.
When handling data other than bit data, refer to the following section.
Page 725 Considerations for handling real number data and character string data
Ex.
When indicating ON/OFF status of 32 points from M16
M * 0 0 0 0 1 6 0 0 0 2 A B 1 2 3 4 C D
4DH 2AH 30H 30H 30H 30H 31H 36H 30H 30H 30H 32H 41H 42H 31H 32H 33H 34H 43H 44H
A B 1 2 3 4 C D
b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 OFF
1 0 1 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 1
1 ON
M31 to M16 M47 to M32
Ex.
When indicating the stored data of D350 and D351
Device Number of
code Head device device points Data Data
D * 0 0 0 3 5 0 0 0 0 2 5 6 A B 1 7 0 F
44H 2AH 30H 30H 30H 33H 35H 30H 30H 30H 30H 32H 35H 36H 41H 42H 31H 37H 30H 46H
43 COMMANDS
43.2 Device Access 721
■Data communication using binary code
Send the numerical value in order from the lower byte (L: bit 0 to 7) by handling 16 points unit as 2 bytes.
Ex.
When indicating ON/OFF status of 32 points from M16
Number of
Head Device device
device code points Data Data
10H 00H 00H 90H 02H 00H 12H ABH CDH 34H
1 2 A B C D 3 4
b7 b6 b5 b4 b3 b2 b1 b0 b15b14 b13b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15b14 b13b12 b11b10 b9 b8 0 OFF
1 ON
0 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0
M23 to M16 M31 to M24 M39 to M32 M47 to M40
Ex.
When indicating the stored data of D350 and D351
5EH 01H 00H A8H 02H 00H ABH 56H 0FH 17H
The value to
5 6 A B 1 7 0 F
read or write.
The content of D350 indicates 56ABH The content of D351 indicates 170FH
(22187 in decimal) (5903 in decimal)
43 COMMANDS
722 43.2 Device Access
For double word unit (32-point unit for bit device)
The following shows the data to be read and written in double word units.
Ex.
43
When indicating ON/OFF status of 32 points from M16
Device
code Device number Data
M * 0 0 0 0 1 6 A B 1 2 3 4 C D
4DH 2AH 30H 30H 30H 30H 31H 36H 41H 42H 31H 32H 33H 34H 43H 44H
A B 1 2 3 4 C D
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 OFF
1 0 1 0 1 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 1 1 0 0 1 1 0 1
1 ON
M47 to M32 M31 to M16
Ex.
When indicating the stored data of D350 (D351)
Device
code Device number Data
D * 0 0 0 3 5 0 1 7 0 F 5 6 A B
44H 2AH 30H 30H 30H 33H 35H 30H 31H 37H 30H 46H 35H 36H 41H 42H
43 COMMANDS
43.2 Device Access 723
■Data communication using binary code
Send the numerical value in order from the lower byte (L: bit 0 to 7) by handling 32 points unit as 4 bytes.
Ex.
When indicating ON/OFF status of 32 points from M16
Device Device
number code Data
C D 3 4 1 2 A B
b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b15 b14 b13 b12 b11 b10 b9 b8
0 OFF
1 1 0 0 1 1 0 1 0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 1 ON
M23 to M16 M31 to M24 M39 to M32 M47 to M40
Ex.
When indicating the stored data of D350 (D351)
Device Device
number code Data
The value to
read or write. 5 6 A B 1 7 0 F
The content of D350 indicates 56ABH The content of D351 indicates 170FH
(22187 in decimal) (5903 in decimal)
43 COMMANDS
724 43.2 Device Access
Considerations for handling real number data and character string data
The word data and double word data are handled as integer value (16-bit data or 32-bit data).
When data other than integer (real number, character string) is stored in a device, the stored value is read as integer value.
• When real number (0.75) is stored in D0 and D1: D0 = 0000H, D1 = 3F40H
• When character string ('12AB') is stored in D2 and D3: D2 = 3231H, D3 = 4241H
For data to be used as real number or character string data in the instructions of the programmable controller, write it to the
device/label according to the defined data specification method. For more details on how to specify data used in instructions,
refer to the MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
43
■For character string data
The following shows how character string data is stored.
Item For ASCII code character string
Character string to be stored 'ABC' 'ABCD'
Character code '41H', '42H', '43H' '41H', '42H', '43H', '44H'
Image when character string data is stored from NULL indicates 00H. NULL indicates 00H.
D0
D0 B A D0 B A
D1 NULL C D1 D C
D2 NULL NULL
Ex.
Write ASCII code character string data used in the instructions which handle character strings to word device
Store the character string ('ABCD') to D0 and D1: D0=4241H ('BA'), D1=4443H ('DC')
Specify the following data for write data.
ASCII code Binary code
B A D C NULL NULL
A B C D NULL NULL
4 2 4 1 4 4 4 3 0 0 0 0 41H 42H 43H 44H 00H 00H
34H 32H 34H 32H 34H 34H 34H 33H 30H 30H 30H 30H
D0 D1 D2
D0 D1 D2
When communicating ASCII code character string data in ASCII code, data is rearranged every two
characters and stored.
43 COMMANDS
43.2 Device Access 725
Device memory extension specification (subcommand: bit7)
For details, refer to Page 923 Device Memory Extension Specification.
This section explains how to read or write a device from/to module access device areas and how to specify a device indirectly
by using index register.
Message format
Response messages are extended as well.
• When communicating data in ASCII code
2 digit code/6 digit number specification
Extension
When extension Extension
specification
Device Head device No. or
is specified 0 0 specification code device No. 0 0 0
30H 30H modification 30H 30H 30H
Extension
When extension Extension Head device No. or
specification Device code
0 0 specification device No. 0 0 0 0
is specified modification
30H 30H 30H 30H 30H 30H
43 COMMANDS
726 43.2 Device Access
Module access device specification
The following shows the approach for module access device specification in programming and request data.
U \G
Extension Device Head device No.
specification code or device No.
• Extension specification
Specify the start I/O number of intelligent function modules. 43
ASCII code Binary code
Specify the start I/O number in hexadecimal (3-digit ASCII code). When Specify the start I/O number in hexadecimal (2 bytes). When described with 4-
described with 4-digits, specify the start I/O number with the upper 3-digits. digits, specify the start I/O number with the upper 3-digits.
U U 0 0 1
55H 55H 30H 30H 31H H H 01H 00H
• Device code
Specify the module access device in the device code list (Page 715 Device code list).
• Head device No. or device No.
The format is the same as the message when extension is not specified.
• Direct memory specification (only when communicating in binary code)
The type (intelligent function module device) of access device is specified.
Module access device: Specify F8H
Set/reset
Specify the ON/OFF status of bit device.
• For ON: '1'
Device specification format of ASCII code Binary code
subcommand
2 digit code/6 digit number specification
0 1
30H 31H 01H
0 0 0 1
30H 30H 30H 31H 01H 00H
0 0
30H 30H 00H
0 0 0 0
30H 30H 30H 30H 00H 00H
43 COMMANDS
43.2 Device Access 727
Batch read
Data in devices are read in a batch.
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification
4 bytes 4 bytes 2 bytes 6 bytes 4 bytes
Extension Extension
0 0 specification Device code Head device No. 0 0 0 0
specification
When extension is specified 30H 30H modification
30H 30H 30H 30H
Device
modification, Head device Device Extension Extension Direct
When extension is indirect No. code specification specification memory
specification modification specification
specified
Device Direct
modification, Device Extension Extension
Head device No. memory
When extension is indirect code specification specification specification
specification modification
specified
43 COMMANDS
728 43.2 Device Access
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Bit units 2 digit code/6 digit Not specified 0 0 0 1 01H 00H
number specification
30H 30H 30H 31H
Specified 0
30H
0
30H
8
38H
1
31H
81H 00H
43
4 digit code/8 digit Specified 0 0 8 3 83H 00H
number specification
30H 30H 38H 33H
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification 30H 30H 38H 32H
■Device code
Specify the device code that corresponds to the device type to be read. Refer to the device code list (Page 715 Device
code list).
The double word device and the long index register (LZ) are not supported.
■Device No.
Specify the head number of target device of reading.
■Number of devices
Specify the number of target device points of reading.
Item Number of devices
ASCII code Binary code
When reading data in bit units 1 to 3584 points 1 to 3584 points
When reading data in word units 1 to 960 points 1 to 960 points
Response data
The read device value is stored in hexadecimal. The data order differs depending on the type of code, ASCII code or binary
code.
Read data
43 COMMANDS
43.2 Device Access 729
Communication example
■When reading data in bit units
M100 to M107 are read.
• When communicating data in ASCII code
(Request data)
Device
Subcommand code Head device No. Number of devices
0 4 0 1 0 0 0 1 M * 0 0 0 1 0 0 0 0 0 8
30H 34H 30H 31H 30H 30H 30H 31H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H
(Response data)
0 0 0 1 0 0 1 1 0 = OFF
1 = ON
30H 30H 30H 31H 30H 30H 31H 31H
M100 to M107
01H 04H 01H 00H 64H 00H 00H 90H 08H 00H
(Response data)
0 = OFF
1 = ON
00H 01H 00H 11H
M107
to
M106
M101
M100
0 4 0 1 0 0 0 0 M * 0 0 0 1 0 0 0 0 0 2
30H 34H 30H 31H 30H 30H 30H 30H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 32H
(Response data)
1 2 3 4 0 0 0 2
31H 32H 33H 34H 30H 30H 30H 32H
1 2 3 4 0 0 0 2
0 = OFF
000 1001 0001 1010 0000 0000 0000 0001 0
1 = ON
M115 to M100 M131 to M116
43 COMMANDS
730 43.2 Device Access
• When communicating data in binary code
(Request data)
Device
Subcommand code
Head Number
device No. of devices
01H 04H 00H 00H 64H 00H 00H 90H 02H 00H
(Response data)
43
34H 12H 02H 00H
3 4 1 2 0 2 0 0
0 = OFF
001 1010 0000 1001 0000 0001 0000 0000 0 1 = ON
M107 to M100 M115 to M108 M123 to M116 M131 to M124
0 4 0 1 0 0 0 0 T N 0 0 0 1 0 0 0 0 0 3
30H 34H 30H 31H 30H 30H 30H 30H 54H 4EH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H
(Response data)
1 2 3 4 0 0 0 2 1 D E F
31H 32H 33H 34H 30H 30H 30H 32H 31H 44H 45H 46H
01H 04H 00H 00H 64H 00H 00H C2H 03H 00H
(Response data)
43 COMMANDS
43.2 Device Access 731
Batch write
Data in devices are written in a batch.
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification
4 bytes 4 bytes 2 bytes 6 bytes 4 bytes
Extension Device
0 0 Extension Head device No. 0 0 0
specification
When extension specification modification code
is specified 30H 30H 30H 30H 30H
When extension
is not specified 1 4 0 1 Subcommand Device code Head device No. Number of Write data for the
devices number of points
31H 34H 30H 31H
Extension
0 0 Extension Device Head device No. 0 0 0 0
specification
When extension specification modification code
30H 30H 30H 30H 30H 30H
is specified
2 bytes 4 bytes 4 bytes 4 bytes 10 bytes 4 bytes
When extension is not Head device Device Number Write data for the number
Subcommand of
specified No. code
devices of points
01H 14H
Device
modification, Device Extension Extension Direct
When extension is indirect Head device No. code specification specification memory
modification specification
specified specification
43 COMMANDS
732 43.2 Device Access
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Bit units 2 digit code/6 digit Not specified 0 0 0 1 01H 00H
number specification
30H 30H 30H 31H
Specified 0
30H
0
30H
8
38H
1
31H
81H 00H
43
4 digit code/8 digit Specified 0 0 8 3 83H 00H
number specification
30H 30H 38H 33H
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification 30H 30H 38H 32H
■Device code
Specify the device code that corresponds to the device type to be written. Refer to the device code list (Page 715 Device
code list).
The double word device and the long index register (LZ) are not supported.
■Device No.
Specify the head number of target device of writing.
■Number of devices
Specify the number of target device points of writing.
Item Number of devices
ASCII code Binary code
When writing data in bit units 1 to 3584 points 1 to 3584 points
When writing data in word units 1 to 960 points 1 to 960 points
■Write data
Specify value to be written to a device for the number of points specified in "Device point".
43 COMMANDS
43.2 Device Access 733
Response data
There is no response data for the Device Write command.
Communication example
■When writing data in bit units
Values are written to M100 to M107.
• When communicating data in ASCII code
(Request data)
Device
Subcommand code Head device No. Number of devices Write data
1 4 0 1 0 0 0 1 M * 0 0 0 1 0 0 0 0 0 8 1 1 0 0 1 1 0 0
31H 34H 30H 31H 30H 30H 30H 31H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H 31H 31H 30H 30H 31H 31H 30H 30H
0 = OFF
01H 14H 01H 00H 64H 00H 00H 90H 08H 00H 11H 00H 11H 00H 1 = ON
M107
to
M106
M101
M100
1 4 0 1 0 0 0 0 M * 0 0 0 1 0 0 0 0 0 2 2 3 4 7 A B 9 6
31H 34H 30H 31H 30H 30H 30H 30H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 32H 32H 33H 34H 37H 41H 42H 39H 36H
2 3 4 7 A B 9 6
001 0001 1010 0011 1101 0101 1100 1011 0 0 OFF
1 ON
M115 to M100 M131 to M116
01H 14H 00H 00H 64H 00H 00H 90H 02H 00H 47H 23H 96H ABH
4 7 2 3 9 6 A B
010 0011 1001 0001 1100 1011 0101 0101 1 0 OFF
1 ON
M107 to M100 M115 to M108 M123 to M116 M131 to M124
43 COMMANDS
734 43.2 Device Access
■When writing data in word units (word device)
6549 (1995H) is written in D100, 4610 (1202H) is written in D101, and 4400 (1130H) is written in D102.
• When communicating data in ASCII code
(Request data)
Device
Subcommand code Head device No. Number of devices Write data
1 4 0 1 0 0 0 0 D * 0 0 0 1 0 0 0 0 0 3 1 9 9 5 1 2 0 2 1 1 3 0
31H 34H 30H 31H 30H 30H 30H 30H 44H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H 31H 39H 39H 35H 31H 32H 30H 32H 31H 31H 33H 30H
01H 14H 00H 00H 64H 00H 00H A8H 03H 00H 95H 19H 02H 12H 30H 11H
43 COMMANDS
43.2 Device Access 735
Random read
This command specifies the device No. randomly and reads the device value.
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points.
1 point
Extension Device
When extension is 0 0 Extension specification Device No. 0 0 0
specification modification
code
specified 30H 30H 30H 30H 30H
Double-word access
Device Device
Device No. Device No.
code code
4 digit code/8 digit number specification Specify the devices for the specified number of points.
1 point
Double-word access
Device Device
Device No. Device No.
code code
43 COMMANDS
736 43.2 Device Access
■When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
1 point 43
Device Extension Direct
modification, Device specification Extension memory
When extension is indirect Device No. code modification specification specification
specified specification
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
1 point
Device
modification, Device Extension Extension Direct
When extension is Device No. specification memory
indirect code modification specification specification
specification
specified
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification
30H 30H 38H 32H
43 COMMANDS
43.2 Device Access 737
■Device code, device No.
Specify the target device of reading.
Item Description
Word access Specify the device points specified as word access points. The specification is not necessary when the word access points are
zero.
Double-word access Specify the device points specified as double-word access points. The specification is not necessary when the double-word
access points are zero.
Response data
The read device value is stored in hexadecimal. The data order differs depending on the type of code, ASCII code or binary
code.
Data for the word access points Data for the double-word access points
Read data 1 ... Read data m Read data 1 ... Read data n
Communication example
Read D0, T0, M100 to M115, X20 to X37 by word access, and D1500 to D1501, Y160 to Y217, M1111 to M1142 by double-
word access.
It is supposed that 6549 (1995H) is stored in D0, 4610 (1202H) is stored in T0, 20302 (4F4EH) is stored in D1500, 19540
(4C54H) is stored in D1501.
0 4 0 3 0 0 0 0 0 4 0 3
30H 34H 30H 33H 30H 30H 30H 30H 30H 34H 30H 33H
D * 0 0 0 0 0 0 T N 0 0 0 0 0 0 M * 0 0 0 1 0 0 X * 0 0 0 0 2 0
44H 2AH 30H 30H 30H 30H 30H 30H 54H 4EH 30H 30H 30H 30H 30H 30H 4DH 2AH 30H 30H 30H 31H 30H 30H 58H 2AH 30H 30H 30H 30H 32H 30H
D * 0 0 1 5 0 0 Y * 0 0 0 1 6 0 M * 0 0 1 1 1 1
44H 2AH 30H 30H 31H 35H 30H 30H 59H 2AH 30H 30H 30H 31H 36H 30H 4DH 2AH 30H 30H 31H 31H 31H 31H
43 COMMANDS
738 43.2 Device Access
• Response data
Word access Word access Word access Word access
read data 1 read data 2 read data 3 read data 4
1 9 9 5 1 2 0 2 2 0 3 0 4 8 4 9
31H 39H 39H 35H 31H 32H 30H 32H 32H 30H 33H 30H 34H 38H 34H 39H
Subcommand
00H 00H 00H A8H 00H 00H 00H C2H 64H 00H 00H 90H 20H 00H 00H 9CH
DCH05H 00H A8H 60H 01H 00H 9DH 57H 04H 00H 90H
43 COMMANDS
43.2 Device Access 739
• Response data
Word Word Word Word
access access access access Double-word Double-word Double-word
read read read read access access access
data 1 data 2 data 3 data 4 read data 1 read data 2 read data 3
95H 19H 02H 12H 30H 20H 49H 48H 4EH 4FH 54H 4CH AFH B9H DEH C3H B7H BCH DDH BAH
0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 0 0 OFF 0 OFF
1 0 1 1 0 1 1 1 1 0 1 1 1 0 1 0
1 ON 1 ON
X27 to X20 X37 to X30 M1118 to M1111 M1142 to M1135
43 COMMANDS
740 43.2 Device Access
Random write
This command specifies the device No. randomly and writes the data.
Request data
■When writing data in bit units
• When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points.
43
4 bytes 4 bytes 2 bytes
When Bit
extension is 1 4 0 2 0 0 0 1 access Device Device No.
Set or Device
Device No.
Set or
code reset code reset
not specified 31H 34H 30H 32H 30H 30H 30H 31H points
1 point
Extension Extension
Device
When extension is 0 0 specification specification Device No. 0 0 0
specified modification code
30H 30H 30H 30H 30H
4 digit code/8 digit number specification Specify the devices for the specified number of points.
When Bit
extension is 1 4 0 2 0 0 0 3 access Device code Device No. Set or reset
not specified 31H 34H 30H 32H 30H 30H 30H 33H points
1 point
Extension
Extension
When extension is 0 0 specification specification
modification
Device code Head device No. 0 0 0 0
specified 30H 30H 30H 30H 30H 30H
43 COMMANDS
43.2 Device Access 741
• When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
2 bytes 2 bytes 1 byte
When
extension Bit
Device Set or Device Set or
access Device No. Device No.
is not code reset code reset
specified 02H 14H 01H 00H points
1 point
Device
Extension Extension Direct
modification, Device specification
When extension is indirect Device No. memory
code modification specification specification
specification
specified
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
2 bytes 2 bytes 1 byte
When
extension Bit
Device Set or Device Set or
is not access Device No. Device No.
code reset code reset
specified 02H 14H 03H 00H points
1 point
Device
Extension Extension Direct
modification, Device specification
When extension is indirect Device No. memory
code modification specification specification
specified specification
43 COMMANDS
742 43.2 Device Access
■When writing data in word units
• When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points.
1 point
43
Extension
0 0 Extension specification Device Device No. 0 0 0
When extension is
specification modification code
specified 30H 30H 30H 30H 30H
Double-word access
Device
code Device No. Write data
4 digit code/8 digit number specification Specify the devices for the specified number of points.
1 point
Extension
Extension specification Device
When extension is 0 0 specification code
Head device No. 0 0 0 0
modification
specified 30H 30H 30H 30H 30H 30H
Double-word access
Device
code Device No. Write data
43 COMMANDS
43.2 Device Access 743
• When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
1 point
Device
modification, Device Extension Extension Direct
When extension is indirect Device No. specification memory
code modification specification specification
specified specification
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
1 point
Device
modification, Device Extension Extension Direct
When extension is indirect Device No. specification memory
code modification specification specification
specified specification
■Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Bit units 2 digit code/6 digit Not specified 0 0 0 1 01H 00H
number specification
30H 30H 30H 31H
Specified 0 0 8 1 81H 00H
30H 30H 38H 31H
4 digit code/8 digit Specified 0 0 8 3 83H 00H
number specification
30H 30H 38H 33H
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification
30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification
30H 30H 38H 32H
43 COMMANDS
744 43.2 Device Access
■Bit access points, word access points, double-word access points
Item Description Number of points
ASCII code Binary code
Bit access points Specify the number of bit device points in one-point units. 1 to 188
When device memory extension specification is used
1 to 94
Word access points Specify the number of points to be accessed in one-word 1 word access points 12 + double-word access points 14
units. 1920
The bit device is 16-point units, the word device is one-word When device memory extension specification is used, double
units. the number of the access points.
43
Double-word access points Specify the number of points to be accessed in two-word
units.
The bit device is 32-point units, the word device is two-word
units.
■Set or reset
Specify ON/OFF of the bit device.
• 2 digit code/6 digit number specification
Item Data to write Remark
ON OFF
ASCII code "01" "00" Two characters will be sent in order from "0".
Binary code 01H 00H The one-byte numerical value shown left will be sent.
43 COMMANDS
43.2 Device Access 745
Response data
There is no response data for the Random write command.
Communication example
■When writing data in bit units
Turn off M50 and turn on Y27.
• When communicating data in ASCII code (X, Y OCT)
(Request data)
Bit
access Device Set or Device Set or
Subcommand points code Device No. reset code Device No. reset
1 4 0 2 0 0 0 1 0 2 M * 0 0 0 0 5 0 0 0 Y * 0 0 0 0 2 7 0 1
31H 34H 30H 32H 30H 30H 30H 31H 30H 32H 4DH 2AH 30H 30H 30H30H 35H 30H 30H 30H 59H 2AH 30H 30H 30H30H 32H 37H 30H 31H
02H 14H 01H 00H 02H 32H 00H 00H 90H 00H 27H 00H 00H 9DH 01H
43 COMMANDS
746 43.2 Device Access
■When writing data in word units
Write the value in a device as follows.
Item Target device
Word access D0, D1, M100 to M115, X20 to X37
Double-word access D1500 to D1501, Y160 to Y217, M1111 to M1142
1 4 0 2 0 0 0 0 0 4 0 3
31H 34H 30H 32H 30H 30H 30H 30H 30H 34H 30H 33H
Device Device
code Device No. Write data code Device No. Write data
D * 0 0 0 0 0 0 0 5 5 0 D * 0 0 0 0 0 1 0 5 7 5
44H 2AH 30H 30H 30H 30H 30H 30H 30H 35H 35H 30H 44H 2AH 30H 30H 30H 30H 30H 31H 30H 35H 37H 35H
Data 1 Data 2
M * 0 0 0 1 0 0 0 5 4 0 X * 0 0 0 0 2 0 0 5 8 3
4DH 2AH 30H 30H 30H 31H 30H 30H 30H 35H 34H 30H 58H 2AH 30H 30H 30H 30H 32H 30H 30H 35H 38H 33H
Data 3
D * 0 0 1 5 0 0 0 4 3 9 1 2 0 2 Y * 0 0 0 1 6 0 2 3 7 5 2 6 0 7
44H 2AH 30H 30H 31H 35H 30H 30H 30H 34H 33H 39H 31H 32H 30H 32H 59H 2AH 30H 30H 30H 31H 36H 30H 32H 33H 37H 35H 32H 36H 30H 37H
Data 4
M * 0 0 1 1 1 1 0 4 2 5 0 4 7 5
4DH 2AH 30H 30H 31H 31H 31H 31H 30H 34H 32H 35H 30H 34H 37H 35H
0 5 4 0 2 3 0 7
0 5 8 3 0 4 7 5
43 COMMANDS
43.2 Device Access 747
• When communicating data in binary code
(Request data)
Word Double-word
access access
points points
Subcommand
00H 00H 00H A8H 50H 05H 01H 00H 00H A8H 75H 05H 64H 00H 00H 90H 40H 05H 20H 00H 00H 9CH 83H 05H
Data 3 Data 4
DCH 05H 00H A8H 02H 12H 39H 04H 60H 01H 00H 9DH 07H 26H 75H 23H 57H 04H 00H 90H 75H 04H 25H 04H
4 0 0 5 0 OFF
1 ON
Data 1 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1
M107 to M100 M115 to M108
8 3 0 5 0 OFF
1 ON
Data 2 1 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1
0 7 2 6 7 5 2 3 0 OFF
1 ON
Data 3 0 0 0 0 0 1 1 1 0 0 1 0 0 1 1 0 0 1 1 1 0 1 0 1 0 0 1 0 0 0 1 1
Y167 to Y160 Y177 to Y170 Y207 to Y200 Y217 to Y210
7 5 0 4 2 5 0 4 0 OFF
1 ON
Data 4 0 1 1 1 0 1 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 0 0 0 1 0 0
43 COMMANDS
748 43.2 Device Access
Batch read multiple blocks
The examples shown in this section explain the control procedure for reading by randomly specifying multiple blocks, where 1
block consists of n point(s) of bit device memory (one point is specified by 16-bit) or word device memory (one point is
specified by 1-word).
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification 43
Specify the devices for the specified number of points.
Block 1
Extension
When extension is Extension Device
0 0 specification Device No. 0 0 0
specified specification modification code
30H 30H 30H 30H 30H
Block 1
Extension
When extension is Extension
specification
Device
0 0 specification code Device No. 0 0 0 0
specified modification
30H 30H 30H 30H 30H 30H
43 COMMANDS
43.2 Device Access 749
■When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
When Number of Number of 1st word device in the nth block Last bit device in the mth block
extension is Subcommand word device bit device Device Number of Device Number
Device No. Device No.
not specified 06H 04H blocks blocks code devices code of devices
Block 1
Device Direct
Extension
When extension modification, Device specification Extension memory
Device No.
is specified
indirect
specification
code modification specification specification
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
When Number of Number of 1st word device in the nth block Last bit device in the mth block
extension is Subcommand word device bit device Device Device
Device No. Number of devices Device No. Number of devices
not specified 06H 04H blocks blocks code code
Block 1
Device
Extension Extension Direct
When extension modification, Device specification memory
Device No.
is specified
indirect
specification
code modification specification specification
Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification 30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification
30H 30H 38H 32H
43 COMMANDS
750 43.2 Device Access
Device code, device No., number of device points
Specify the device points while satisfying the following conditions:
Total number of points for all word device blocks + total number of points for all bit device blocks 960
Item Description
Word device Specify the device of the points specified in "Number of word device blocks". When "Number of word device blocks" is
set to 0, this specification is unnecessary.
Bit device Specify the device of the points specified in "Number of bit device blocks". When "Number of bit device blocks" is set to
0, this specification is unnecessary.
43
When specifying a contact or coil of a timer, retentive timer, or counter, use the bit device block.
Set up in order of word device bit device.
Response data
Data of the specified word device blocks Data of the specified bit device blocks
1st block data ... nth block data 1st block data ... mth block data
Communication example
Values are read from devices as follows.
Item Read contents
Word device • Block 1: D0 to D3 (4 points)
• Block 2: W100 to W107 (8 points)
Bit device • Block 1: M0 to M31 (2 points)
• Block 2: M128 to M159 (2 points)
• Block 3: B100 to B12F (3 points)
Command Subcommand
0 4 0 6 0 0 0 0 0 2 0 3
30H 34H 30H 36H 30H 30H 30H 30H 30H 32H 30H 33H
Device Device
code Device No. Number of devices code Device No. Number of devices
D * 0 0 0 0 0 0 0 0 0 4 W * 0 0 0 1 0 0 0 0 0 8
44H 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 34H 57H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H
Device Device
code Device No. Number of devices code Device No. Number of devices
M * 0 0 0 0 0 0 0 0 0 2 M * 0 0 0 1 2 8 0 0 0 2
4DH 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 32H 4DH 2AH 30H 30H 30H 31H 32H 38H 30H 30H 30H 32H
Device
code Device No. Number of devices
B * 0 0 0 1 0 0 0 0 0 3
42H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H
43 COMMANDS
43.2 Device Access 751
(Response data)
1st block data of the 2nd block data of the
specified word device specified word device
0 0 0 8 2 0 3 0 1 5 4 5 2 8 0 0 0 9 7 0 ... 0 1 3 1
30H 30H 30H 38H 32H 30H 33H 30H 31H 35H 34H 35H 32H 38H 30H 30H 30H 39H 37H 30H 30H 31H 33H 31H
D0 D1 D2 D3 W100 to W107
M15 to M0 M31 to M16 M143 to M128 M159 to M144 B10F to B100 B11F to B110 B12F to B120
2 0 3 0 4 8 4 9 C 3 D E 2 8 0 0 0 9 7 0 B 9 A F B 9 A F
32H 30H 33H 30H 34H 38H 34H 39H 43H 33H 44H 45H 32H 38H 30H 30H 30H 39H 37H 30H 42H 39H 41H 46H 42H 39H 41H 46H
1st block data of the 2nd block data of the 3rd block data of the
specified bit device specified bit device specified bit device
M15 to M0
Command Subcommand
Device Number Device Number Device Number Device Number of Device Number
Device No. code of devices Device No. code of devices Device No. code of devices Device No. code devices Device No. code of devices
00H 00H 00H A8H 04H 00H 00H 01H 00H B4H 08H 00H 00H 00H 00H 90H 02H 00H 80H 00H 00H 90H 02H 00H 00H 01H 00H A0H 03H 00H
(Response data)
1st block data of 2nd block data of 3rd block data of the
1st block data of the 2nd block data of the specified the specified specified bit
specified word device the specified word device bit device bit device device
...
08H 00H 30H 20H 45H 15H 00H 28H 70H 09H 31H 01H 30H 20H 49H 48H DEH C3H 00H 28H 70H 09H AFH B9H AFH B9H
43 COMMANDS
752 43.2 Device Access
Batch write multiple blocks
The examples shown in this section explain the control procedure for writing by randomly specifying multiple blocks, where 1
block consists of n point(s) of a bit device memory (one point is specified by 16-bit) and a word device memory (one point is
specified by 1-word).
Request data
■When communicating data in ASCII code
2 digit code/6 digit number specification Specify the devices for the specified number of points. 43
4 bytes 4 bytes 2 bytes 2 bytes
Block 1
Extension
When Extension Device
0 0 specification Device No. 0 0 0
extension is specification modification code
30H 30H 30H 30H 30H
specified
2 bytes 4 bytes 3 bytes 2 bytes 6 bytes 3 bytes
4 digit code/8 digit number specification Specify the devices for the specified number of points.
Block 1
Extension
When extension Extension specification
Device
is specified 0 0 specification code Head device No. 0 0 0 0
modification
30H 30H 30H 30H 30H 30H
43 COMMANDS
43.2 Device Access 753
■When communicating data in binary code
2 digit code/6 digit number Specify the devices for the specified number of points.
specification
When 1st word device in the nth block Last bit device in the mth block
Number of Number of
extension Subcommand word device bit device
Head device Written device Head device Written device
is not blocks blocks Device No. Device Number of Data 1 Data n Device No.
Device Number of Data 1
Data n
specified 06H 14H code devices code devices
Block 1
Device
Device Extension Extension Direct
When modification,
specification specification memory
indirect Device No. code
extension is specification modification specification
specified
2 bytes 3 bytes 1 byte 2 bytes 2 bytes 1 byte
4 digit code/8 digit number Specify the devices for the specified number of points.
specification
When 1st word device in the nth block Last bit device in the mth block
Number of Number of
extension Subcommand word device bit device
Head device Written device Head device Written device
is not blocks blocks Device No.
Device
Number of devices Data 1 Data n Device No.
Device
Number of devices Data 1 Data n
specified 06H 14H code code
Block 1
Device
When modification, Device Extension Extension Direct
Device No. specification
extension is
indirect code modification specification memory
specification specification
specified
2 bytes 4 bytes 2 bytes 2 bytes 2 bytes 1 byte
Subcommand
Specify the subcommand selected from the item.
Item Subcommand
Data size Device Device memory ASCII code Binary code
specification specification extension (Upper column: characters, lower column:
format specification character code)
Word units 2 digit code/6 digit Not specified 0 0 0 0 00H 00H
number specification 30H 30H 30H 30H
Specified 0 0 8 0 80H 00H
30H 30H 38H 30H
4 digit code/8 digit Specified 0 0 8 2 82H 00H
number specification 30H 30H 38H 32H
43 COMMANDS
754 43.2 Device Access
Number of word device blocks and number of bit device blocks
Specify the number of blocks of the device to be written in hexadecimal.
Item Description Number of points
ASCII code Binary code
Number of word device Specify the number of blocks of the word device Number of word device blocks + Number of bit device blocks 120
blocks to be written. When device memory extension specification is used, double the number of
the block points.
Number of bit device Specify the number of blocks of the bit device to
blocks be written.
When specifying a contact or coil of a timer, retentive timer, or counter, use the bit device block.
Set up in order of word device bit device.
Response data
There is no response data for the batch write multiple blocks command.
43 COMMANDS
43.2 Device Access 755
Communication example
Write values from devices as follows.
Item Write contents
Word device • Block 1: D0 to D3 (4 points)
• Block 2: W100 to W107 (8 points)
Bit device • Block 1: M0 to M31 (2 points)
• Block 2: M128 to M159 (2 points)
• Block 3: B100 to B12F (3 points)
Command Subcommand
1 4 0 6 0 0 0 0 0 2 0 3
31H 34H 30H 36H 30H 30H 30H 30H 30H 32H 30H 33H
Device
code Device No. Number of devices Write data
D * 0 0 0 0 0 0 0 0 0 4 0 0 0 8 2 8 0 0
44H 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 34H 30H 30H 30H 38H 32H 38H 30H 30H
D0 to D3
Device
code Device No. Number of devices Write data
W * 0 0 0 1 0 0 0 0 0 8 0 9 7 0 0 1 3 1
57H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 38H 30H 39H 37H 30H 30H 31H 33H 31H
W100 to W107
Device
code Device No. Number of devices Write data
M * 0 0 0 0 0 0 0 0 0 2 2 0 3 0 4 8 4 9
4DH 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H 32H 32H 30H 33H 30H 32H 38H 34H 39H
M * 0 0 0 1 2 8 0 0 0 2 C 3 D E 2 8 0 0
4DH 2AH 30H 30H 30H 31H 32H 38H 30H 30H 30H 32H 43H 33H 44H 45H 32H 38H 30H 30H
B * 0 0 0 1 0 0 0 0 0 3 0 9 7 0 B 9 A F
42H 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 33H 30H 39H 37H 30H 42H 39H 41H 46H
B 9 A F
1 0 1 1 1 0 0 1 1 0 1 0 1 1 1 1 0 = OFF
1 = ON
B12F to B120
43 COMMANDS
756 43.2 Device Access
■When communicating data in binary code
(Request data)
Number of word device Number of bit device
blocks blocks
Command Subcommand
Device
No.
Device Number of
code devices Write data
Device
No.
Device Number of
code devices Write data
43
00H 00H 00H A8H 04H 00H 08H 00H 00H 28H 00H 01H 00H B4H 08H 00H 70H 09H 31H 01H
D0 to D3 W100 to W107
00H 00H 00H 90H 02H 00H 30H 20H 49H 48H 80H 00H 00H 90H 02H 00H DEH C3H 00H 28H
00H 01H 00H A0H 03H 00H 70H 09H AFH B9H
to B12F to B120
7 0 0 9
0 1 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 = OFF
1 = ON
B107 to B100 B10F to B108
43 COMMANDS
43.2 Device Access 757
43.3 Remote Control
This section describes the command to set the MC protocol compatible device or CPU module to the RUN status or STOP
status by a message from the external device.
Ex.
Even if the Remote STOP is executed when the switch of the CPU module is in the RUN status, the operation will return to the
RUN status after resetting the module.
When a remote password of the CPU module of the access destination is enabled
Remote operation from the external device is not available. An error will occur at the access destination, and an abnormal
response will be sent back to the external device. Unlock the remote password of the CPU module side, and resend the
request message.
Remote RUN
This command executes Remote RUN to the access destination module.
Remote RUN can be executed when the switch of the access destination module is in the RUN status. Even if
the switch is in the STOP status, Remote RUN (command: 1001H) will be completed normally. However, the
access destination does not change to the RUN status.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes 2 bytes 2 bytes
Clear
1 0 0 1 Subcommand Mode mode 0 0
31H 30H 30H 31H 30H 30H 30H 30H 30H 30H
Clear
Subcommand Mode
mode
01H 10H 00H 00H 00H
43 COMMANDS
758 43.3 Remote Control
■Mode
This mode specifies whether Remote RUN can be executed forcibly by a device other than the external device which
performed Remote STOP or Remote PAUSE. If forced execution is not allowed, Remote RUN can be executed only by the
external device which performed Remote STOP or Remote PAUSE.
Forced execution is used when the external device which performed the remote operation cannot execute Remote RUN
because of a problem with the device.
Item Mode
ASCII code Binary code
Forced execution not allowed (Remote RUN cannot be executed when other device 43
executes Remote STOP or Remote PAUSE.)
0 0 0 1
30H 30H 30H 31H 01H 00H
Forced execution allowed (Remote RUN can be executed when other device
executes Remote STOP or Remote PAUSE.)
0 0 0 3
30H 30H 30H 33H 03H 00H
■Clear mode
This mode specifies whether the clear (initialization) processing of device is executed when starting the calculation for the
Remote RUN.
Only 00H is valid.
Item Mode
ASCII code Binary code
Do not clear device
0 0
30H 30H 00H
Response data
There is no response data for the Remote RUN command.
Communication example
Set mode to "Forced execution not allowed", and set clear mode to "Clear all devices including that in the latch range" when
executing Remote RUN.
• When communicating data in ASCII code
(Request data)
Clear
Mode mode
1 0 0 1 0 0 0 0 0 0 0 1 0 2 0 0
31H 30H 30H 31H 30H 30H 30H 30H 30H 30H 30H 31H 30H 32H 30H 30H
43 COMMANDS
43.3 Remote Control 759
Remote STOP
This command executes Remote STOP to the access destination module.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 2 Subcommand 0 0 0 0
31H 30H 30H 32H 30H 30H 30H 30H 30H 30H 30H 30H
Subcommand
Response data
There is no response data for the Remote STOP command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
Remote PAUSE
This command executes Remote PAUSE to the access destination module.
Remote PAUSE can be executed when the switch of the access destination module is in the RUN status.
Even if the switch is in the STOP status, Remote PAUSE (command: 1003H) will be completed normally.
However, the access destination does not change to the PAUSE status.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 3 Subcommand Mode
31H 30H 30H 33H 30H 30H 30H 30H
Subcommand Mode
43 COMMANDS
760 43.3 Remote Control
■Mode
This mode specifies whether Remote PAUSE can be executed forcibly by a device other than the external device which
performed Remote STOP or Remote PAUSE. If forced execution is not allowed, Remote PAUSE can be executed only by the
external device which performed Remote STOP or Remote PAUSE.
Forced execution is used when the external device which performed the remote operation cannot execute Remote PAUSE
because of a problem with the device.
Item Mode
ASCII code Binary code
Forced execution not allowed (Remote PAUSE cannot be executed when other 43
device executes Remote STOP or Remote PAUSE.)
0 0 0 1
30H 30H 30H 31H 01H 00H
Forced execution allowed (Remote PAUSE can be executed when other device
executes Remote STOP or Remote PAUSE.)
0 0 0 3
30H 30H 30H 33H 03H 00H
Response data
There is no response data for the Remote PAUSE command.
Communication example
Set mode to "Forced execution not allowed" when executing Remote PAUSE.
1 0 0 3 0 0 0 0 0 0 0 1
31H 30H 30H 33H 30H 30H 30H 30H 30H 30H 30H 31H
Mode
Before executing the remote latch clear, set the status of the access destination module to STOP.
While the access destination is stopped or paused remotely by request from another external device:
• The remote latch clear cannot be executed. Abnormal completion of the command will occur.
• Cancel the Remote STOP or Remote PAUSE before executing the command.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 5 Subcommand 0 0 0 0
31H 30H 30H 35H 30H 30H 30H 30H 30H 30H 30H 30H
43 COMMANDS
43.3 Remote Control 761
■When communicating data in binary code
2 bytes 2 bytes 2 bytes
Subcommand
Response data
There is no response data for remote latch clear command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
Remote RESET
This command executes Remote RESET to the access destination module. Remote RESET is used to restore when an error
occurred in the MC protocol compatible device.
Precautions
• In some cases, Remote RESET cannot be executed because of hardware error, etc.
• The response message when Remote RESET is executed may not be sent back to the external device since the access
destination is reset.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes
1 0 0 6 Subcommand 0 0 0 0
31H 30H 30H 36H 30H 30H 30H 30H 30H 30H 30H 30H
Subcommand
Response data
There is no response data for the Remote RESET command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
43 COMMANDS
762 43.3 Remote Control
Read CPU model name
This command reads the processor module name code (processor type) of the access destination module.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes
43
0 1 0 1 Subcommand
30H 31H 30H 31H 00H 00H 00H 00H
Subcommand
Response data
■When communicating data in ASCII code
16 bytes 4 bytes
Model Model
code
Model Model
code
■Model
The characters of the module model are stored for 16 characters from the upper byte.
If the model to be read is less than 16 characters, space (20H) is stored for the remaining characters. Even when
communicating data in binary code, the module model is stored in ASCII code.
43 COMMANDS
43.3 Remote Control 763
■Model code
The following model codes will be stored.
When communicating in ASCII code, the data is stored in order from the upper byte to the lower byte.
When communicating in binary code, the data is stored in order from the lower byte to the upper byte.
Model Model code (hexadecimal)
FX5U-32MR/ES 4A21H
FX5U-64MR/ES 4A23H
FX5U-80MR/ES 4A24H
FX5U-32MT/ES 4A29H
FX5U-64MT/ES 4A2BH
FX5U-80MT/ES 4A2CH
FX5U-32MT/ESS 4A31H
FX5U-64MT/ESS 4A33H
FX5U-80MT/ESS 4A34H
FX5U-32MR/DS 4A41H
FX5U-64MR/DS 4A43H
FX5U-80MR/DS 4A44H
FX5U-32MT/DS 4A49H
FX5U-64MT/DS 4A4BH
FX5U-80MT/DS 4A4CH
FX5U-32MT/DSS 4A51H
FX5U-64MT/DSS 4A53H
FX5U-80MT/DSS 4A54H
FX5UC-32MT/D 4A91H
FX5UC-64MT/D 4A92H
FX5UC-96MT/D 4A93H
FX5UC-32MT/DSS 4A99H
FX5UC-64MT/DSS 4A9AH
FX5UC-96MT/DSS 4A9BH
FX5UC-32MR/DS-TS 4AA9H
FX5UC-32MT/DS-TS 4AB1H
FX5UC-32MT/DSS-TS 4AB9H
FX5UJ-24MR/ES 4B0DH
FX5UJ-40MR/ES 4B0EH
FX5UJ-60MR/ES 4B0FH
FX5UJ-24MT/ES 4B14H
FX5UJ-40MT/ES 4B15H
FX5UJ-60MT/ES 4B16H
FX5UJ-24MT/ESS 4B1BH
FX5UJ-40MT/ESS 4B1CH
FX5UJ-60MT/ESS 4B1DH
FX5S-30MR/ES 4B4EH
FX5S-40MR/ES 4B4FH
FX5S-60MR/ES 4B50H
FX5S-80MR/ES*1 4B51H
FX5S-30MT/ES 4B55H
FX5S-40MT/ES 4B56H
FX5S-60MT/ES 4B57H
FX5S-80MT/ES*1 4B58H
FX5S-30MT/ESS 4B5CH
FX5S-40MT/ESS 4B5DH
FX5S-60MT/ESS 4B5EH
FX5S-80MT/ESS*1 4B5FH
43 COMMANDS
764 43.3 Remote Control
*1 Area-specific model
Communication example
■When communicating data in ASCII code
(Request data)
0 1 0 1 0 0 0 0
43
30H 31H 30H 31H 30H 30H 30H 30H
(Response data)
F X 5 U - 3 2 M R / E S 4 A 2 1
46H 58H 35H 55H 2DH 33H 32H 4DH 52H 2FH 45H 53H 20H 20H 20H 20H 34H 41H 32H 31H
(Response data)
F X 5 U - 3 2 M R / E S
46H 58H 35H 55H 2DH 33H 32H 4DH 52H 2FH 45H 53H 20H 20H 20H 20H 21H 4AH
43 COMMANDS
43.3 Remote Control 765
43.4 Clear Error
This function turns off ERR LED of the FX5CPU from the external device and/or initializes the communication error
information or error code stored in the buffer memory.
This function is used to initialize the current error information due to an abnormal response for a request message and return
it to the normal state or initialize the error code storage area of the buffer memory.
The order and description of the data item differ depending on the frame and pattern in a communication.
This function can be used only for the FX5CPU which is connected with the external device.
This function cannot be used for the FX5CPU of another station via the network system.
The data part of the command and control procedure when the display LEDs of the CPU module are turned off and the
communication error information is initialized from the external device is described.
Command
: The function can be executed.
Function Command Contents of processing CPU module status
(Subcommand) STOP RUN
Write Write
allow prohibit
setting setting
LED OFF, error code initialization 1617 (0000) Turns off the display LEDs, initializes the error code, and
others.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes
1 6 1 7 Subcommand
31H 36H 31H 37H 30H 30H 30H 30H
Subcommand
Response data
There is no response data for the Clear Error command.
Communication example
Send request messages from the external device by using the message format shown in the request data above.
43 COMMANDS
766 43.4 Clear Error
43.5 Loopback Test
This function tests whether the communication function between the external device and FX5CPU operates normally or not.
The control procedure when this function is used is described with examples.
• At the startup of the FX5CPU or when trouble occurs, this function can check whether the connection
between the external device and FX5CPU is correct and/or whether the data communication function
operates normally. 43
• This function can be used only for the FX5CPU which is connected with the external device (including a
multi-drop connection station). This function cannot be used for the FX5CPU of another station via the
network system.
Command
: The function can be executed.
Function Command Contents of processing CPU module status
(Subcommand) STOP RUN
Write Write
allow prohibit
setting setting
Loopback test 0619 (0000) Checks whether data communication is executed normally.
Request data
■When communicating data in ASCII code
4 bytes 4 bytes 4 bytes "n" bytes
Number of
0 6 1 9 Subcommand loopback data Loopback data
30H 36H 31H 39H 30H 30H 30H 30H
Response data
The same number of the loopback data and loopback data which the external device sent are sent back to the external
device.
43 COMMANDS
43.5 Loopback Test 767
Communication example
Send request messages from the external device by using the message format shown in the request data (Page 767
Request data).
The following shows an example when loopback data is "abcdefghijkl".
0 6 1 9 0 0 0 0 0 0 1 2 a b c d e f g h i j k l
30H 36H 31H 39H 30H 30H 30H 30H 30H 30H 31H 32H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH
(Response data)
Number of
loopback data Loopback data
0 0 1 2 a b c d e f g h i j k l
30H 30H 31H 32H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH
a b c d e f g h i j k l
19H 06H 00H 00H 12H 00H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH
(Response data)
Number of
loopback data Loopback data
a b c d e f g h i j k l
12H 00H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH
43 COMMANDS
768 43.5 Loopback Test
44 COMMUNICATING USING 1C FRAMES
This chapter explains the functions when accessing using 1C frame and their message format.
1C frame is compatible with the communication function of the dedicated protocols supported by computer link of FX3 and A
series computer link modules.
Only the commands for 1C frame explained in this chapter can be used for 1C frame.
Station PC No.
Character area
No.
Station PC No.
No.
Command
Set the command type. (Page 774 Command and Function Lists for 1C Frame)
The setting values for each command are as follows.
Function Command Reference
Symbol ASCII code
Device memory read and write BR 42H, 52H Page 778 Batch read (bit units) (command: BR)
WR 57H, 52H Page 779 Batch read (word units) (command: WR, QR) 44
QR 51H, 52H
BW 42H, 57H Page 781 Batch write (bit units) (command: BW)
WW 57H, 57H Page 782 Batch write (word units) (command: WW, QW)
QW 51H, 57H
BT 42H, 54H Page 784 Test (random write) (bit units) (command: BT)
WT 57H, 54H Page 785 Test (random write) (word units) (command: WT, QT)
QT 51H, 54H
Remote RUN, Remote STOP RR 52H, 52H Page 787 Remote RUN, remote STOP (command: RR, RS)
RS 52H, 53H
Read CPU model name PC 50H, 43H Page 788 Read CPU model name (command: PC)
Global GW 47H, 57H Page 790 Global signal ON/ OFF (command: GW)
Loopback test TT 54H, 54H Page 791 Loopback test (Command: TT)
Setting method
Use the commands by converting to 2-digit (hexadecimal) ASCII codes.
Ex.
Device memory batch read (BR) in bit unit
B R
42H 52H
Message wait
Message wait is a data to generate a delay time for response transmission.
Some external devices may take time to become receiving status after sending a command.
Specify the minimum wait time to send the result after FX5 CPU module is received a command from an external device.
Specify the wait time in accordance with the specifications of the external device.
Setting method
Specify the wait time within the range of 0 to 150ms in 10ms units.
Convert 0H to FH (0 to 15) to 1-digit (hexadecimal) ASCII codes regarding 10ms as 1H.
Ex.
When the message wait time is 100 ms
If the following value is set to message wait in request message, after passing 100 ms or more, transmission of a response
message will be started.
A
41H
External device
Response message that can be abbreviated
Command Message wait (Normal completion)
Character ACK
ENQ
Request message area A
Transmission order Response message Character
Supported devices STX
area B
(Normal completion : The
response data exist.) or Error code
External device
Character
Request message ENQ area C
Response message
NAK
(Abnormal completion)
Setting method
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Ex.
For error code 05H 44
0 5
30H 35H
Command
Command is a communication function issued by MC protocol, and the command is accessible.
When accessing modules other than FX5 CPU module, there is a restriction for the accessible device range.
Page 775 Considerations when accessing devices other than FX5 CPU module
Considerations
The considerations when reading/writing device memory using the commands described in this section.
Timer, counter
Device Device
Device number
code Device number code
Ex.
Current value of input (X) 40 and timer (T) 10
Device BR, BW, BT, WR, WW, WT command QR, QW, QT command
Input (X) 40
X 0 0 4 0 X 0 0 0 0 4 0
58H 30H 30H 34H 30H 58H 30H 30H 30H 30H 34H 30H
T S 0 1 0 T S 0 0 0 1 0
54H 4EH 30H 31H 30H 54H 4EH 30H 30H 30H 31H 30H
Precautions
• When using the command specifying the word unit (WR, WW, WT, QR, QW, QT), make sure to set a multiple of 8 as the
head device address of the bit device.
• Special relays and special registers are divided into three, the ones for read only, write only, and the system. If the write is
performed outside the writable range, an error may occur in the PLC. For details on the special relays and special registers,
refer to MELSEC iQ-F FX5 User's Manual (Application).
• Do not set the setting which overlaps the data register and the special register.
• In the FX5 CPU module, even if the device value is changed, the device initial value is not changed. 44
Number of device points
Specify the number of device points to be read or written.
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Specify the number of device points in one command within the device points that can be processed in one communication.
Page 774 Command and Function Lists for 1C Frame
Specify '00' for 256 points.
Ex.
5 points, 20 points, 256 points
Number of device points ASCII code
5 points
0 5
30H 35H
20 points
1 4
31H 34H
256 points
0 0
30H 30H
Message format
The following shows the message format of the request data and response data of the command.
■Request data
■Response data
The value of read device is stored in bit units. (Page 720 Read data, write data)
B R
42H 52H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Head device
Specify the head device. (Page 775 Device codes, device numbers)
Communication example
Read data in bit units under the following conditions.
• Message wait: 100ms
• Head device: X40
• Number of device points: 5 points
(Request data)
■When using BR
Message wait
Number of
Head device device points
B R A X 0 0 4 0 0 5
42H 52H 41H 58H 30H 30H 34H 30H 30H 35H
(Response data)
Data read
0 1 1 0 1
30H 31H 31H 30H 31H
(X40) (X41) (X42) (X43) (X44)
Message format
The following shows the message format of the request data and response data of the command.
■Request data
Number of device
Command Message wait Head device points
(Number of words)
44
■Response data
The value of read device is stored in word units. (Page 720 Read data, write data)
W R Q R
57H 52H 51H 52H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Head device
Specify the head device. (Page 775 Device codes, device numbers)
• When specifying bit devices, set the head device No. in multiples of 8.
■When using WR
Message wait
Number of device points
Head device (Number of words)
W R 0 X 0 0 4 0 0 2
57H 52H 30H 58H 30H 30H 34H 30H 30H 32H
■When using QR
Message wait
Number of device points
Head device (Number of words)
Q R 0 X 0 0 0 0 4 0 0 2
51H 52H 30H 58H 30H 30H 30H 30H 34H 30H 30H 32H
(Response data)
Data read
■When using WR
Message wait
Number of device points
Head device (Number of words)
W R 0 T N 1 2 3 0 2
57H 52H 30H 54H 4EH 31H 32H 33H 30H 32H
■When using QR
Message wait
Number of device points
Head device (Number of words)
Q R 0 T N 0 0 1 2 3 0 2
51H 52H 30H 54H 4EH 30H 30H 31H 32H 33H 30H 32H
(Response data)
Data read
7 B C 9 1 2 3 4
37H 42H 43H 39H 31H 32H 33H 34H
(T123) (T124)
Message format
The following shows the message format of the request data and response data of the command.
■Request data
Command Message wait Head device Number of Write data for the number of
device points device points
■Response data 44
There is no response data for this command.
B W
42H 57H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Head device
Specify the head device. (Page 775 Device codes, device numbers)
Communication example
Write data in bit units in batch under the following conditions.
• Message wait: 0ms
• Head device: M903
• Number of device points: 5 points
(Request data)
■When using BW
Message wait Number of device points (Number of words)
B W 0 M 0 9 0 3 0 5 0 1 1 0 1
42H 57H 30H 4DH 30H 39H 30H 33H 30H 35H 30H 30H 30H 31H 30H
(M903) (M904) (M905) (M906) (M907)
Message format
The following shows the message format of the request data and response data of the command.
■Request data
Command Message wait Head device Number of Write data for the number of
device points device points
■Response data
There is no response data for this command.
W W Q W
57H 57H 51H 57H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Head device
Specify the head device. (Page 775 Device codes, device numbers)
When specifying bit devices, set the head device No. in multiples of 8.
■When using WW
Message wait Number of device points (Number of words)
W
57H
W
57H
0
30H
M 0 6
4DH 30H 36H 34H 30H 30H 32H
4 0 0 2 2
32H
3
33H 34H
4
37H
7
41H
A
42H
B 9
39H 36H
6
44
(M671) to (M656)
0 0 1 0 0 0 1 1 0 1 0 0 0 1 1 1
(M655) to (M640)
■When using QW
Message wait Number of device points (Number of words)
Head device Write data for the number of device points
Q W 0 M 0 0 0 6 4 0 0 2 2 3 4 7 A B 9 6
51H 57H 30H 4DH 30H 30H 30H 36H 34H 30H 30H 32H 32H 33H 34H 37H 41H 42H 39H 36H
(M671) to (M656)
0 0 1 0 0 0 1 1 0 1 0 0 0 1 1 1
(M655) to (M640)
■When using WW
Message wait Number of device points (Number of words)
W W 0 D 0 0 0 0 0 2 1 2 3 4 A C D 7
57H 57H 30H 44H 30H 30H 30H 30H 30H 32H 31H 32H 33H 34H 41H 43H 44H 37H
(D0) (D1)
■When using QW
Message wait Number of device points (Number of words)
Q W 0 D 0 0 0 0 0 0 0 2 1 2 3 4 A C D 7
51H 57H 30H 44H 30H 30H 30H 30H 30H 30H 30H 32H 31H 32H 33H 34H 41H 43H 44H 37H
(D0) (D1)
Message format
The following shows the message format of the request data and response data of the command.
■Request data
Number of Device Set/reset Device Set/reset
Command Message wait device points (first point) (first point) (nth point) (nth point)
(n points)
■Response data
There is no response data for this command.
B T
42H 54H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Device
Specify the device to test. (Page 775 Device codes, device numbers)
■Set/Reset
• 0 (30H): Reset (OFF)
• 1 (31H): Set (ON)
Communication example
Perform the test in bit units under the following conditions.
• Message wait: 0ms
• Number of device points: 3 points
• Device: Turn ON M50, turn OFF S100, and turn ON Y1
(Request data)
■When using BT
Number of device points
Message wait
(Number of words) Set/ Set/ Set/
Device reset Device reset Device reset
B T 0 0 3 M 0 0 5 0 1 S 0 1 0 0 0 Y 0 0 0 1 1
42H 54H 30H 30H 33H 4DH 30H 30H 35H 30H 31H 53H 30H 31H 30H 30H 31H 59H 30H 30H 30H 31H 31H
Message format
The following shows the message format of the request data and response data of the command.
■Request data
■Response data
There is no response data for this command.
W T Q T
57H 54H 51H 54H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Device
Specify the device to test. (Page 775 Device codes, device numbers)
■Write data
Store 4-digit data per one device point. (Page 777 Read data, write data)
When specifying bit devices, set the head device No. in multiples of 8.
■When using WT
Message wait
Number of
device points Device Write data Device Write data
W T 0 0 3 D 0 5 0 0 1 2 3 4 Y 0 1 0 0 B C A 9
57H 54H 30H 30H 33H 44H 30H 35H 30H 30H 31H 32H 33H 34H 59H 30H 31H 30H 30H 42H 43H 41H 39H
C N 1 0 0 0 0 6 4
43H 4EH 31H 30H 30H 30H 30H 36H 34H
1 0 1 1 1 1 0 0 1 0 1 0 1 0 0 1
■When using QT
Message wait
Number of
device points Device Write data Device Write data
Q T 0 0 3 D 0 0 0 5 0 0 1 2 3 4 Y 0 0 0 1 0 0 B C A 9
51H 54H 30H 30H 33H 44H 30H 30H 30H 35H 30H 30H 31H 32H 33H 34H 59H 30H 30H 30H 31H 30H 30H 42H 43H 41H 39H
C N 0 0 1 0 0 0 0 6 4
43H 4EH 30H 30H 31H 30H 30H 30H 30H 36H 34H
1 0 1 1 1 1 0 0 1 0 1 0 1 0 0 1
Message format
The following shows the message format of the request data and response data of the command.
■Request data
■Response data
There is no response data for RR and RS command.
R R R S
52H 52H 52H 53H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
Communication example
Perform remote RUN or remote STOP of the PLC under the following conditions.
• Message wait: 0ms
(Request data)
■When using RR
Message wait
R R 0
52H 52H 30H
■When using RS
Message wait
R S 0
52H 53H 30H
Message format
The following shows the message format of the request data and response data of the command.
■Request data
P C Message wait
50H 43H
■Response data
Model name
The read contents can be interpreted as the model names of PLC according to the following.
PLC model (CPU module) Model code PLC model (CPU module) Model code
(hexadecimal) (hexadecimal)
FX1S F2H A2ACPU-S1 93H
FX0N 8EH A2CCPU 9AH
FX2(FX), FX2C 8DH A2USCPU 82H
FX1N, FX1NC 9EH A2CPU-S1, A2USCPU-S1 83H
FX2N, FX2NC 9DH A3CPU, A3NCPU A3H
FX3S F5H A3ACPU 94H
FX3G, FX3GC F4H A3HCPU, A3MCPU A4H
FX3U, FX3UC F3H A3UCPU 84H
FX5S, FX5UJ, FX5U, FX5UC F3H A4UCPU 85H
A0J2HCPU 98H A52GCPU 9AH
A1CPU, A1NCPU A1H A73CPU A3H
A1SCPU, A1SJCPU 98H A7LMS-F A3H
A2CPU(-S1), A2NCPU(-S1), A2SCPU A2H AJ72P25/R25 ABH
A2ACPU 92H AJ72LP25/BR15 8BH
P C
50H 43H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
P C 0
50H 43H 30H
■Setting method
The procedure for changing the model code is shown below.
2. Turn on SM8125.
The lower 8 bits of SD8126 are set in the response data.
Message format
The following shows the message format of the request data and response data of the command.
■Request data
■Response data
There is no response data for this command.
G W
47H 57H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Factor number
For the special relay corresponding to the following CH, in the case of 1 (31H), turn on the special relay, and in the case of 0
(30H), turn off the special relay.
CH Special relay corresponding to CH
1 SM8680
2 SM8690
3 SM8700
4 SM8710
Communication example
Turn on the special relay of the target station under the following conditions.
• Message wait: 0ms
(Request data)
Message wait
Factor number
G W 0 1
47H 57H 30H 31H
Message format
The following shows the message format of the request data and response data of the command.
■Request data 44
■Response data
Character Loopback
length data
T T
54H 54H
■Message wait
Specify the delayed time of the response transmission. (Page 771 Message wait)
■Character length
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Specify the character length within the following range:
• 1 Character length 254
■Loopback data
Store the loopback data for character length.
■Loopback data
The same data as request data is stored.
T T 0 0 5 A B C D E
54H 54H 30H 30H 35H 41H 42H 43H 44H 45H
(Response data)
Character length
Loopback data
0 5 A B C D E
30H 35H 41H 42H 43H 44H 45H
45 TROUBLESHOOTING PROCEDURE
46 TROUBLESHOOTING BY SYMPTOM
47 ERROR CODES
48 EVENT CODES
793
45 TROUBLESHOOTING PROCEDURE
This section contains an explanation of errors that may occur during communication between the FX5 CPU module or
Ethernet-equipped module and other devices, and troubleshooting for such errors.
For module-specific troubleshooting, refer to the manual of each module.
When an error occurs, saving the program or device status will be useful for clarifying the cause of the error.
For details on reading from a programmable controller, refer to the following manual.
GX Works3 Operating Manual
1. Check the LEDs on the CPU module. (Page 794 Checking with LEDs)
2. Check the LEDs on each intelligent function module. ( User's manual of each module)
4. Connect the engineering tool and start the system monitor. The module that generated the error can be checked.
(Page 796 Checking with Engineering Tool)
5. Select the module that generated the error and start the module diagnostics. The cause of the error and the action to
eliminate it can be checked. (Page 797 Module diagnostics)
6. If the cause cannot be determined by module diagnostics, check the history of operations and errors in the event history
of the engineering tool to determine the cause. (Page 798 Event history)
8. If the cause cannot be identified through steps 1 to 6, perform troubleshooting by symptom. (Page 805
TROUBLESHOOTING BY SYMPTOM)
When communication is being performed normally, the LEDs both flash brightly.
If the LEDs are not flashing, check the wiring and the communication settings or the master station or other local station
setting.
45 TROUBLESHOOTING PROCEDURE
794 45.1 Checking with LEDs
<CPU module LED>
LED name Check condition Cause/action
PWR Does not turn on when power Power source may not be correctly connected to the CPU module. Check the connection status.
of CPU module is turned on If there is nothing wrong with connection, the hardware may be faulty. For repair, contact your local
Mitsubishi Electric representative.
ERR Turns on when power of CPU In case of built-in Ethernet parameter setting error:
module is turned on • Check/correct built-in Ethernet parameter setting values using GX Works3.
In case of CPU module error (hardware error):
• For repair, contact your local Mitsubishi Electric representative.
Flashes when power of CPU Check the contents of the error by error code stored when error is detected by the following processing,
module is turned on or and eliminate the cause of the error.
flashes temporarily • Initial process
• Open process
• SLMP communication process
• Other processing (processing wherein error code is stored)
For the error codes, refer to Page 819 Error codes of the Ethernet communication.
SD/RD Does not turn on when data If [ERR] is lit:
is sent/received • Eliminate the cause of [ERR] being lit.
If cable connection is faulty:
• Check cable connection.
45
• Perform initial processing completion check and check if there is anything wrong with the Ethernet
line.
In case of own station IP address setting error:
• If there is nothing wrong with cable connection, check the setting values of own station IP address,
router setting and subnet mask setting by GX Works3.
If there is something wrong with transmission program of other device:
• Check the transmission program of other device.
45 TROUBLESHOOTING PROCEDURE
45.1 Checking with LEDs 795
45.2 Checking with Engineering Tool
Use the engineering tool to check the errors that have occurred and their history, and identify the cause(s) of the errors. This
method will yield more detailed information, the cause(s) of the errors, and the actions to eliminate them, compared with
checking with LEDs.
The engineering tool has the following functions to support troubleshooting.
Function Action
System monitor Function that displays the module configuration, detailed information of each module, and error status
Module diagnostics Function for diagnosing the target module (checking currently occurring errors and their detailed information)
Event history Function that displays event information such as errors that occurred in the CPU module, expansion board,
expansion adapter, intelligent function modules, and errors on the network
For details on the functions of each engineering tool, refer to the following manual.
GX Works3 Operating Manual
System monitor
System monitor is a function that displays the module configuration, detailed information of each module, and error status.
Module diagnostics can be started for modules where an error is occurring.
[Diagnostics] [System Monitor]
45 TROUBLESHOOTING PROCEDURE
796 45.2 Checking with Engineering Tool
Module diagnostics
Module diagnostics is a function for diagnosing the target module (checking currently occurring errors and their detailed
information).
It displays the error that occurred, its detailed information, the cause, and the action, so the information necessary for
troubleshooting can be checked. In addition, the location of the parameter or program error can be identified by selecting the
error and clicking the [Error Jump] button.
In the [Module Information List] tab, the current LED information or switch information of the corresponding module can be
checked.
[Diagnostics] [System Monitor] Double-click the corresponding module
45
In a multiple CPU system, if the I/O assignment setting of the system parameters is different from the actual
configuration of the installed module, the correct information may not be displayed in the module information
list.
45 TROUBLESHOOTING PROCEDURE
45.2 Checking with Engineering Tool 797
Event history
Event history is a function that displays event information such as errors that occurred in each module, operations that were
executed, and errors on the network.
Information collected before the power was turned off or reset can also be displayed. This allows the user to identify the cause
of an error based on past operations and error occurrence trends.
The displayed information can also be saved in CSV file format.
[Diagnostics] [System Monitor] [Event History] button
The event history function is used for purposes such as the following.
• To check the error occurrence status and investigate the cause of faults that occurred in the system or
device
• To check when and where the program or parameters of the programmable controller were changed
• To check whether there is unauthorized access by a third party
45 TROUBLESHOOTING PROCEDURE
798 45.2 Checking with Engineering Tool
Ethernet diagnostics
The communication status between an Ethernet-equipped module and external device can be checked by using Ethernet
diagnostics.
Select the Ethernet-equipped module to be diagnosed in "Target Module Specification".
• Ethernet diagnostics item
Item Description
Status of Each Connection Displays information concerning status of each connection.
Status of Each Protocol The total of the send/receive of the packet etc. for each protocol is displayed.
Connection Status Monitors connection status.
45
45 TROUBLESHOOTING PROCEDURE
45.2 Checking with Engineering Tool 799
Status of Each Connection
The status of each connection of the Ethernet-equipped module selected.
The following table lists the displayed items in "Status of Each Connection" tab.
Item Description
Connection No./Function Displays the connection number and functions (MELSOFT direct connection).
Host Station Port No. Displays the own station port number used.
Communication Destination Displays the communication method.
Communication Method
Communication Destination Displays the IP address of the sensor/device to be connected, which is set in the parameter settings.
IP Address
Communication Destination Displays the port number of the sensor/device to be connected, which is set in the parameter settings.
Port No.
Latest Error Code Displays the error code that indicates the definition of latest error occurred.
Protocol Displays the protocol (TCP/IP or UDP/IP).
Open System Displays the open method (Active, Unpassive, or Fullpassive) when the protocol of the connection is TCP/IP.
TCP Status Displays the status (open status) of connection with the sensor/device when the protocol of the connection status is TCP/IP.
Remote Password Status Displays the remote password setting status.*1
Consecutive failed unlock Displays the total number of continuous failure of remote password unlock.
attempts
45 TROUBLESHOOTING PROCEDURE
800 45.2 Checking with Engineering Tool
Status of Each Protocol
The total number of packets sent/received by each protocol of the selected Ethernet-equipped module can be checked.
45
The following table lists the displayed items in "Status of Each Protocol" tab.
Item Description Display range
Total Number of Receives Displays the total number of received packets. 0 to 4294967295
Total Number of Sends Displays the total number of sent packets. 0 to 4294967295
Total Number of Sum Check Error Not supported.
Cancels
Total Number of Echo Request Displays the total number of received ICMP echo request packets. 0 to 4294967295
Receives
Total Number of Echo Reply Sends Displays the total number of sent ICMP echo reply packets. 0 to 4294967295
Total Number of Echo Request Sends Displays the total number of sent ICMP echo request packets. 0 to 4294967295
Total Number of Echo Reply Receives Displays the total number of received ICMP echo reply packets. 0 to 4294967295
45 TROUBLESHOOTING PROCEDURE
45.2 Checking with Engineering Tool 801
Connection Status
The communication status of the Ethernet-equipped module.
The following table lists the displayed items in "Connection Status" tab.
Item Description Display range
Communication Full Duplex/Half Duplex Displays the communication mode of line.
Status
Connection Status Displays the cable connection status.
Communication Rate Displays the communication speed.
Number of Not supported.
Disconnections
Broadcast Maximum Size of Not supported.
Detection
Amount of Data per Unit Not supported.
Time (Latest)
Amount of Data per Unit Not supported.
Time (Maximum)
45 TROUBLESHOOTING PROCEDURE
802 45.2 Checking with Engineering Tool
PING Test
The PING test checks existence of an Ethernet device on the same Ethernet network. Only CPU module is supported.
This test is performed on the network of stations connected to the GX Works3 by sending packets for check. If a response
returns, the communication can be performed.
"Ethernet Diagnostics" screen [PING Test] button
45
• Procedure
Set the required items in "Input Item" and click the [Execute] button to execute the PING test. The test results are displayed in
the "Result" box.
• Action for abnormal end
If the test fails, check the following and perform the test again.
• Connection to the Ethernet network
• Parameter settings written in the CPU module
• Operating status of the CPU module (whether or not an error has occurred)
• IP addresses set in GX Works3 and the PING test target station
• Whether the external device has been reset after the CPU module was replaced
If a line error, etc., occurs when connecting with devices of multiple manufacturers, determine the location of
the error by using a line analyzer, etc.
45 TROUBLESHOOTING PROCEDURE
45.2 Checking with Engineering Tool 803
CC-Link IE Field Network Basic diagnostics
Perform troubleshooting by checking the network status and error details with GX Works3.
For details, refer to the following manual.
CC-Link IE Field Network Basic Reference Manual
45 TROUBLESHOOTING PROCEDURE
804 45.2 Checking with Engineering Tool
46 TROUBLESHOOTING BY SYMPTOM
The following shows troubleshooting by symptom in flowchart format. For details on corrective action, refer to Page 810
IP Address Duplication Detection onward.
NO
NO
YES
If the data code for the send node is
different from that of the receive node, the
command cannot be decoded properly
Is the data code (binary or ASCII) YES and the data cannot be sent or received.
setting for the communication
Change the setting from GX Works3:
data wrong?
[Module Parameter] - [Own Node Settings]
- [Communication Data Code] *1
NO
NO
Is initial process completed Execute initial process.
normally?
YES
*1 When the communication data code setting for the Ethernet-equipped module is different from the data code setting for the external
device, an error code not listed in the error code list may be returned to the external device. In addition, if data with a different data code
is received, the command cannot be decoded properly. The Ethernet-equipped module will return an error response according to the
communication data code setting.
*2 Refer to Page 815 ERROR CODES.
46 TROUBLESHOOTING BY SYMPTOM
46.1 Troubleshooting Flowchart 805
• If trouble occurs while using Ethernet, check the error status with the Ethernet diagnostics function of GX
Works3. For error contents, refer to Page 819 Error codes of the Ethernet communication.
• For information concerning when the [ERR] LED or [ERROR] LED is lit, refer to Page 794 Checking
with LEDs.
• If Ethernet-equipped module is replaced due to error occurrence, reboot all target devices with which
communication was being done, and restart data communication. (If target device retains Ethernet address
of communication target, continuation of communication may not be possible in some cases because
Ethernet address changes when the Ethernet-equipped module is replaced (includes unit-specific
addresses such as MAC address).)
• If target device (such as a personal computer) is replaced, turn CPU module's power OFF ON and/or
perform reset.
• If message transmitted from target device cannot be received by Ethernet (error log is long) frequently,
there may be a large load on the Ethernet line due to data transmitted among the various devices
connected. In order to reduce load on the Ethernet line, you may have to take measures such as dividing
the network or reduce the number of data transmissions. After conferring with the network administrator,
reduce the load on the Ethernet line.
• When the ground terminal of the Ethernet-equipped module cannot be grounded, the communication line
may be closed due to the effects of noise, making it impossible to communicate with other devices.
46 TROUBLESHOOTING BY SYMPTOM
806 46.1 Troubleshooting Flowchart
Errors during SLMP communication
Communication error
YES
YES 46
Is response sent NO
to the device that sent
the command?
YES
Is the
communication protocol NO Match the communication protocol
(TCP/UDP) with the target (TCP/UDP) with the target device.
device matching?
YES
YES
YES
(1)
46 TROUBLESHOOTING BY SYMPTOM
46.1 Troubleshooting Flowchart 807
(1)
YES
Is the specification
of the command
format such as command type, NO
Modify the command format.
device specification, address
specification correct?
YES
Is there an open error, YES Check the error code, cause of error
initial error in each of each channel and rectify.
channel?
NO
It may be a hardware error of CPU
module (built-in Ethernet). Please
compile detailed contents of the
problem, and, consult the nearest
branch office or the agency.
YES
YES
YES
Check the error code*1 and fix the
cause of error.
46 TROUBLESHOOTING BY SYMPTOM
808 46.1 Troubleshooting Flowchart
Errors during file transfer function (FTP client)
For check items other than those shown below, refer to Page 202 Precautions.
Communication error
YES
Are IP address
settings for the FTP NO Log in the system with the IP address set at
server side correct? the FTP server side.
YES
Are the log-in name and NO Log in the system with the log-in name and
password for the FTP
server side correct?
password set at the FTP server side.
YES 46
Is the connection Match it with the true connection method for the
NO
method for the FTP FTP server side (PORT/PASV). If any proxy
server side correct? server exists, inquire the network administrator.
YES
Is the port number NO Match it with the true port number for the FTP
for the FTP server server side.
side correct?
YES
Check instructions for the file
transfer function*1.
YES
Check the error code*2 and fix the
cause of error.
*1 Refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
*2 Refer to Page 815 ERROR CODES.
46 TROUBLESHOOTING BY SYMPTOM
46.1 Troubleshooting Flowchart 809
46.2 IP Address Duplication Detection
When turning the power from off to on, resetting, or connecting to the network, the Ethernet-equipped module check whether
there is any device with duplicated IP address on the same network. When the IP address duplication is detected, an error
occurs and appears in the event history. Also, with the following devices, it is possible to check whether there is an IP address
duplication, and the MAC address of the device with duplicated IP address can be checked.
Device No. Name
CPU module Ethernet module
SD10251 Un\G201 Same IP address state storage area
SD10252 to SD10254 Un\G202 to Un\G204 MAC address of the already connected station
SD10255 to SD10257 Un\G205 to Un\G207 MAC Address of the station connected later
After the IP address duplication detection, the contents of the IP address duplication (error information, device, event history)
are held until the power is turned off to on, reset, or the error is cleared.
If the firmware version of the FX5U/FX5UC CPU module is lower than "1.061", when the IP address
duplication is detected, the CPU module will stop the processing and the network will be down. Also, the
above special devices are not supported.
1. Perform module diagnostics, and check that IP address duplication error does not occur.
2. When the module diagnostics cannot be performed by an Ethernet communication failure, perform direct connection with
the other network, and check that IP address duplication error does not occur in the module diagnostics or the event
history.
3. When the IP address duplication error occurred, check the device and the device with duplicated IP address.
4. To return to the network, change the IP address of the Ethernet-equipped module to an IP address which is not
duplicated in the network, turn the power off to on, or reset, and connect the CPU module to the original network.
46 TROUBLESHOOTING BY SYMPTOM
810 46.2 IP Address Duplication Detection
46.3 When the Simple CPU Communication Function Is
Used
Communications cannot be performed with the communication destination.
When communications with the external device cannot be performed using the simple CPU communication function, check
the following items and take action.
Check item Action
Does any error occur in the simple CPU communication diagnostics or simple Eliminate the error cause. When communications can be performed by
CPU communication error code in the special device? increasing the communication retry count and communication time-out period,
review the communication retry count and communication time-out period, or
check the line status of Ethernet communications with the external device,
such as a cable, hub, and router, to check if the line is busy.
Is the communication status of the simple CPU communication diagnostics or Check the cable between the CPU module and hub and if the hub is operating
the simple CPU communication status of the special device "preparing"? normally.
Is the communication status of the simple CPU communication diagnostics or Check the own station port number of the simple CPU communication setting
the simple CPU communication status of the special device "Communications with "Communications impossible" to check if the same port number is already
impossible"? used for other functions.
Have the parameters been written? • Check the error code shown in the simple CPU communication status, and 46
take action.
Have the parameters been set correctly?
• Rewrite the parameters, and perform communication.
If communications cannot be performed despite the check for the above items, the hardware failure may have been occurred.
Please consult your local Mitsubishi representative.
46 TROUBLESHOOTING BY SYMPTOM
46.3 When the Simple CPU Communication Function Is Used 811
Communications with unstable communication destination.
When communications with the communication destination using the simple CPU communication is unstable, check the
following items and take action.
Check item Action
Does any error occur in the simple CPU communication diagnostics or simple Eliminate the error cause.
CPU communication error code in the special device?
Is the retry of communications performed? Check the line status of Ethernet communications with the external device,
such as a cable, hub, and router, to check if the line is busy.
Are not parameters rewritten during simple CPU communication? • Check the error code shown in the simple CPU communication status, and
take action.
• Turn off and on or reset the CPU module power.
If communications cannot be performed despite the check for the above items, the hardware failure may have been occurred.
Please consult your local Mitsubishi representative.
46 TROUBLESHOOTING BY SYMPTOM
812 46.3 When the Simple CPU Communication Function Is Used
Access to the CPU module cannot be performed
If access to the CPU module from the target device cannot be performed during the simple CPU communication, check the
following items and take action.
Check item Action
Is not the communication time check of the target device short? Set the communication time check of the target device more than 30 seconds.
Are the execution interval of the simple CPU communication, communication Set the execution interval of CPU communication and communication timeout
timeout time, and monitoring time short? time with sufficient execution interval. Set the monitoring time more than 30
seconds.
Access using the file transfer function (FTP server) cannot be performed
When the CPU module cannot be accessed from the external device (FTP client) using the file transfer function (FTP server),
check the following items and take action.
Check item Action
Is the file transfer function (FTP server) for the CPU module enabled? Set "FTP Server" under "FTP Server Settings" of "Application Settings" to
"Use". (Page 178 )
Are the login name and password correct? Check the login name and password set in the parameters, and log in again.
(Page 178 )
Is the IP address entered at login correct? Check the IP address of the CPU module set in the parameters, and log in
again. (Page 39 Setting module parameters)
Is executed command used properly? Check the instructions of the command and use the command properly.
(Page 178 )
If the troubleshooting is not successful even though the above measures were taken, troubleshoot individual CPU modules
and check their hardware for any error.
Access using the file transfer function (FTP client) cannot be performed
When the CPU module cannot access to the external device (FTP server) during execution of the file transfer function (FTP
client), check the following items and take action.
Check item Action
Is not a value other than 0000H stored in (s1) + 1 (Completion status) of the Take action for the error code stored in (s1)+1 (Completion status), and
SP.FTPPUT instruction or SP.FTPGET instruction? execute the instruction again. (Page 818 Error codes of completion
status)
46 TROUBLESHOOTING BY SYMPTOM
46.4 When Using the File Transfer Function 813
46.5 When Using the Inverter Communication Function
1. When the operation mode of an inverter is not changed to computer link operation mode
• Verify that the inverter is set to the external operation mode.
• Verify that no signal is being input to the external terminals STF and STR.
• Verify that the correct change operation mode program is being executed.
2. When an inverter cannot be started even in computer link operation mode
• Verify that the program for starting the inverter is executed correctly.
• Verify that the operation command rights and speed command rights are set correctly.
• Verify that the allowable communication time interval is set correctly.
3. When an inverter is stopped by an alarm during operation due to defective communication
• Verify that a communication cable is connected correctly between the PLC and the inverter. (Check for poor contact or wire
breakage.)
• Verify that a sequence program is created so that communication is executed with each inverter within a constant cycle. Set
the communication check time interval to a large value, and check the communication status.
• Verify that the allowable communication time interval is set correctly.
• Verify that termination resistors are set correctly.
46 TROUBLESHOOTING BY SYMPTOM
814 46.5 When Using the Inverter Communication Function
47 ERROR CODES
47.1 Ethernet Communication
For the error codes (stored in SD0/SD8067) common among CPU modules, refer to the MELSEC iQ-F FX5 User's
Manual (Application).
CPU module
Error codes are stored in SD8498 (IP address storage area write error code) or SD8499 (IP address storage area clear error
code).
Error code Error details and causes Action
(hexadecimal)
1920H Values such as the IP address setting (SD8492 to SD8497) Recheck the values such as the IP address setting (SD8492 to SD8497).
are outside the set range.
1921H Write request and clear request (SM8492 and SM8495) Verify that write request and clear request (SM8492 and SM8495) do not
turned from OFF to ON simultaneously. turn from OFF to ON simultaneously.
47
Ethernet module
Each error can be checked with the following.
• 1920H: Un\G61 (IP address storage area write error code)
• 1921H: Un\G62 (IP address storage area clear error code)
• 1810H, 1DC4H: Un\G29 (Latest error code), [Error information] tab in the "Module Diagnostics" ( Page 797 Module
diagnostics)
Error code Error details and causes Action
(hexadecimal)
1810H IP address change fails. Execute the IP address change function again.
1920H IP address setting or other (Un\G50 to Un\G55) value Correct the IP address setting or other (Un\G50 to Un\G55) value.
exceeds the setting range.
1921H Write request and Clear request (Un\G56 and Un\G58) Check if Write request and Clear request (Un\G56 and Un\G58) turned from
turned from OFF to ON simultaneously. OFF to ON simultaneously.
1DC4H IP address change fails. • Execute the IP address change function again.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
47 ERROR CODES
47.1 Ethernet Communication 815
Error codes of the simple CPU communication function
The description and corrective action for error codes generated by the simple CPU communication function are explained.
If the communication target detects any error in other company's PLC, MODBUS/TCP-compatible device or
MELSEC-FX3 (Ethernet Block/Adapter), CFB4H will be stored.
47 ERROR CODES
816 47.1 Ethernet Communication
■Ethernet module
Error code Error details and causes Action
(hexadecimal)
CFB0H Transmission has failed due to retransmission timeout. • Check the operation of the external device.
• Check the conditions of the cables, hubs and routers on the lines to the
external devices.
• Reconsider the communication start wait time.
• Reconsider and correct the IP address and Ethernet address of the
external device.
• Confirm that the external devices have the ARP function, and
communicate with an external device that has the ARP function.
• When the communication destination is a MODBUS/TCP connection
device and the communication pattern is Write, do not specify Input or
Input Register for the transfer destination device.
CFB1H The external device cannot be connected or has been • Check whether the connection cable is not disconnected.
disconnected. • Check the conditions of the cables, hubs and routers on the lines to the
external devices.
• Reconsider and correct the IP address and Ethernet address of the
external device.
• Confirm that the external devices have the ARP function, and
communicate with an external device that has the ARP function.
CFB2H The same specified own station port number is already Correct the specified port number so that it is not duplicate.
used.
CFB3H A request to the CPU module has failed. • Reconsider the monitor time of the CPU response monitor timer.
• Reconsider the device/label access service processing setting.
CFB4H An abnormal response was received from the external
device.
Check the abnormal response code in the buffer memory.
47
CFB5H The frame received from the external device is abnormal. • Check the operation of the external device.
• Check the conditions of the cables, hubs and routers on the lines to the
external devices.
CFBFH Simple CPU communication cannot be performed. • Take measures against noise.
• If the same error is displayed after retry, please consult your local
Mitsubishi representative.
If the communication destination detects an error in a MODBUS/TCP connection device, CFB4H will be
stored.
47 ERROR CODES
47.1 Ethernet Communication 817
Error codes of completion status
Described here are descriptions and actions for error codes of completion status for those occurred in the file transfer function
(the FTP client). Any of the error codes of completion status will be stored in control data (s1)+1 of the file transfer function
instruction (the SP.FTPPUT instruction, SP.FTPGET instruction).
Error code Error details and causes Action
(hexadecimal)
41C5H The specified file does not exist. Execute again after checking the file.
41C7H The specified file or drive does not exist. Re-execute after checking the file or drive (memory).
41CCH The specified file does not exist. Or, the specified Execute again after checking the name of the file and subdirectory.
subdirectory does not exist.
41CDH An access to the file is prohibited in the system. Execute again after checking the file and subdirectory.
41CEH The file cannot be written because the specified file is read- Execute again after checking the attribute of the specified file.
only.
41CFH The capacity of the specified drive (memory) is exceeded. Re-execute after checking the drive (memory) capacity.
41D8H The specified file is being accessed. Execute again after a while.
41DFH • The FTPPUT instruction (when "Delete" had been • Turn OFF the write protect switch of the SD memory card.
specified for the transferred file deletion setting) was • Specify "Not delete" for the transferred file deletion setting.
executed in the state where the write protect switch of the
SD memory card was ON. (The file is transferred, but the
file in the SD memory card cannot be deleted.)
• The FTPGET instruction was executed in the state where
the write protect switch of the SD memory card was ON,
and file transfer was failed.
41E4H Access to the SD memory card has failed. • Execute the operation again after checking that the SD memory card has
been inserted.
• Execute the operation again after replacing the SD memory card.
• Back up data, and then initialize the memory.
41EBH The specified file name is incorrect. • Re-execute after checking the file name.
• Reconsider whether the total length of the transfer destination folder path
and the temporary file name does not exceed 255 characters when the
FTPGET instruction is executed.
41FEH • The SD memory card has not been inserted. • Insert the SD memory card or insert it again.
• The SD memory card is disabled. • Slide down the switch for stopping SD memory card usage.
• The SD memory card turned to disable status by SM606 • Cancel the SD memory card forced disable instruction.
(SD memory card forcibly disable command).
4C40H • When files are specified by using wild card characters for • Check and correct the wild card specification.
the file transfer function instruction, the number of files • Check if the specified folder path exists.
matched exceeds the upper limit of the transferable
number of files.
• When files are specified by using wild card characters for
the file transfer function instruction, no files are matched.
4C43H The number of processing completed files for sending FTP Execute the function again.
client file is mismatched with the total number of processing
files.
4C44H The file transfer function (the FTP client) is performed while Perform it again after having completed the CPU module's backup/restore
the CPU module's backup/restore function is being function.
performed.
C035H The existence of the external device could not be confirmed • Check the operation of the external device.
within the response monitoring timer value. • Check whether the connection cable is not disconnected.
C616H Control port connection to the FTP server failed. • Review the IP address setting in the built-in Ethernet port setting.
• Review the FTP server settings.
• Check the connection status with the FTP server.
• Disconnect the user session on the FTP server.
• Re-execute after some time since there is a possibility that
communication preparation is in progress.
C618H Login to FTP server failed. • Review the FTP server settings (login user name, login password).
• Check the settings (login user name, login password) of the FTP server
software.*1
• Check the communication history of the FTP server software.*1
47 ERROR CODES
818 47.1 Ethernet Communication
Error code Error details and causes Action
(hexadecimal)
C619H FTP command execution to the FTP server failed. • Review the FTP server settings (folder path, connection method).
• Check whether the FTP server or the specified file has access authority
(write authority, read authority).
• Check whether the specified folder path exists on the FTP server.
• Check whether the specified file exists on the FTP server.
• Review the settings of the FTP server software.*1
• Check the communication history of the FTP server software.*1
• Check if the file is being accessed on the FTP server.
C620H Connection of the data transfer port for the FTP server • Check the connection status with the FTP server.
failed. • Review the FTP server settings (connection method).
• If a firewall or proxy server exists in the connection path, check the
settings with the network administrator.
C621H Disconnection of the data transfer port for the FTP server • Check the connection status with the FTP server.
failed. • Review the FTP server settings (connection method).
• If a firewall or proxy server exists in the connection path, check the
settings with the network administrator.
C622H Error occurred during file transfer. • Delete unnecessary files from the FTP server to secure free space.
• Check the connection status with the FTP server.
• The specified file may be in use by another process, so re-execute after
some time.
• Retry after some time because the line may be congested.
*1 For the setting and operation method of the FTP server software, check the manual of the FTP server.
CPU module
Error codes are stored in built-in Ethernet error code SD10130 (connection 1) to SD10137 (connection 8). However, in case of
multiple errors, the error code of the last error that occurred is stored in SD10130 (connection 1) to SD10137 (connection 8).
Error code Error details and causes Action
(hexadecimal)
1120H Clock setting has failed when the system is powered on or • Check if the time settings are correctly set in parameter.
the CPU module is reset. • Check if the specified SNTP server is operating normally and there is no
failure on the network accessing to the SNTP server computer.
1134H The external device does not send an ACK response in the • Check the operation of the external device.
TCP/IP communication. • Since there may be congestion of packets on the line, send data after a
certain period of time.
• Check whether the connection cable is not disconnected.
2160H Overlapping IP addresses were detected. Check and correct the IP addresses.
2250H The protocol setting data stored in the CPU module is not Write the protocol setting data for available modules to the CPU module.
(Stored in SD0) for available modules.
C012H Open processing with the external device failed. (For TCP/ Correct the port numbers of the CPU module and the external device.
IP)
C013H Open processing with the external device failed. (For UDP/ Correct the port numbers of the CPU module and the external device.
IP)
C015H • The specified IP address of the external device for the Execute the dedicated instruction again after correcting the specified IP
open processing is incorrect. address of the external device.
• The specified IP address of the external device of the
dedicated instruction is incorrect.
C020H The send/receive data length exceeds the allowable range. • Correct the data length to be sent.
• When the amount of data to be sent exceeds the limit, divide the data into
smaller chunks to send it.
C024H Communication using communication protocol is executed • Check that there is no error in the connection number specification of the
in a connection whose connection method is other than dedicated instruction.
communication protocol. • Correct the communication method of the connection with the external
device.
C025H • Description of control data is not correct. • Correct the descriptions of the control data.
• Open instruction was executed through open settings • Set the open settings parameters. Or, execute the OPEN instruction
parameter even though parameters are not set. through control data.
47 ERROR CODES
47.1 Ethernet Communication 819
Error code Error details and causes Action
(hexadecimal)
C027H Socket communication send message has failed. • Check the operation of the external device or switching hub.
• Since there may be congestion of packets on the line, send data after a
certain period of time.
• Check whether the connection cable is not disconnected.
• Check that there is no connection failure with the switching hub.
• Execute the communication status test, and if the test was completed
with an error, take the corrective action.
• Execute the module communication test, and check that there is no
failure in the module.
C029H • Description of control data is not correct. • Correct the descriptions of the control data.
• Open instruction was executed through open settings • Set the open settings parameters. Or, execute the OPEN instruction
parameter even though parameters are not set. through control data.
C035H The existence of the external device could not be confirmed • Check the operation of the external device.
within the response monitoring timer value. • Check whether the connection cable is not disconnected.
C0B2H There is no sufficient space in the receive buffer or the send • Increase the request interval (execution interval) and execute the
buffer of the relay station or external station for the operation.
MELSOFT connection, or SLMP. (Send/receive buffer full • Do not access through one station using the MELSOFT connection, or
error) SLMP.
• Wait for a response to the previous request before sending the next
request.
C0B6H The channel specified by the dedicated instruction is out of Correct the channel to a value within the allowable range of each dedicated
the range. instruction.
C0DEH Socket communication receive message has failed. • Check the operation of the external device or switching hub.
• Since there may be congestion of packets on the line, send data after a
certain period of time.
• Check whether the connection cable is not disconnected.
• Check that there is no connection failure with the switching hub.
• Execute the communication status test, and if the test was completed
with an error, take the corrective action.
• Execute the module communication test, and check that there is no
failure in the module.
C1A2H A response to the request could not be received. Check and correct the response waiting time.
C1ACH The specified number of resends is incorrect. Correct the number of resends.
C1ADH The specified data length is incorrect. Correct the specified data length.
C1AFH The specified port number is incorrect. Correct the specified port number.
C1B0H The open processing of the specified connection has been • Do not perform the open processing to an already opened connection.
already completed. • When communications with the external device cannot be performed,
perform the close processing before the open processing.
C1B1H The open processing of the specified connection has not After completion of the open processing, perform the communication.
been completed.
C1B3H Another send or receive instruction is being executed in the • Change the channel number.
specified channel. • Execute again after the send or receive instruction is completed.
C1B4H The specified arrival monitoring time is incorrect. Set the arrival monitoring time to a value within the allowable range.
C1BAH The dedicated instruction was executed with the Execute the dedicated instruction after the initial processing is completed.
initialization not completed.
C1C6H The execution or error completion type of the dedicated • Execute again after correcting the execution/abnormal end type in the
instruction is incorrect. control data.
• If the problem cannot be resolved with the above actions, the possible
cause is a hardware failure of the module. Please consult your local
Mitsubishi representative.
C1CCH • A response of the data length that exceeds the allowable • Execute again after correcting the request data to be within the range.
range was received by the SLMPSND instruction. • If the error occurs again even after taking the above, please consult your
• The specified request data is incorrect. local Mitsubishi representative.
C1CDH Message send of the SLMPSND instruction has failed. • Check the operation of the external device or switching hub.
• Since there may be congestion of packets on the line, send data after a
certain period of time.
• Check whether the connection cable is not disconnected.
• Check that there is no connection failure with the switching hub.
• Execute the communication status test, and if the test was completed
with an error, take the corrective action.
• Execute the module communication test, and check that there is no
failure in the module.
47 ERROR CODES
820 47.1 Ethernet Communication
Error code Error details and causes Action
(hexadecimal)
C1D0H The requested module I/O No. of the dedicated instruction is • Execute again after correcting the requested module I/O No. at the
incorrect. request source of the dedicated instruction.
• If the error occurs again even after taking the above, please consult your
local Mitsubishi representative.
C1D3H A dedicated instruction not supported by the communication • Check that the dedicated instruction can be executed by the specified
method of the connection was executed. communication method. Correct the program if the instruction cannot be
executed.
• Check that there is no error in the connection specification of the
dedicated instruction.
C400H The SP.ECPRTCL instruction was executed when • Execute the SP.ECPRTCL instruction after "Predefined protocol ready
"Predefined protocol ready (SD10692)" was "0". (SD10692)" has become "1".
• Execute the SP.ECPRTCL instruction after rewriting the protocol setting
data to the CPU module.
• If the error occurs again even after rewriting, replace the CPU module.
C401H • The control data of the SP.ECPRTCL instruction specified • Check whether the specified protocol number is correct.
a protocol number not registered in the CPU module. • Check the presence/absence of protocol registration (SD10722 to
• The SP.ECPRTCL instruction was executed while the SD10725), and then check whether the specified protocol number is
protocol setting data was not written. registered.
• Write the protocol setting data, and then execute the SP.ECPRTCL
instruction.
C404H The cancel request was received while the protocol was Check the canceled protocol in the control data of the SP.ECPRTCL
executed, and the SP.ECPRTCL instruction was finished instruction (execution count result) and eliminate the cause of the
abnormally. cancellation.
C405H The protocol number set value is out of range in the control Correct the protocol number set value.
data of the SP.ECPRTCL instruction.
47
C410H The receive waiting time timed out. • Check if the cable is disconnected.
• Correct the specified connection number of the external device
connection configuration setting, and execute the protocol again.
• Check that there is no error in the external device.
• Check that the sending from the external device is not interrupted.
• Check that there is no data lost due to a receive error.
• Check that there is no error in the data (packet) sent by the external
device.
C411H The received data is larger than 2046 bytes. • Check the data sent from the external device.
• When sending data larger than 2046 bytes from the external device,
divide the data into several portions and execute data sending several
times.
C417H The data length or data quantity of the received data is out • Check the maximum data length that can be set to the data length
of range. storage area, and specify a value that is equal to or smaller than the
maximum data length.
• Check the maximum allowable data quantity, and specify the maximum
quantity or less in the data quantity storage area.
C431H The connection was closed during the SP.ECPRTCL • Check the operation of the external device.
instruction execution. • Check the connection open status with the external device.
• Open the connection with the external device again and execute the
instruction.
C614H The response monitoring timer is timed out. Since access to the file may take some time, check the setting value of
"Response monitoring timer" in "FTP Server Settings" under "Application
Settings".
CEE0H The devices supporting iQSS which were detected by the Execute the other function after the automatic detection of connected
other peripheral device, or other iQSS functions were devices is completed.
executed while the automatic detection of connected
devices is in process.
CEE1H Incorrect frame is received. • Check the operating status and connection status of the target device.
• Check the connection of an Ethernet cable and a hub.
• Check the line status of Ethernet.
• Reset the CPU module and target device, and retry the operation.
If the above actions do not solve the problem, contact the manufacturer of
the target device.
CEE2H Incorrect frame is received. • Check the operating status and connection status of the target device.
• Check the connection of an Ethernet cable and a hub.
• Check the line status of Ethernet.
• Reset the CPU module and target device, and retry the operation.
If the above actions do not solve the problem, contact the manufacturer of
the target device.
47 ERROR CODES
47.1 Ethernet Communication 821
Error code Error details and causes Action
(hexadecimal)
CF10H Incorrect frame is received. • Check the operating status and connection status of the target device.
• Check the connection of an Ethernet cable and a hub.
• Check the line status of Ethernet.
• Reset the CPU module and target device, and retry the operation.
If the above actions do not solve the problem, contact the manufacturer of
the target device.
CF20H • The setting value of the communication setting is out of Correct the setting details, and retry the operation.
range.
• The items of communication setting which cannot be set
on the target device are set.
• The required setting items have not been set to the target
device.
CF30H The parameter which is not supported by the target device Check the version of the target device.
was specified.
CF31H Incorrect frame is received. • Check the operating status and connection status of the target device.
• Check the connection of an Ethernet cable and a hub.
• Check the line status of Ethernet.
• Reset the CPU module and target device, and retry the operation.
If the above actions do not solve the problem, contact the manufacturer of
the target device.
CF70H An error occurred on the Ethernet communication path. • Check the operation of the target device.
• Check whether the connection cable is not disconnected.
CF71H A timeout error has occurred. • Check the operation of the target device. Since there may be congestion
of packets on the line, perform the operation after a while.
• Correct the setting details of when the iQSS function is executed, and
retry the operation.
• Check the connection of an Ethernet cable and a hub.
CFB2H The same specified own station port number is already Correct the specified port number so that it is not duplicate.
used.
Ethernet module
The Ethernet communication error codes can be checked in "Status of Each Connection" on the "Ethernet Diagnostics"
screen of Ethernet module. ( Page 800 Status of Each Connection) The error codes will be stored in 'Error code'
(Un\G108 to Un\G139).
Error code Error details and causes Action
(hexadecimal)
C012H • The port number already used in the open completion Check and correct the port number of the Ethernet module and the target
connection of TCP/IP is set. device.
• The external device port No. set in the external device
information is duplicated.
C013H The port number used in the open completion connection is Check and correct the port number of the Ethernet module.
set during the open processing of UDP/IP.
C017H The connection was not established by the open processing • Check the operation of the target device.
of the TCP connection. • Check the open processing of the target device.
• Correct the open setting of the communication parameter.
• Check the port number of the Ethernet module, the IP address/port
number of the target device, and the open method.
• Check whether the connection cable is not disconnected.
C020H The data length exceeds an allowable range. • Correct the data length.
• If the amount of data to send exceeds the prescribed amount, divide and
send the data.
C027H Socket communication send message has failed. • Check the operation of the external device or switching hub.
• Since there may be congestion of packets on the line, send data after a
certain period of time.
• Check whether the connection cable is not disconnected.
• Check that there is no connection failure with the switching hub.
• Execute the communication status test, and if the test was completed
with an error, take the corrective action.
• Execute the module communication test, and check that there is no
failure in the module.
• Check the IP address specified as the target.
C029H Description of control data is not correct. Correct the descriptions of the control data.
47 ERROR CODES
822 47.1 Ethernet Communication
Error code Error details and causes Action
(hexadecimal)
C035H The existence of the external device could not be confirmed • Check the operation of the external device.
within the response monitoring timer value. • Reexamine and change the set values for existence confirmation.
• Check whether the connection cable is not disconnected.
C04CH The data cannot be sent since the internal buffer such as IP Send the same data again, and check the receiving of the response.
header buffer has no space.
C050H When the communication data code is set to "ASCII", ASCII • For communication, set to "Binary" in the communication data code and
code data which cannot be converted to binary is received. restart the CPU module.
• Correct the send data from the target device and send it.
C051H Maximum number of bit devices for which data can be read/ Correct number of bit devices that can be read or written all at once, and
written all at once is outside the allowable range. send to Ethernet module again.
C052H Maximum number of word devices for which data can be Correct number of word devices that can read or write all at once, and send
read/written all at once is outside the allowable range. to Ethernet module again.
C053H Maximum number of bit devices for which data can be Correct number of bit devices that can be random read or written all at
random read/written all at once is outside the allowable once, and send to Ethernet module again.
range.
C054H Maximum number of word devices for which data can be Correct number of word devices that can be random read or written all at
random read/written all at once is outside the allowable once, and send to Ethernet module again.
range.
C056H Read or write request exceeds maximum address. Correct starting address or number of read and write points, and send to
Ethernet module again. (Be careful not to exceed the maximum address.)
C057H The request data length in the SLMP message does not After reviewing and correcting the content of text or length of request data in
match the number of data in the character section (part of the header, send to Ethernet module again.
the text).
C058H Request data length after ASCII-to-binary conversion does After reviewing and correcting the content of text or length of request data in 47
not match the number of data in the character section (part the header, send to Ethernet module again.
of text).
C059H • Error in command or subcommand specification. • Reconsider request contents.
• There is a command or subcommand that cannot be used • Send command or subcommand that can be used by the Ethernet
by the Ethernet module. module.
C05BH Ethernet module cannot read or write data from/to specified Reconsider device to read or write.
device.
C05CH Error in request contents. (Reading or writing by bit unit for Correct request content, and send to Ethernet module again.
word device, etc.) (Subcommand correction, etc.)
C05EH The communication time between the Ethernet module and • Increase the monitor timer setting.
PLC CPU exceeds the Ethernet monitor timer setting. • Check the connection between the CPU and Ethernet module.
C05FH There is a request that cannot be executed for the target • Correct network No., request station No., request destination module I/O
CPU module. No., or request destination module station No.
• Correct contents of write request and/or read request.
C060H Error in request contents. (Error in specification of data for Correct request content, and send to Ethernet module again. (Data
bit device, etc.) correction, etc.)
C061H Request data length does not match the number of data in After reviewing and correcting the content of text or length of request data in
the character section (part of text). the header, send to Ethernet module again.
C06FH When the communication data code is set to "Binary", a • Send a request message which matches the setting of the
request message of ASCII is received. (Error history of this communication data code.
error code is registered but no error response returns.) • Change the communication data code to match the request message.
C0D8H The number of specified blocks exceeds the range. Correct the specified value of for the number of blocks.
C0DEH Socket communication receive message has failed. • Check the operation of the external device or switching hub.
• Since there may be congestion of packets on the line, send data after a
certain period of time.
• Check whether the connection cable is not disconnected.
• Check that there is no connection failure with the switching hub.
• Execute the communication status test, and if the test was completed
with an error, take the corrective action.
• Execute the module communication test, and check that there is no
failure in the module.
C1A4H • The operator tried to use the Ethernet diagnosis, CC-Link Execute the Ethernet diagnosis, CC-Link IEF Basic diagnosis or simple
IEF Basic diagnosis or simple CPU communication CPU communication diagnosis using the direct connection to the CPU
diagnosis connecting directly to the Ethernet port of the module (built-in Ethernet port).
Ethernet module.
• A function not supported for the target device was
executed.
C1A6H The specification of the connection No. is not correct. Specify 1 to 32 for the connection number.
47 ERROR CODES
47.1 Ethernet Communication 823
Error code Error details and causes Action
(hexadecimal)
C1A7H The specified network number is incorrect. Correct the specified network number.
C1A8H The specified station number is incorrect. Correct the specified station number.
C1ADH The specified data length is incorrect. Correct the specified data length.
C1B0H The open processing of the specified connection has been Perform the open processing after completing the close processing.
already completed.
C1B1H The open processing of the specified connection has not Perform the open processing.
been completed.
C1B2H The specified connection is executing the OPEN/CLOSE Execute after the OPEN/CLOSE instruction is completed.
instruction.
C1B3H The specified channel is being used by another send/ • Change the channel number.
receive instruction. • Execute after the send/receive instruction is completed.
C1D3H An instruction not conforming to the specifications of the • Check that the dedicated instruction can be executed by the specified
communication method for the connection was executed. communication method. Correct the program if the instruction cannot be
executed.
• Check that there is no error in the connection specification of the
dedicated instruction.
C709H A communication error occurred in MELSOFT direct • Do not specify the direct connection when MELSOFT is not directly
connection. connected.
• In the case of direct connection, do not turn OFF or reset the CPU
module or disconnect the cable during communication.
CF70H An error occurred in the Ethernet communication path. • Check the operation of the target device.
• Check whether the connection cable is not disconnected.
CF71H A timeout error occurred. • Check the cautions for the executed function.
• Check the operation of the target device.
• Since there may be congestion of packets on the line, send data after a
certain period of time.
47 ERROR CODES
824 47.1 Ethernet Communication
SLMP function error code
Error codes stored when communication ends in error during SLMP are as provided in the following table.
CPU module
3E: 3E frame, 1E: 1E frame, : Supported, : Not supported
Error code Error details and causes Action SLMP
(hexadecimal) 3E 1E
C035H The existence of the external device could not be confirmed • Check the operation of the external device.
within the response monitoring timer value. • Check whether the connection cable is not disconnected.
C050H When the communication data code is set to "ASCII", ASCII • For communication, set to "Binary" in the communication data
code data which cannot be converted to binary is received. code and restart the CPU module.
• Correct the send data from the target device and send it.
C051H Maximum number of bit devices for which data can be read/ Correct number of bit devices that can be read or written all at
written all at once is outside the allowable range. once, and send to CPU module again.
C052H Maximum number of word devices for which data can be Correct number of word devices that can read or write all at
read/written all at once is outside the allowable range. once, and send to CPU module again.
C053H Maximum number of bit devices for which data can be Correct number of bit devices that can be random read or
random read/written all at once is outside the allowable written all at once, and send to CPU module again.
range.
C054H Maximum number of word devices for which data can be Correct number of word devices that can be random read or
random read/written all at once is outside the allowable written all at once, and send to CPU module again.
range.
C056H Read or write request exceeds maximum address. Correct starting address or number of read and write points, 47
and send to CPU module again. (Be careful not to exceed the
maximum address.)
C058H Request data length after ASCII-to-binary conversion does After reviewing and correcting the content of text or length of
not match the number of data in the character section (part request data in the header, send to CPU module again.
of text).
C059H • Error in command or subcommand specification. • Reconsider request contents.
• There is a command or subcommand that cannot be used • Send command or subcommand that can be used by the
by the CPU module. CPU module.
C05BH CPU module cannot read or write from/to specified device. Reconsider device to read or write.
C05CH Error in request contents. (Error related to device Correct request content, and send to CPU module again.
specification, such as reading or writing by bit unit for word (Subcommand correction, etc.)
device, etc.)
C05FH There is a request that cannot be executed for the target • Correct network No., request station No., request destination
CPU module. module I/O No., or request destination module station No.
• Correct contents of write request and/or read request.
C060H Error in request contents. (Error in specification of data for Correct request content, and send to CPU module again. (Data
bit device, etc.) correction, etc.)
C061H Request data length does not match the number of data in After reviewing and correcting the content of text or length of
the character section (part of text). request data in the header, send to CPU module again.
C06FH When the communication data code is set to "Binary", a • Send a request message which matches the setting of the
request message of ASCII is received. (Error history of this communication data code.
error code is registered but no error response returns.) • Change the communication data code to match the request
message.
C0D8H The number of specified blocks exceeds the range. Correct the specified value of for the number of blocks.
C200H Error in remote password. Correct remote password, and re-execute remote password
lock and unlock.
C201H Locked status of the remote password of the port which is Unlock the remote password before data communication.
used for communication.
C204H Different device requested remote password to be Request remote password lock from device that requested
unlocked. unlock of remote password.
C810H Error in remote password. (Authentication failure count is 9 Correct remote password, and re-execute remote password
or less.) lock and unlock.
C815H Error in remote password. (Authentication failure count is Re-execute remote password unlock after the specified time
10.) elapses.
C816H Remote password authentication is locked out. Re-execute remote password unlock after the specified time
elapses.
47 ERROR CODES
47.1 Ethernet Communication 825
Ethernet module
3E: 3E frame, 1E: 1E frame, : Supported, : Not supported
Error code Error details and causes Action SLMP
(hexadecimal) 3E 1E
C035H The existence of the external device could not be confirmed • Check the operation of the external device.
within the response monitoring timer value. • Reexamine and change the set values for existence
confirmation.
• Check whether the connection cable is not disconnected.
C050H When the communication data code is set to "ASCII", ASCII • For communication, set to "Binary" in the communication data
code data which cannot be converted to binary is received. code and restart the CPU module.
• Correct the send data from the target device and send it.
C051H Maximum number of bit devices for which data can be read/ Correct number of bit devices that can be read or written all at
written all at once is outside the allowable range. once, and send to Ethernet module again.
C052H Maximum number of word devices for which data can be Correct number of word devices that can read or write all at
read/written all at once is outside the allowable range. once, and send to Ethernet module again.
C053H Maximum number of bit devices for which data can be Correct number of bit devices that can be random read or
random read/written all at once is outside the allowable written all at once, and send to Ethernet module again.
range.
C054H Maximum number of word devices for which data can be Correct number of word devices that can be random read or
random read/written all at once is outside the allowable written all at once, and send to Ethernet module again.
range.
C056H Read or write request exceeds maximum address. Correct starting address or number of read and write points,
and send to Ethernet module again. (Be careful not to exceed
the maximum address.)
C057H The request data length in the SLMP message does not After reviewing and correcting the content of text or length of
match the number of data in the character section (part of request data in the header, send to Ethernet module again.
the text).
C058H Request data length after ASCII-to-binary conversion does After reviewing and correcting the content of text or length of
not match the number of data in the character section (part request data in the header, send to Ethernet module again.
of text).
C059H • Error in command or subcommand specification. • Reconsider request contents.
• There is a command or subcommand that cannot be used • Send command or subcommand that can be used by the
by the CPU module. Ethernet module.
C05BH Ethernet module cannot read or write data from/to specified Reconsider device to read or write.
device.
C05CH Error in request contents. (Reading or writing by bit unit for Correct request content, and send to Ethernet module again.
word device, etc.) (Subcommand correction, etc.)
C05EH The communication time between the Ethernet module and • Increase the monitor timer setting.
PLC CPU exceeds the Ethernet monitor timer setting. • Check the connection between the CPU and Ethernet
module.
C05FH There is a request that cannot be executed for the target • Correct network No., request station No., request destination
CPU module. module I/O No., or request destination module station No.
• Correct contents of write request and/or read request.
C060H Error in request contents. (Error in specification of data for Correct request content, and send to Ethernet module again.
bit device, etc.) (Data correction, etc.)
C061H Request data length does not match the number of data in After reviewing and correcting the content of text or length of
the character section (part of text). request data in the header, send to Ethernet module again.
C06FH When the communication data code is set to "Binary", a • Send a request message which matches the setting of the
request message of ASCII is received. (Error history of this communication data code.
error code is registered but no error response returns.) • Change the communication data code to match the request
message.
C0D8H The number of specified blocks exceeds the range. Correct the specified value of for the number of blocks.
47 ERROR CODES
826 47.1 Ethernet Communication
Module error code of Ethernet module
Error codes when a module error occurs are classified into major error, moderate error, and minor error, and can be checked
in the [Error Information] tab of the "Module Diagnostics" screen of the Ethernet module. ( Page 797 Module diagnostics)
The error codes are stored in 'Latest error code' (Un\G29).
Error code Error details and causes Action
(hexadecimal)
0800H Link-down due to disconnection of the network cable • Check the operation of the external device.
connected to an external device • Check if the connection cable is disconnected.
0904H Socket communication send message has failed. • Check the operation of the external device.
• Check if the connection cable is disconnected.
0910H Data cannot be sent to the external device. • Check the operation of the external device.
• Check the conditions of the cables, hubs and routers on the lines to the
external devices.
• The line may be flooded with packets. Retry after a while.
• The receiving area of the external device may be full (the window size of
TCP is small). Confirm whether the receiving processing is performed on
the external device side or unnecessary data is not sent from the
Ethernet module.
• Confirm whether the subnet mask pattern and default router IP address
are set correctly on the Ethernet module and external device or the IP
address class is correct.
0911H Communication with the external device was interrupted. • Check the operation of the external device.
• Check the conditions of the cables, hubs and routers on the lines to the
external devices.
• This error may occur when the connection under communication is 47
forcibly invalidated. In this case, there is no problem. Re-connect.
0912H System error or connection connecting error in OS • Check the operation of the external device.
(Malfunction due to noise or hardware trouble may have • Check the conditions of the cables, hubs and routers on the lines to the
occurred.) external devices.
• This error may occur when the connection under communication is
forcibly invalidated. In this case, there is no problem. Re-connect.
0913H The external device cannot be connected or has been • Check the operation of the external device.
disconnected. • Check the conditions of the cables, hubs and routers on the lines to the
external devices.
• If this error occurs during communication, retry after a while.
1080H The number of writes to ROM exceeded 100000. (Number Replace the module.
of writes > 100000)
1811H to 1812H An error has occurred during writing of parameters. Rewrite the EtherNet/IP parameters with EtherNet/IP Configuration Tool for
FX5-ENET/IP.
1852H The property value set in the buffer memory is incorrect. Confirm that an incorrect value is not stored.
1861H The data in the transmitted packet exceeded the size that • Check the settings for the BACnet device of the communication
can be transmitted by one packet. destination.
• Confirm the causes of increase in packet size.
1870H The protocol version of NPDU was not 1. • Check the specifications of the communication destination device.
• Check the communication packet.
1871H Unsupported BVLL (BVLC type) was received. • Check the communication packet.
• Confirm with the manufacturer of the communication destination device.
1872H Unsupported BVLL (BVLC function) was received. • Check the communication packet.
• Confirm with the manufacturer of the communication destination device.
1873H 0 was specified for DNET of the received packet. • Check the specifications of the communication destination device.
• Check the communication packet.
1874H 0 or 65535 was specified for SNET of the received packet. • Check the specifications of the communication destination device.
• Check the communication packet.
1875H 0 was specified for SLEN of the received packet. • Check the specifications of the communication destination device.
• Check the communication packet.
1876H An error occurred during packet decoding. • Check the communication packet.
• Please confirm with the manufacturer of the communication destination
device.
1877H SimpleAck, ComplexAck, SegmentAck, Error response, • Check the communication packet.
Reject response or Abort response was received. • Please confirm with the manufacturer of the communication destination
device.
47 ERROR CODES
47.1 Ethernet Communication 827
Error code Error details and causes Action
(hexadecimal)
1900H A memory check error has occurred. • Execute the IP address change function again.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1901H, 1902H A memory check error has occurred. • Execute the hardware test.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1903H A memory check error has occurred. • Execute Set Attribute for the CIP object with Online Action of EtherNet/IP
Configuration Tool for FX5-ENET/IP.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1904H A memory check error has occurred. • Rewrite the EtherNet/IP parameters (EipConfData.BIN), or configuration
information (configuration.apa) with EtherNet/IP Configuration Tool for
FX5-ENET/IP.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1D80H An instruction other than executable dedicated instruction Check that the dedicated instruction is executable. If it is not executable,
numbers has been specified. correct.
1D83H The dedicated instruction request data from the CPU • Execute the write to program again.
module was discarded because the data size was • If the error occurs again even after the above action is taken, the possible
abnormal. cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1D84H The dedicated instruction request data from the CPU • Execute the write to program again.
module cannot be normally input. • If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1D85H A timeout error occurred in the dedicated instruction • Reset the CPU module, and execute again.
response data, and the data was discarded. • If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1E10H An error was detected in the parameters set with EtherNet/ • Use EtherNet/IP Configuration Tool for FX5-ENET/IP to write the
IP Configuration Tool for FX5-ENET/IP. parameters to the module again.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1E11H An error was detected in the parameters set with EtherNet/ • Use EtherNet/IP Configuration Tool for FX5-ENET/IP to write the
IP Configuration Tool for FX5-ENET/IP. parameters to the module again.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1E12H An error was detected in the parameters set with EtherNet/ • Use EtherNet/IP Configuration Tool for FX5-ENET/IP to write the
IP Configuration Tool for FX5-ENET/IP. parameters to the module again.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1E13H It was not possible to stop EtherNet/IP communications. • Check the settings of the connection with the external device.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1E14H It was not possible to stop EtherNet/IP communications. • Check the settings of the connection with the external device.
• If the error occurs again even after the above action is taken, the possible
cause is a hardware failure of the module on which the error occurred.
Please consult your local Mitsubishi representative.
1F00H A communication error occurred in MELSOFT connection. • Check the number of connected connections in the whole MELSOFT
connection.
• Check the number of UDP connections in the MELSOFT connection.
2160H Overlapping IP addresses were detected. Correct the IP address.
2C80H A parameter error was detected in the external device • Check the external device configuration settings in the Ethernet module
configuration. parameters.
• If the same error is displayed again, the abnormal module may have a
hardware problem. Please consult your local Mitsubishi representative.
47 ERROR CODES
828 47.1 Ethernet Communication
Error code Error details and causes Action
(hexadecimal)
2C81H A parameter error was detected in the external device • Check the external device configuration settings in the Ethernet module
configuration. parameters.
• Set so that the sum of the number of connections in External Device
Configuration and the number of settings in the simple CPU
communication settings is 32 or less.
• If the same error is displayed again, the abnormal module may have a
hardware problem. Please consult your local Mitsubishi representative.
2C82H A parameter error was detected in the external device • Check the external device configuration settings in the Ethernet module
configuration. parameters.
• If the same error is displayed again, the abnormal module may have a
hardware problem. Please consult your local Mitsubishi representative.
2CF0H An error of CPU module was detected. Check the details of the error of the CPU module with the module
diagnostics of GX Works3, and take measures.
2DA0H, 2DA1H A parameter error in external device configuration was Reexamine and correct the setting of the number of connected units in
detected. external device configuration in the Ethernet module parameters.
2DA2H A parameter error in external device configuration was Reexamine and correct the setting of the communication method in external
detected. device configuration in the Ethernet module parameters.
2DA3H A parameter error in external device configuration was Reexamine and correct the setting of the protocol in external device
detected. configuration in the Ethernet module parameters.
2DA4H A parameter error in external device configuration was Reexamine and correct the setting of the model name in external device
detected. configuration in the Ethernet module parameters.
2DA5H A parameter error in external device configuration was Reexamine and correct the setting of the fixed buffer transmission in
detected. external device configuration in the Ethernet module parameters.
2DA6H A parameter error in external device configuration was
detected.
Reexamine and correct the setting of the IP address in external device
configuration in the Ethernet module parameters.
47
2DA7H A parameter error in external device configuration was Reexamine and correct the setting of the IP address (IPv6) in external
detected. device configuration in the Ethernet module parameters.
2DA8H A parameter error in external device configuration was Reexamine and correct the setting of the existence confirmation in external
detected. device configuration in the Ethernet module parameters.
2DA9H, 2DAAH A parameter error in external device configuration was Check the external device configuration settings in the Ethernet module
detected. parameters.
2DABH A parameter error in external device configuration was Check the own node port number setting in External Device Configuration in
detected. Ethernet Module Parameter.
2DB0H Request and setting data error Check the content of the specified request data.
3030H Hardware error Please consult your local Mitsubishi representative.
3040H F/W update file version error For this update, a PLC applicable to the new version is required. Please
consult your local Mitsubishi representative.
3041H F/W update file integrity verification failure error Replace the update file in the SD memory card with the correct file, and
redo update.
3042H F/W update file acquisition failure Replace the update file in the SD memory card with the correct file, and
redo update.
3056H The socket communication buffer for receiving has no Read out the received data using the dedicated instruction.
space.
3060H The total number of connections is outside the range. Please consult your local Mitsubishi representative.
3061H The station number is outside the range. Please consult your local Mitsubishi representative.
3062H The number of stations occupied is outside the range. Please consult your local Mitsubishi representative.
3063H The reserved station specification is outside the range. Please consult your local Mitsubishi representative.
3064H The IP address form is outside the range. Please consult your local Mitsubishi representative.
3065H The group number is outside the range. Please consult your local Mitsubishi representative.
3066H The IP address is outside the range. Please consult your local Mitsubishi representative.
3067H The total number of groups is outside the range. Please consult your local Mitsubishi representative.
3068H The group number is outside the range. Please consult your local Mitsubishi representative.
306AH The constant link scan setting is outside the range. Please consult your local Mitsubishi representative.
306BH The timeout time to disconnection detection is outside the Please consult your local Mitsubishi representative.
range.
306CH The consecutive number of time outs to disconnection Please consult your local Mitsubishi representative.
detection is outside the range.
306DH The IP address form is outside the range. Please consult your local Mitsubishi representative.
306EH The IP address (IPv4) is outside the range. Please consult your local Mitsubishi representative.
47 ERROR CODES
47.1 Ethernet Communication 829
Error code Error details and causes Action
(hexadecimal)
306FH The subnet mask is outside the range. Please consult your local Mitsubishi representative.
3073H The gateway address (IPv4) is outside the range. Please consult your local Mitsubishi representative.
3074H The subnet mask is outside the range. Please consult your local Mitsubishi representative.
3082H The timer change is outside the specified range. Please consult your local Mitsubishi representative.
3085H The destination alive check start interval timer is outside the Please consult your local Mitsubishi representative.
range.
3086H The start interval timer unit is outside the specified range. Please consult your local Mitsubishi representative.
3087H The destination alive check interval timer is outside the Please consult your local Mitsubishi representative.
range.
3088H The interval timer unit is outside the specified range. Please consult your local Mitsubishi representative.
3089H The destination alive check resend count is outside the Please consult your local Mitsubishi representative.
range.
3094H The number of retry is outside the range. Please consult your local Mitsubishi representative.
3095H The number of target IP address setting is outside the Please consult your local Mitsubishi representative.
range.
3096H The start target IP address setting is outside the range. Please consult your local Mitsubishi representative.
3097H The complete target IP address setting is outside the range. Please consult your local Mitsubishi representative.
3098H The start target IP address setting is outside the range > the Please consult your local Mitsubishi representative.
complete target IP address setting is outside the range
3099H The number of excluded IP address setting is outside the Please consult your local Mitsubishi representative.
range.
309AH The target IP address setting number is outside the range. Please consult your local Mitsubishi representative.
309BH The excluded IP address number is outside the range. Please consult your local Mitsubishi representative.
309CH The excluded IP address is outside the range. Please consult your local Mitsubishi representative.
309DH, 309EH Target module support error Please consult your local Mitsubishi representative.
309FH The gateway address (Ipv6) is outside the range. Please consult your local Mitsubishi representative.
30A8H The total number of stations occupied is outside the range. Please consult your local Mitsubishi representative.
30A9H IP addresses of the master station and the remote station Please consult your local Mitsubishi representative.
match
30AAH Simple CPU communication parameter out of range Please consult your local Mitsubishi representative.
3CF1H An error of hardware was detected. Please consult your local Mitsubishi representative.
3E30H to 3E42H An error of hardware was detected. Please consult your local Mitsubishi representative.
3E50H to 3E56H An error of hardware was detected. Please consult your local Mitsubishi representative.
3E60H to 3E63H An error of hardware was detected. Please consult your local Mitsubishi representative.
3F92H An error was detected in the memory. • Take measures to reduce noise.
• Reset the CPU module, and then switch it to RUN mode. If the error
occurs again even after the above action is taken, the possible cause is a
hardware failure of the CPU module. Please consult your local Mitsubishi
representative.
3FA1H An error was detected in the memory. • Take measures to reduce noise.
• Reset the CPU module, and then switch it to RUN mode. If the error
occurs again even after the above action is taken, the possible cause is a
hardware failure of the CPU module. Please consult your local Mitsubishi
representative.
4030H The specified device name cannot be handled. Check the specified device name.
4031H • The specified device No. is out of the range. • Check the specified device No.
• The external device does not correspond to the specified • Check the external device allocation.
device name. • Check the specified device name.
4032H A device name (TS, TC, SS, SC, CS, or CC) that cannot be • Check the specified device modification method.
used for SLMP random reading/writing (in word units) was • Check the specified device name.
specified.
4033H The specified device is for the system, and data cannot be Do not write data into the specified device or turn ON or OFF the device.
written into it.
4041H The access range exceeds the buffer memory range of the Check the starting address and the number of access points, and access
specified intelligent function module. within the buffer memory range existing in the intelligent function module.
4043H The specified intelligent function module does not exist. Check the module number of the specified intelligent function module.
480CH The operation cannot be executed because the automatic Re-execute after the completion of the automatic detection function.
detection function is being executed.
47 ERROR CODES
830 47.1 Ethernet Communication
Error code Error details and causes Action
(hexadecimal)
480DH The operation cannot be executed because the Re-execute after the completion of the communication setting reflection
communication setting reflection function is being executed. function.
480EH The operation cannot be executed because the parameter Re-execute after the completion of the parameter read/write function.
read/write function is being executed.
47
47 ERROR CODES
47.1 Ethernet Communication 831
47.2 Serial Communication
Checking absence/presence of N:N Network function errors
Verify that link errors have not occurred in the master station and local stations. The error can be checked using the flags
specified below.
■Error codes
When the serial communication error flag turns ON, the error code is stored in the device specified in the table below.
FX5 only FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error occurs,
code the error code is stored.
For error code above is stored, refer to Page 833 Error codes.
Precautions
Serial communication errors are not cleared even after communication has recovered its normal status.
Devices are cleared when power is turned OFFON, STOPRUN, reset or SM50 (Error Detection Reset Completion) is
turned ON.
■Error flags
When a link error occurs in the master station or local station of the N:N Network, the data transfer sequence error flag turns
ON.
Verify that the device specified in the table below is ON.
Station number Master Local stations
station
Station Station Station Station Station Station Station Station
No. 0 No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
FX5 only SM9040 SM9041 SM9042 SM9043 SM9044 SM9045 SM9046 SM9047
FX3 Series compatible SM8183 SM8184 SM8185 SM8186 SM8187 SM8188 SM8189 SM8190
47 ERROR CODES
832 47.2 Serial Communication
■Error codes
When the data transfer sequence error turns ON, the error code is stored in the following device.
Station number Master Local stations
station
Station Station Station Station Station Station Station Station
No. 0 No. 1 No. 2 No. 3 No. 4 No. 5 No. 6 No. 7
FX5 only SD9061 SD9062 SD9063 SD9064 SD9065 SD9066 SD9067 SD9068
FX3 Series compatible SD8211 SD8212 SD8213 SD8214 SD8215 SD8216 SD8217 SD8218
For error code above is stored, refer to Page 833 Error codes.
Error codes
The error codes (hexadecimal) stored in the devices for error code are as follows. When an error occurs, refer to the error
code list shown below to confirm the check points.
M: Master station, L: Local station
Error codes Error name Station Station Description of error Check point
(Hexadecimal) in which which
error detected
occurred error
2221H*1 Parameter error M, L M, L The parameter read from file is incorrect. Parameter setting by GX
Works3
7701H Send monitoring L M Local station did not respond to the request from the • Wiring
timeout in local station master station within the monitoring time. • Power 47
7702H Station number error L M An unexpected local station responded to the request • Station number settings
by the master station.
7703H Counter error L M The counter value included in the parameter data is • Wiring
different from the counter value given by a local
station.
7704H Message format error L M The message given by the local station is incorrect. • Wiring
in local station • Power
• Station number settings
7705H Insufficient device M, L M*2, L*2 The link device point number corresponding to the • Number of local stations
points for local stations number of local stations cannot be secured. • Station number settings
error • Link device head number
7711H Send monitoring M L The master station did not send request to the next • Wiring
timeout in master local station within the monitoring timer. • Power
station
7714H Message format error M L The message from the master station is incorrect. • Wiring
in master station • Power
• Station number settings
7715H Insufficient link device L L*2 The link device corresponding to the local station • Number of local stations
points for local station number cannot be secured (If the error occurs at the • Station number settings
error same as 05H, 15H is stored). • Link device head number
7721H Local station no L L*3 The specified local station does not exist. • Wiring
response error • Power
• Station number settings
7722H Station number error in L L*3 An unexpected local station responded to the request • Station number settings
local station by the master station.
7723H Counter error in local L L*3 The counter value included in the parameter data is • Wiring
station different from the count value given by a local station.
7731H Parameter not L L*3 Before parameters had been received, sending • Wiring
received request was received from the master station. • Power
47 ERROR CODES
47.2 Serial Communication 833
Checking absence/presence of parallel link function errors
Confirm whether an error has not occurred in the PLCs at the master or linked station. To confirm, check the following flags.
■Error codes
When the serial communication error flag turns ON, the error code is stored in the device specified in the table below.
FX5 only FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error Stores the error code when the serial
code communication error occurs.
Error code
The error codes (hexadecimal) stored in the devices for error code are as follows. When an error occurs, check the following
error codes.
Error code Error name Error handling
(Hexadecimal)
2220H Parameter not detected Write the project again.
2221H Parameter error Correct the setting value of the parameter and write the project
again.
7001H Communication CH parameter setting duplication error Confirm whether the serial port is not used for other
communication. (Page 876)
7010H Parity error, overrun error or framing error Check the wiring. (Page 292)
7812H Parallel link character error
7813H Parallel link sum error
7814H Parallel link format error
47 ERROR CODES
834 47.2 Serial Communication
Checking error codes of MC protocol function
1C frame
■Error codes when NAK is sent
The table below shows error codes (hexadecimal) and contents of errors when NAK is sent in communication between the
counterpart equipment and a CPU module. As an error code, a 2-digit ASCII code (hexadecimal) within the range from 00H to
FFH is sent. When two or more errors occur at the same time, priority is given to the error code which occurred first, and the
error code are sent in chronological order. Further, in case of an occurrence of the following errors, initialize the entire
transmission sequence.
Error code Error item Description of error Action
(hexadecimal)
02H Sum check error Sum check error has occurred. Check the data sent from the computer and the
The sum check code included in the received data does not contents of the sum check. Modify either one, and
match the sum check created from the received data. then execute communication again.
03H Protocol error The communication protocol is abnormal. 1) Check the contents of parameters and the
A control procedure set using parameters was ignored, and a contents of control procedure. Modify either
different control procedure was adopted in communication. Or contents, and then execute communication again.
the adopted control procedure was partially different from the 2) Refer to the command details, modify the
preset control procedure. Or a command specified in the specified command etc., and then execute
preset control procedure does not exist. communication again.
(Page 684)
06H Character area
error
An error occurred in the character area A, B or C.
1) The control procedure set using parameters is different.
1) Check the contents of the character areas A, B
and C, modify the contents if necessary, and then 47
2) A specified device number does not exist in the target PLC. execute communication again.
3) A device number is not set with the specified number of 2) Modify the device range, and then execute
characters (5 or 7 characters). communication again.
(Page 323)
07H Character error ASCII code data to be written to a device is not hexadecimal. Check the data to be written to the device, modify it if
necessary, and then execute communication again.
10H PLC number A station with the corresponding PLC number does not exist. Check the PLC number included in the message,
error modify it if necessary, and then execute
communication again. The PLC number should be
"FFH" in all FX5 PLCs.
18H Remote control Remote control to set the RUN or STOP mode is disabled. Operate Remote RUN in the engineering tools or
error Remote STOP is operated by other engineering tools or peripheral devices where Remote STOP was
peripheral devices. operated and operate Remote RUN/STOP again.
• Error codes
When the serial communication error turns ON, the error code is stored in the device specified in the table below.
CH1 CH2 CH3 CH4 Name Descriptions
SD8500 SD8510 SD8520 SD8530 Serial communication error Stores the error code when the serial
code communication error occurs.
47 ERROR CODES
47.2 Serial Communication 835
List of error codes is as follows.
Error code Error item Description of error Action
(hexadecimal)
7001H Serial Communication CH parameter setting duplication error Confirm whether the serial port is not used for other
communication communication.
common error
7010H Serial Parity error, overrun error or framing error Check the following.
communication • Wiring
common error • Communication setting
7143H Device number Head device address is outside the range. Check the sent message of the counterpart
error equipment, modify it if necessary, and then execute
communication again.
7164H Request There is an error in the request contents or the device Check the sent message/request contents of the
contents error specification method. counterpart equipment, modify it if necessary, and
then execute communication again.
7E40H Command error A non-existing command or sub-command is specified. Check the sent message of the counterpart
equipment, modify it if necessary, and then execute
communication again.
7E41H Data length The number of points that can be exchanged at the time of Check the sent message of the counterpart
error random reading/writing are exceeded and specified. equipment, modify it if necessary, and then execute
communication again.
7E42H Data count error The number of points requested are exceeding the range for Check the sent message of the counterpart
the command. equipment, modify it if necessary, and then execute
communication again.
7E43H Device error • Non-existing device is specified. Check the sent message of the counterpart
• A device that cannot be specified in the pertinent command equipment, modify it if necessary, and then execute
is specified. communication again.
• Head device address is outside the range.
7F21H Receiving • There is a specification error in the command (frame) part. Check the sent message of the counterpart
header part • An ASCII code that cannot be converted to binary code is equipment, modify it if necessary, and then execute
error received. communication again.
7F22H Command error • Non-existing command or device is specified. Check the sent message of the counterpart
• There is an error in the remote password length. equipment, modify it if necessary, and then execute
communication again.
7F23H MC protocol There is no data (ETX, CR-LF etc.) at the end of character part Check the sent message of the counterpart
message error or there is an error in the specification. equipment, modify it if necessary, and then execute
communication again.
7F24H Sum check error • The received sum check code does not match with the • Check the sum check code of the counterpart
calculated sum check code. equipment.
• The received horizontal parity code does not match with the • Check the horizontal parity code of the counterpart
calculated horizontal parity code. equipment.
• The received error check code does not match with the • Check CRC-16 of the counterpart equipment.
calculated error check code.
7F26H Command error At the time of registering a remote password, a different After the unlock process ends normally, execute
command is received before unlock process. communication.
7F40H Timeout error A timeout occurred because the received message was • Verify that there is no data omission in the
insufficient. reception error.
• Verify that the reception is not stopped due to DTR
control etc.
• Check the transmission program on the
counterpart device for any missing messages.
7F67H Overrun error The following data is received before FX5 PLC completed Reduce the communication speed and then execute
receiving process. communication again.
7F68H Framing error • A disturbance occurred in the line due to power supply ON/ • Take counter measures for noise.
OFF of the target station. • At the time of multi drop connection, have an
• There is noise on the line. interlock so that the data is not sent simultaneously
• At the time of multi drop connection, the data is sent from multiple devices.
simultaneously from multiple devices.
7F69H Parity error • The parity bit settings do not match. • Match the settings of FX5 PLC and counterpart
• A disturbance occurred in the line due to power supply ON/ equipment.
OFF of the target station. • Take counter measures for noise.
• There is noise on the line. • At the time of multi drop connection, have an
• At the time of multi drop connection, the data is sent interlock so that the data is not sent simultaneously
simultaneously from multiple equipments. from multiple devices.
47 ERROR CODES
836 47.2 Serial Communication
3C/4C frame
■Error codes when NAK is sent
The table below shows error codes (hexadecimal) and contents of errors when NAK is sent in communication between the
counterpart equipment and a CPU module. When two or more errors occur at the same time, priority is given to the error code
with the smallest number, and the error code with the smallest number is sent. Further, in case of an occurrence of the
following errors, initialize the entire transmission sequence.
Error code Error item Description of error Action
(hexadecimal)
4000H to 4FFFH An error detected by the CPU unit. Refer to following manual and take measures.
(An error occurring outside communication by MC protocol) MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's
Manual (Hardware)
7143H Device number Head device address is outside the range. Check the sent message of the counterpart
error equipment, modify it if necessary, and then execute
communication again.
7164H Request There is an error in the request contents or the device Check the sent message/request contents of the
contents error specification method. counterpart equipment, modify it if necessary, and
then execute communication again.
7167H Disabled in RUN Write command is specified when write not possible in RUN Change the settings to make writing in RUN mode
mode mode is set. possible, and then execute communication again.
7168H A command that cannot be executed in RUN mode is STOP the CPU and then execute communication
specified. again.
7E40H Command error A non-existing command or sub-command is specified. Check the sent message of the counterpart
equipment, modify it if necessary, and then execute
communication again.
47
7E41H Data length The number of points that can be exchanged at the time of Check the sent message of the counterpart
error random reading/writing are exceeded and specified. equipment, modify it if necessary, and then execute
communication again.
7E42H Data count error The number of points requested are exceeding the range for Check the sent message of the counterpart
the command. equipment, modify it if necessary, and then execute
communication again.
7E43H Device error • Non-existing device is specified. Check the sent message of the counterpart
• A device that cannot be specified in the pertinent command equipment, modify it if necessary, and then execute
is specified. communication again.
7F21H Receiving • There is a specification error in the command (frame) part. Check the sent message of the counterpart
header part • An ASCII code that cannot be converted to binary code is equipment, modify it if necessary, and then execute
error received. communication again.
7F22H Command error There is an error in the remote password length. Check the sent message of the counterpart
equipment, modify it if necessary, and then execute
communication again.
7F23H MC protocol There is no data (ETX, CR-LF etc.) at the end of character part Check the sent message of the counterpart
message error or there is an error in the specification. equipment, modify it if necessary, and then execute
communication again.
7F24H Sum check error • The received sum check code does not match with the • Check the sum check code of the counterpart
calculated sum check code. equipment.
• The received horizontal parity code does not match with the • Check the horizontal parity code of the counterpart
calculated horizontal parity code. equipment.
• The received error check code does not match with the • Check CRC-16 of the counterpart equipment.
calculated error check code.
7F26H Command error At the time of registering a remote password, a different After the unlock process ends normally, execute
command is received before unlock process. communication.
7F40H Timeout error A timeout occurred because the received message was • Verify that there is no data omission in the
insufficient. reception error.
• Verify that the reception is not stopped due to DTR
control etc.
• Check the transmission program on the
counterpart device for any missing messages.
7F67H Overrun error The following data is received before FX5 PLC completed Reduce the communication speed and then execute
receiving process. communication again.
47 ERROR CODES
47.2 Serial Communication 837
Error code Error item Description of error Action
(hexadecimal)
7F68H Framing error • A disturbance occurred in the line due to power supply ON/ • Take counter measures for noise.
OFF of the target station. • At the time of multi drop connection, have an
• There is noise on the line. interlock so that the data is not sent simultaneously
• At the time of multi drop connection, the data is sent from multiple devices.
simultaneously from multiple devices.
7F69H Parity error • The parity bit settings do not match. • Match the settings of FX5 PLC and counterpart
• A disturbance occurred in the line due to power supply ON/ equipment.
OFF of the target station. • Take counter measures for noise.
• There is noise on the line. • At the time of multi drop connection, have an
• At the time of multi drop connection, the data is sent interlock so that the data is not sent simultaneously
simultaneously from multiple devices. from multiple devices.
7FE6H Remote Remote password does not match. Check the remote password error, and then execute
password error communication again.
• Error codes
When the serial communication error turns ON, the error code is stored in the device specified in the table below.
CH1 CH2 CH3 CH4 Name Descriptions
SD8500 SD8510 SD8520 SD8530 Serial communication error Stores the error code when the serial
code communication error occurs.
The following table shows the error code (hexadecimal) stored in each device.
Error code (hexadecimal) Description
0000H No error detected
7F40H Monitoring time out
7F67H Overrun error
7F68H Framing error
7F69H Parity error
The serial communication error flags and serial communication error codes are not cleared even when
communication is restored.
They are cleared by turning the PLC power OFFON, STOPRUN or by resetting the system.
47 ERROR CODES
838 47.2 Serial Communication
Operation error
■Error flags
The operation error flag turns ON when an operation error occurs in the communication settings.
Verify that the device specified in the table below is ON.
FX5 only Name Descriptions
CH1 CH2 CH3 CH4
SM0 Latest self diagnostics error (including annunciator ON) Turns ON when an operation error occurs.
SM1 Latest self diagnostics error (not including annunciator ON)
SM56, SM8067 Operation error
■Error codes
When the operation error flag turns ON, the error code (hexadecimal) is stored in the operation error code (SD0/SD8067).
The error codes stored in the device are shown as follows.
Error code Name Description of error Error handling
(hexadecimal)
2222H Parameter error The parameter setting value exceeded the available Correct the setting value of the parameter and write the
range. project again.
47
47 ERROR CODES
47.2 Serial Communication 839
Checking absence/presence of inverter communication function
errors
If an inverter communication error occurs, it is processed as a serial communication error. (Page 370 Processing of
communication errors)
■Error codes
When the serial communication error turns ON, the error code is stored in the corresponding device specified in the table
below.
FX5 dedicated FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error occurs,
code the error code is stored.
47 ERROR CODES
840 47.2 Serial Communication
■List of error codes for inverter communication
The error codes shown below are stored when a communication error is caused by an inverter communication instruction.
Error code Description of error Inverter operation
(hexadecimal)
0000H Normal end (No Errors)
7601H No response from the inverter.
7602H Timeout error Sending from inverter was aborted midway.
7603H Station number error An unspecified station gave response.
7604H Sum check error The sum of data sent back by the inverter did not match.
7608H Sending timeout error Sending to the inverter was not completed within the specified time.
7609H Receive data error Wrong data was received from the inverter.
7620H Computer NAK error Inverter sent the error code H0. When errors have
The number of retries exceeded the allowable number because of an error occurred consecutively
in the transfer request data. beyond the allowable
number of retries,
7621H Parity error Inverter sent the error code H1.
inverter is brought to an
The contents are different from the specified parity.
alarm stop.
7622H Sum check error Inverter sent the error code H2.
The sum check code in the computer is different from the sum value
calculated from the data received by the inverter.
7623H Protocol error Inverter sent the error code H3.
There is a syntax error in data received by the inverter. Or, data reception
is not completed within a certain amount of time. CR/LF does not match
parameter setting.
7624H Framing error Inverter sent the error code H4. 47
The stop bit length is different from the initial set value.
7625H Overrun error Inverter sent the error code H5.
Before receiving the completed data in the inverter, the computer sent the
next set of data.
7626H Undefined Inverter sent the error code H6. Not defined currently in inverter.
7627H Character error Inverter sent the error code H7. Inverter does not
An unused character (other than 0 to 9, A to F and control codes) was accept the received
received. data, but is not brought
to an alarm stop.
7628H Undefined Inverter sent the error code H8. Not defined currently in inverter.
7629H Undefined Inverter sent the error code H9. Not defined currently in inverter.
762AH Mode error Inverter sent the error code HA. Inverter does not
A parameter was written in a mode other than computer link operation accept the received
mode, or while the inverter was operating. data, but is not brought
to an alarm stop.
762BH Instruction code error Inverter sent the error code HB. Non-existing instruction code was
specified.
762CH Data range error Inverter sent the error code HC.
In writing a parameter or operation frequency, data outside the allowable
range was specified.
762DH Undefined Inverter sent the error code HD. Not defined currently in inverter.
762EH Undefined Inverter sent the error code HE. Not defined currently in inverter.
762FH Undefined Inverter sent the error code HF. Not defined currently in inverter.
47 ERROR CODES
47.2 Serial Communication 841
■IVMC instruction error codes
When errors occur in the send data of the IVMC instruction, the following error codes are stored.
Error code Description of error Inverter operation
(hexadecimal)
0000H No error has occurred in both send data 1 and send data 2.
Normal end
7640H IVMC instruction send data 1: Mode error The inverter accepts
A parameter was written in a mode other than computer link operation mode or while inverter was operating. data corresponding to
7641H IVMC instruction send data 1: Instruction code error send data 2.
It is not brought to an
Non-existing instruction code was specified.
alarm stop.
7642H IVMC instruction send data 1: Data range error
Data outside the allowable range was specified.
7643H IVMC instruction send data 2: Mode error The inverter accepts
A parameter was written in a mode other than computer link operation mode or while inverter was operating. data corresponding to
send data 1.
7644H IVMC instruction send data 2: Instruction code error
It is not brought to an
Non-existing instruction code was specified.
alarm stop.
7645H IVMC instruction send data 2: Data range error
Data outside the allowable range was specified.
7646H IVMC instruction send data 1: Mode error The inverter does not
IVMC instruction send data 2: Mode error accept data
corresponding to send
7647H IVMC instruction send data 1: Mode error
data 1 and 2, but is not
IVMC instruction send data 2: Instruction code error
brought to an alarm stop.
7648H IVMC instruction send data 1: Mode error
IVMC instruction send data 2: Data range error
7649H IVMC instruction send data 1: Instruction code error
IVMC instruction send data 2: Mode error
764AH IVMC instruction send data 1: Instruction code error
IVMC instruction send data 2: Instruction code error
764BH IVMC instruction send data 1: Instruction code error
IVMC instruction send data 2: Data range error
764CH IVMC instruction send data 1: Data range error
IVMC instruction send data 2: Mode error
764DH IVMC instruction send data 1: Data range error
IVMC instruction send data 2: Instruction code error
764EH IVMC instruction send data 1: Data range error
IVMC instruction send data 2: Data range error
Operation error
■Error flags
The operation error flag turns ON when an operation error occurs in the inverter communication instruction. Verify that the
device specified in the table below is ON.
FX5 dedicated Name Descriptions
CH1 CH2 CH3 CH4
SM0 Latest self-diagnostic error Turns ON when an operation error occurs.
(Including the annunciator ON)
SM1 Latest self-diagnostic error
(Not including the annunciator ON)
SM56, SM8067 Operation error
■Error codes
When the operation error flag turns ON, the error code (hexadecimal) is stored in the operation error code (SD0/SD8067).
For the error codes stored in the device, refer to the operation error of each inverter communication instruction.
47 ERROR CODES
842 47.2 Serial Communication
Checking absence/presence of non-protocol communication
function errors
■Error codes
When the serial communication error turns ON, the error code is stored in the corresponding device specified in the table
below.
FX5 dedicated FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SD8500 SD8510 SD8520 SD8530 SD8063 SD8438 Serial communication error When a serial communication error occurs,
code the error code is stored. 47
The error codes (hexadecimal) stored in devices are shown as follows.
Error code Name Description of error Error handling
(hexadecimal)
7010H Parity error, overrun error or framing A parity error, overrun error or framing error occurred during When an error code is stored,
error communication. check the following items:
• Wiring
7200H Communication data sum mismatch Receive data sum mismatch.
• Communication settings
7201H Incorrect data format Incorrect data format (Page 420)
• Character other than LF was received after CR in control
procedure [CR, LF added].
• Character other than CR was received after the check sum
in sum check code [Added] and control procedure [CR, LF
added].
• The amount of data was greater than the set value.
• CR, LF was received before the terminator.
47 ERROR CODES
47.2 Serial Communication 843
Operation error
■Error flags
The operation error flag turns ON when an operation error occurs in the RS2 instruction.
Verify that the device specified in the table below is ON.
FX5 only Name Descriptions
CH1 CH2 CH3 CH4
SM0 Latest self-diagnostic error Turns ON when an operation error occurs.
(Including the annunciator ON)
SM1 Latest self-diagnostic error
(Not including the annunciator ON)
SM56, SM8067 Operation error
■Error codes
When the operation error flag turns ON, the error code (hexadecimal) is stored in the operation error code (SD0/SD8067).
The error codes stored in the device are shown as follows.
Error code Name Description of error Error handling
(hexadecimal)
2822H A device was specified that cannot be Wrong operand set for the RS2 instruction. When an error code is stored,
specified with the instruction. check the following items:
• Program
3405H Data was entered outside of the range The operand device number range or data value set for the
• Communication settings
that can be specified. RS2 instruction is out of range.
(Page 420)
2820H A device or label specified with the The operand device number range or data value set for the
instruction was entered outside of the RS2 instruction is out of range.
range that can be used.
1810H Operation error The same channel is used for more than one RS2 instruction.
3600H Operation error Specified channel is not set in parameter.
47 ERROR CODES
844 47.2 Serial Communication
Checking absence/presence of predefined protocol support
function errors
■Error codes
When the serial communication error turns ON, the error code is stored in the corresponding device specified in the table
below. And be stored in resulting of executed S(P).CPRTCL instruction (operand (s)).
CH1 CH2 CH3 CH4 Name Descriptions
SD8500 SD8510 SD8520 SD8530 Serial communication error code When a serial communication error occurs, the error
code is stored.
47 ERROR CODES
47.2 Serial Communication 845
Error code Name Description of error Error handling
(hexadecimal)
7D1AH Data length error In the data received from the counterpart device, • Check the packet format of the counterpart device
the Length value does not match the data length of to confirm that the conversion variable is set
the conversion variable(s). correctly.
■Check the data sent from the counterpart device to
confirm that;
• The Length value is correct.
• Any of the data corresponding to the conversion
variable is not missing.
7D1BH Value range error When data is received using a protocol including a • Check the data sent from the counterpart device.
packet that contains conversion variable, the ■Check the packet format of the counterpart device
corresponding data exceeds the range of values to confirm that the conversion size is set correctly.
allowed for the CPU module. • If the size exceeds the range for word data,
change the conversion size setting to double
word.
• If the size exceeds the range for double word
data, change the element to non-conversion
variable.
7D20H Data length size error, data The value set in the data length storage area or • Check the maximum data length that can be set to
count size error the data count storage area is out of range. the data length storage area, and specify a value
that is equal to or smaller than the maximum data
length.
• Check the maximum allowable data quantity, and
specify the maximum quantity or less in the data
quantity storage area.
7D21H Decimal point place • An out-of-range decimal point position is set • Check the set decimal point position.
specification error when the number of decimals is set to variable • Check the number of digits setting, and set the
point. decimal point position so that the number of
• The number of decimals is larger than the decimals is less than the number of digits.
number of digits for each data.
7F20H ASCII BIN conversion • When data is received by conversion variable, • Check the sent message of the counterpart
error the data corresponding to the conversion device, modify it if necessary, and then execute
variable cannot be converted to binary numbers. communication again.
• When data is received using a protocol including • If the protocol was edited, check the packet format
a packet of check code (ASCII hexadecimal or of the counterpart device to check that the set
ASCII decimal), the data corresponding to the values of the conversion, sign character, number
check code cannot be converted to binary of decimals, delimiter, and number of digit for
numbers. conversion variable are correct.
• If the protocol was edited, check the packet format
of the counterpart device to check that the setting
for the code type and data length of check code
are correct.
7F24H Sum check error • The received sum check does not match with • Check the sum check of the counterpart device.
the calculated sum check. • Check the horizontal parity code of the counterpart
• The received horizontal parity code does not device.
match with the calculated horizontal parity code. • Check CRC-16 of the counterpart device.
• The received error check code does not match ■If the protocol was edited, check if the following
with the calculated error check code. values match the packet format of the counterpart
device:
• Processing method or code type of the check
code
• Data length
• Data flow
• Complement calculation
• Calculating range
7F67H Overrun error The following data was received before the CPU • Reduce the communication speed and then
module completes receiving process. execute communication again.
• Check if momentary power failure has occurred on
the station with the CPU module (using the special
register SD1005). If momentary power failure has
occurred, remove the cause.
47 ERROR CODES
846 47.2 Serial Communication
Error code Name Description of error Error handling
(hexadecimal)
7F68H Framing error • The stop bit settings do not match. • Match the settings of the CPU module with that of
• A disturbance occurred in the line due to power the counterpart device.
supply ON/OFF of the target station. • Take measures against noise.
• There is noise on the line. • In the multi drop connection, have an interlock so
• At the time of multi drop connection, the data is that data is not sent simultaneously from multiple
sent simultaneously from multiple devices. devices.
7F69H Parity error • The parity bit settings do not match.
• A disturbance occurred in the line due to power
supply ON/OFF of the target station.
• There is noise on the line.
• At the time of multi drop connection, the data is
sent simultaneously from multiple devices.
7F6AH Buffer full error The receive buffer overflowed and received data Perform a predefined protocol including data
was skipped. reception to clear the receive buffer.
7FF2H Predefined protocol setting The instruction cannot be executed with the Correct the setting value of the predefined protocol.
error current predefined protocol setting.
47
47 ERROR CODES
47.2 Serial Communication 847
Operation error
■Error flags
The operation error flag turns ON when an operation error occurs in the S(P).CPRTCL instruction.
Verify that the device specified in the table below is ON.
FX5 only Name Descriptions
CH1 CH2 CH3 CH4
SM0 Latest self-diagnostic error Turns ON when an operation error occurs.
(Including the annunciator ON)
SM1 Latest self-diagnostic error
(Not including the annunciator ON)
SM56, SM8067 Operation error
■Error codes
When the operation error flag turns ON, the error code (hexadecimal) is stored in the operation error code (SD0/SD8067).
The error codes stored in the device are shown as follows.
Error code Name Description of error Error handling
(hexadecimal)
2220H Parameter not detected The parameter contents are corrupted. Write the project again.
2221H Parameter error The parameter setting value exceeded the Correct the setting value of the parameter and write
available range. the project again.
2222H
2250H Module extended parameter Any of the following errors exists in the written • Check the predefined protocol setting in protocol
error module extended parameter setting: setting data error (SD9120 to 9123), and correct
• The predefined protocol setting has an error. the setting. Then write the setting to the CPU
• The data for the set item is corrupted. module and execute the S(P).CPRTCL
instruction.
• If the error occurs again even after rewriting,
replace the CPU module.
2820H Invalid device designation The device used for operands of the instruction Check the device range and correct the program.
exceeded the device range.
3100H Instruction code error The program contains instructions that cannot be • Perform a module diagnosis on the engineering
used or interpreted. tool to check the details (program location). Check
and modify the program (step) indicated by the
error jump.
• Take measures against noise.
• Rewrite the program, reset the CPU module, and
perform RUN. If the same error persists, it may be
due to a hardware failure of the CPU module.
Please consult your local Mitsubishi
representative.
3405H Operation error The operand device number range or data value Check the data specified by the S(P).CPRTCL
set for the S(P).CPRTCL instruction is out of instruction.
range.
3582H Operation error The instruction that is being used cannot be used Correct the program so that the instruction that
in the interruption routine program. cannot be used in the interruption routine program is
not used.
47 ERROR CODES
848 47.2 Serial Communication
47.3 MODBUS Serial Communication
Communication error
■Error flags
If a communication error occurs in the serial communication, the serial communication error flag turns ON.
Verify that the device specified in the table below is ON.
FX5 only FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2
SM8500 SM8510 SM8520 SM8530 SM8063 SM8438 Serial communication error Turns ON when an error occurs in serial
communication.
SM8402 SM8422 MODBUS communication Turns ON when an error occurs in
error MODBUS communication.
SM8403 SM8423 MODBUS communication Turns on once an error occurs during
error (latched) MODBUS serial communication.
■Error codes
When the serial communication error turns ON, the error code and error detail will be stored in the relevant device.
FX5 only FX3 Series Name Descriptions
compatible
CH1 CH2 CH3 CH4 CH1 CH2 47
SD8500 SD8510 SD8520 SD8530 SD8402 SD8422 Serial communication error Stores the error code when a serial
SD8063 SD8438 code communication error occurs.
SD8501 SD8511 SD8521 SD8531 SD8403 SD8423 Serial communication error When a serial communication error occurs,
details the error detail is stored.
When an error occurs in Ethernet communication, the error code is stored in the device corresponding to each connection.
Device No. Name Descriptions
SD10130 Error code (Connection No.1) Stores the current error code generated during built-in Ethernet.
SD10131 Error code (Connection No.2)
SD10132 Error code (Connection No.3)
SD10133 Error code (Connection No.4)
SD10134 Error code (Connection No.5)
SD10135 Error code (Connection No.6)
SD10136 Error code (Connection No.7)
SD10137 Error code (Connection No.8)
The error codes (hexadecimal) and error details stored in devices are shown as follows.
: Supported, : Not supported
Error Error details Description of error MODBUS Station in
code communication which error
Serial TCP occurred
47 ERROR CODES
47.3 MODBUS Serial Communication 849
Error Error details Description of error MODBUS Station in
code communication which error
Serial TCP occurred
b15 to b8 b7 to b0
Exception function code Exception code
(high-order byte) (low-order byte)
The following table outlines the exception function codes (high-order byte).
Exception Function name Details
function code
01H Read coils Completed with an error by read binary (R/W) devices
02H Read inputs Completed with an error by read binary (RO) devices
03H Read holding registers Completed with an error by read 16 bit (R/W) register
04H Read input registers Completed with an error by read 16 bit (RO) register
05H Write single coil Completed with an error by write single binary device
06H Write single register Completed with an error by write single 16 bit register device
0FH Write multiple coils Completed with an error by write multiple binary (R/W) devices
10H Write multiple registers Completed with an error by write multiple 16 bit (R/W) registers
16H Mask Write Register Completed with an error by manipulate slave register with AND Mask/OR Mask
17H Read/Write Multiple Registers Completed with an error by read/write multiple 16 bit (R/W) registers
47 ERROR CODES
850 47.3 MODBUS Serial Communication
Operation error
■Error flags
The operation error flag turns ON when an operation error occurs in the ADPRW instruction.
Verify that the device specified in the table below is ON.
FX5 only Name Descriptions
CH1 CH2 CH3 CH4
SM0 Latest self-diagnostic error Turns ON when an operation error occurs.
(Including the annunciator ON)
SM1 Latest self-diagnostic error
(Not including the annunciator ON)
SM56, SM8067 Operation error
■Error codes
When the operation error flag turns ON, the error code (hexadecimal) is stored in the operation error code (SD0/SD8067).
The error codes stored in the device are shown as follows.
Error code Description Details Station in
which error
occurred
1810H Channel double use Channel used by the instruction is used by another instruction. Master/Slave
3600H Invalid parameter setup The instruction is used in Slave mode. Slave
2822H A device was specified that cannot be specified A device that cannot be used for the instruction is specified. Master
with the instruction. 47
3405H Data was entered outside of the range that can be The operand device number range or data value set for the Master
specified. instruction is out of range.
2820H A device or label was beyond the range that can The operand corresponding device set for the instruction is out of Master
be specified with the instruction. range.
47.4 SLMP
Error codes stored when communication ends in error during SLMP are as provided in the following table.
For the troubleshooting on the SLMP-compatible device side, refer to the SLMP-compatible device manual.
CPU module
3E: 3E frame, 1E: 1E frame, : Supported, : Not supported
Error code Error details and causes Action SLMP
(hexadecimal) 3E 1E
C035H The existence of the external device could not be • Check the operation of the external device.
confirmed within the response monitoring timer • Check whether the connection cable is not disconnected.
value.
C050H When the communication data code is set to • For communication, set to "Binary" in the communication data code
"ASCII", ASCII code data which cannot be converted and restart the CPU module.
to binary is received. • Correct the send data from the target device and send it.
C051H Maximum number of bit devices for which data can Correct number of bit devices that can be read or written all at once,
be read/written all at once is outside the allowable and send to CPU module again.
range.
C052H Maximum number of word devices for which data Correct number of word devices that can read or write all at once, and
can be read/written all at once is outside the send to CPU module again.
allowable range.
C053H Maximum number of bit devices for which data can Correct number of bit devices that can be random read or written all at
be random read/written all at once is outside the once, and send to CPU module again.
allowable range.
C054H Maximum number of word devices for which data Correct number of word devices that can be random read or written all
can be random read/written all at once is outside the at once, and send to CPU module again.
allowable range.
C056H Read or write request exceeds maximum address. Correct starting address or number of read and write points, and send
to CPU module again. (Be careful not to exceed the maximum
address.)
47 ERROR CODES
47.4 SLMP 851
Error code Error details and causes Action SLMP
(hexadecimal) 3E 1E
C058H Request data length after ASCII-to-binary After reviewing and correcting the content of text or length of request
conversion does not match the number of data in the data in the header, send to CPU module again.
character section (part of text).
C059H • Error in command or subcommand specification. • Reconsider request contents.
• There is a command or subcommand that cannot • Send command or subcommand that can be used by the CPU
be used by the CPU module. module.
C05BH CPU module cannot read or write from/to specified Reconsider device to read or write.
device.
C05CH Error in request contents. (Reading or writing by bit Correct request content, and send to CPU module again.
unit for word device, etc.) (Subcommand correction, etc.)
C05FH There is a request that cannot be executed for the • Correct network No., request station No., request destination module
target CPU module. I/O No., or request destination module station No.
• Correct contents of write request and/or read request.
C060H Error in request contents. (Error in specification of Correct request content, and send to CPU module again. (Data
data for bit device, etc.) correction, etc.)
C061H Request data length does not match the number of After reviewing and correcting the content of text or length of request
data in the character section (part of text). data in the header, send to CPU module again.
C06FH When the communication data code is set to • Send a request message which matches the setting of the
"Binary", a request message of ASCII is received. communication data code.
(Error history of this error code is registered but no • Change the communication data code to match the request
error response returns.) message.
C0D8H The number of specified blocks exceeds the range. Correct the specified value of for the number of blocks.
C200H Error in remote password. Correct remote password, and re-execute remote password lock and
unlock.
C201H Locked status of the remote password of the port Unlock the remote password before data communication.
which is used for communication.
C204H Different device requested remote password to be Request remote password lock from device that requested unlock of
unlocked. remote password.
C810H Error in remote password. (Authentication failure Correct remote password, and re-execute remote password lock and
count is 9 or less.) unlock.
C815H Error in remote password. (Authentication failure Re-execute remote password unlock after the specified time elapses.
count is 10.)
C816H Remote password authentication is locked out. Re-execute remote password unlock after the specified time elapses.
Ethernet module
3E: 3E frame, 1E: 1E frame, : Supported, : Not supported
Error code Error details and causes Action SLMP
(hexadecimal) 3E 1E
C035H The existence of the external device could not be • Check the operation of the external device.
confirmed within the response monitoring timer • Reexamine and change the set values for existence confirmation.
value. • Check whether the connection cable is not disconnected.
C050H When the communication data code is set to • For communication, set to "Binary" in the communication data code
"ASCII", ASCII code data which cannot be converted and restart the CPU module.
to binary is received. • Correct the send data from the target device and send it.
C051H Maximum number of bit devices for which data can Correct number of bit devices that can be read or written all at once,
be read/written all at once is outside the allowable and send to Ethernet module again.
range.
C052H Maximum number of word devices for which data Correct number of word devices that can read or write all at once, and
can be read/written all at once is outside the send to Ethernet module again.
allowable range.
C053H Maximum number of bit devices for which data can Correct number of bit devices that can be random read or written all at
be random read/written all at once is outside the once, and send to Ethernet module again.
allowable range.
C054H Maximum number of word devices for which data Correct number of word devices that can be random read or written all
can be random read/written all at once is outside the at once, and send to Ethernet module again.
allowable range.
C056H Read or write request exceeds maximum address. Correct starting address or number of read and write points, and send
to Ethernet module again. (Be careful not to exceed the maximum
address.)
47 ERROR CODES
852 47.4 SLMP
Error code Error details and causes Action SLMP
(hexadecimal) 3E 1E
C057H The request data length in the SLMP message does After reviewing and correcting the content of text or length of request
not match the number of data in the character data in the header, send to Ethernet module again.
section (part of the text).
C058H Request data length after ASCII-to-binary After reviewing and correcting the content of text or length of request
conversion does not match the number of data in the data in the header, send to Ethernet module again.
character section (part of text).
C059H • Error in command or subcommand specification. • Reconsider request contents.
• There is a command or subcommand that cannot • Send command or subcommand that can be used by the Ethernet
be used by the Ethernet module. module.
C05BH Ethernet module cannot read or write data from/to Reconsider device to read or write.
specified device.
C05CH Error in request contents. (Error related to device Correct request content, and send to Ethernet module again.
specification, such as reading or writing by bit unit (Subcommand correction, etc.)
for word device, etc.)
C05EH The communication time between the Ethernet • Increase the monitor timer setting.
module and PLC CPU exceeds the Ethernet monitor • Check the connection between the CPU and Ethernet module.
timer setting.
C05FH There is a request that cannot be executed for the • Correct network No., request station No., request destination module
target CPU module. I/O No., or request destination module station No.
• Correct contents of write request and/or read request.
C060H Error in request contents. (Error in specification of Correct request content, and send to Ethernet module again. (Data
data for bit device, etc.) correction, etc.)
C061H Request data length does not match the number of After reviewing and correcting the content of text or length of request
data in the character section (part of text). data in the header, send to Ethernet module again. 47
C06FH When the communication data code is set to • Send a request message which matches the setting of the
"Binary", a request message of ASCII is received. communication data code.
(Error history of this error code is registered but no • Change the communication data code to match the request
error response returns.) message.
C0D8H The number of specified blocks exceeds the range. Correct the specified value of for the number of blocks.
47 ERROR CODES
47.4 SLMP 853
48 EVENT CODES
The following table lists events that occur in the Ethernet module.
Event Event Event Event Detected event Detailed information
code type category status Detailed Detailed Detailed
information 1 information 2 information 3
0800 System Error Minor Link-down Operation source Communication
information speed and
communication
mode
0904 System Error Minor Socket communication sending failure Operation source
information
1080 System Error Major ROM write count error Number of times
information*1
1810 System Error Minor IP address change fails
1811 System Error Minor Flash memory write error (EtherNet/IP
parameter)
1812 System Error Minor FTP response send timeout (EtherNet/
IP parameter transfer)
1852 System Error Minor Out-of-range setting error Buffer memory Failure
information information
1900 System Error Minor Flash memory check error (IP address
change function sector)
1901 System Error Minor Flash memory check error (Total
number sector of writes to memory
Flash ROM)
1902 System Error Minor Flash memory check error (Flash
memory test sector)
1903 System Error Minor Flash memory check error (TCP
Inactivity Timeout sector)
1904 System Error Minor Flash memory check error (EtherNet/IP
parameter sector)
1E10 System Error Minor EtherNet/IP communication error Failure
information
1E11 System Error Minor EtherNet/IP communication error
1E12 System Error Minor EtherNet/IP communication error
1E13 System Error Minor EtherNet/IP communication error
1E14 System Error Minor EtherNet/IP communication error
1F00 System Error Minor MELSOFT connection error
2160 System Error Moderate IP address duplication detection Failure
information
2C80 System Error Moderate Receive parameter sum value error Failure
information
2C81 System Error Moderate Receive parameter data error Failure
information
2C82 System Error Moderate Divided parameter receive error Failure
information
2CF0 System Error Moderate Ethernet module WDT error occurs Failure
information
2DA0 System Error Moderate Connection setting parameter (Error in Parameter Failure
the number of connection setting) information*2 information
2DA1 System Error Moderate Connection setting parameter Parameter Failure
(Connection number error) information*2 information
2DA2 System Error Moderate Connection setting parameter Parameter Failure
(Communication destination information*2 information
communication method error)
2DA3 System Error Moderate Connection setting parameter (Protocol Parameter Failure
system error) information*2 information
48 EVENT CODES
854
Event Event Event Event Detected event Detailed information
code type category status Detailed Detailed Detailed
information 1 information 2 information 3
2DA4 System Error Moderate Connection setting parameter (Open Parameter Failure
system error) information*2 information
2DA5 System Error Moderate Connection setting parameter (Fixed Parameter Failure
buffer transmitting method error) information*2 information
2DA6 System Error Moderate Connection setting parameter (IP Parameter Failure
address (IPv4) error) information*2 information
2DA7 System Error Moderate Connection setting parameter (IP Parameter Failure
address (IPv6) error) information*2 information
2DA8 System Error Moderate Connection setting parameter Parameter Failure
(Existence confirmation specification information*2 information
error)
2DA9 System Error Moderate Connection setting parameter Parameter Failure
(Communication data code error) information*2 information
2DAA System Error Moderate Connection setting parameter (Error in Parameter Failure
specification of writing during running) information*2 information
2DAB System Error Moderate Connection setting parameter own Parameter
node port number error information
2DB0 System Error Moderate Request data error Failure
information
3030 System Error Moderate Specific code error
3040 System Error Moderate Firmware update file version error
3041 System Error Moderate Failure in verification of firmware
update file integrity
3042 System Error Moderate Failure in acquisition of firmware
48 EVENT CODES
855
Event Event Event Event Detected event Detailed information
code type category status Detailed Detailed Detailed
information 1 information 2 information 3
306C System Error Moderate The consecutive number of timeouts to Parameter
disconnection detection is outside the information*2
range. (Configuration parameter
according to group)
306D System Error Moderate The IP address form is outside the Parameter
range. (IP address setting parameter) information*2
306E System Error Moderate The IP address (IPv4) is outside the Parameter
range. (IP address setting parameter) information*2
306F System Error Moderate The subnet mask is outside the range. Parameter
(IP address setting parameter) information*2
3073 System Error Moderate The gateway address (IPv4) is outside Parameter
the range. (Gateway address setting information*2
parameter)
3074 System Error Moderate The subnet mask is outside the range. Parameter
(Gateway address setting parameter) information*2
3082 System Error Moderate The timer change is outside the Parameter
specified range. (Data communication information*2
timer setting parameter)
3085 System Error Moderate The destination alive check start Parameter
interval timer is outside the range. information*2
(Data communication timer setting
parameter)
3086 System Error Moderate The start interval timer unit is outside Parameter
the specified range. (Data information*2
communication timer setting
parameter)
3087 System Error Moderate The destination alive check interval Parameter
timer is outside the range. (Data information*2
communication timer setting
parameter)
3088 System Error Moderate The interval timer unit is outside the Parameter
specified range. (Data communication information*2
timer setting parameter)
3089 System Error Moderate The destination alive check resend Parameter
count is outside the range. (Data information*2
communication timer setting
parameter)
3094 System Error Moderate The number of retries is outside the Parameter
range. (Data communication timer information*2
setting parameter)
3095 System Error Moderate The number of target IP address setting Parameter
is outside the range. (IP filter settings) information*2
3096 System Error Moderate IP address 1 is outside the range. (IP Parameter
filter settings) information*2
3097 System Error Moderate IP address 2 is outside the range. (IP Parameter
filter settings) information*2
3098 System Error Moderate IP address 1 >= IP address 2 error (IP Parameter
filter settings) information*2
3099 System Error Moderate The number of excluded IP address Parameter
setting is outside the range. (IP filter information*2
settings)
309A System Error Moderate The target IP address setting number is Parameter
outside the range. (IP filter settings) information*2
309B System Error Moderate The excluded IP address number is Parameter
outside the range. (IP filter settings) information*2
309C System Error Moderate The excluded IP address is outside the Parameter
range. (IP filter settings) information*2
309D System Error Moderate Target module support error (IP Parameter
address settings parameter) information*2
309E System Error Moderate Target module support error (Gateway Parameter
address setting parameter) information*2
48 EVENT CODES
856
Event Event Event Event Detected event Detailed information
code type category status Detailed Detailed Detailed
information 1 information 2 information 3
309F System Error Moderate The gateway address (IPv6) is outside Parameter
the range. (Gateway address setting information*2
parameter)
30A8 System Error Moderate The total number of occupied stations is Parameter
outside the range. (Configuration information*2
setting parameter)
30A9 System Error Moderate The master station and remote station Parameter
IP addresses match (Configuration information*2
setting parameter)
3CF1 System Error Major BINT disconnection detection timeout Failure
error information
3E30 System Error Major The fixed memory block acquisition/ Failure
release ID number is invalid. information
3E31 System Error Major Fixed memory block acquisition/release Failure
context error information
3E32 System Error Major Error in forced cancellation of waiting Failure
for variable memory block acquisition/ information
release
3E33 System Error Major Error in forced cancellation of waiting Failure
due to reset of fixed memory block information
acquisition/release object
3E34 System Error Major Fixed memory block acquisition/release Failure
parameter error information
3E35 System Error Major The variable memory block acquisition/ Failure
release ID number is invalid information
3E36 System Error Major Variable memory block acquisition/
release context error
Failure
information
48
3E37 System Error Major Error in forced cancellation of waiting Failure
for variable memory block acquisition/ information
release
3E38 System Error Major Error in forced cancellation of waiting Failure
due to reset of variable memory block information
acquisition/release object
3E39 System Error Major Variable memory block acquisition/ Failure
release parameter error information
3E3A System Error Major E-mail box transmitting/receiving Failure
parameter error information
3E3B System Error Major The e-mail box transmitting/receiving Failure
ID number is invalid information
3E3C System Error Major E-mail box transmitting/receiving Failure
context error information
3E3D System Error Major Error in forced cancellation of waiting Failure
for e-mail box transmitting/receiving information
3E3E System Error Major Semaphore acquisition/release Failure
parameter error information
3E3F System Error Major Invalid semaphore acquisition/release Failure
ID number information
3E40 System Error Major Semaphore acquisition/release context Failure
error information
3E41 System Error Major Semaphore acquisition/release Failure
queueing overflow information
3E42 System Error Major Error in forced cancellation of waiting Failure
for semaphore acquisition/release information
3E50 System Error Major RAM check error
3E51 System Error Major Sum check code error
3E52 System Error Major Flash memory test access error
3E53 System Error Major Flash memory test verification error
3E54 System Error Major Buffer memory access error
3E55 System Error Major BusAsic register read error
48 EVENT CODES
857
Event Event Event Event Detected event Detailed information
code type category status Detailed Detailed Detailed
information 1 information 2 information 3
3E56 System Error Major Factory test mode error
3E60 to System Error Major MPU error Failure
3E63 information
3F92 System Error Major Memory error Failure
information
3FA1 System Error Major Memory error Failure
information
C050 System Error Minor Ethernet communication error Parameter
information
C051 System Error Minor Ethernet communication error Parameter
information
C052 System Error Minor Ethernet communication error Parameter
information
C053 System Error Minor Ethernet communication error Parameter
information
C054 System Error Minor Ethernet communication error Parameter
information
C056 System Error Minor Ethernet communication error Parameter
information
C057 System Error Minor Ethernet communication error Parameter
information
C058 System Error Minor Ethernet communication error Parameter
information
C059 System Error Minor Ethernet communication error Parameter
information
C05B System Error Minor Ethernet communication error Parameter
information
C05C System Error Minor Ethernet communication error Parameter
information
C05E System Error Minor Ethernet communication error Parameter
information
C05F System Error Minor Ethernet communication error Parameter
information
C060 System Error Minor Ethernet communication error Parameter
information
C061 System Error Minor Ethernet communication error Parameter
information
C06F System Error Minor Ethernet communication error Parameter
information
C0D8 System Error Minor Ethernet communication error Parameter
information
48 EVENT CODES
858
APPENDICES
Appendix 1 List of Special Device Applications and
Assignments
For special relays and special registers other than described below, refer to MELSEC iQ-F FX5 User's Manual
(Application).
Special relays
R: Read only, R/W: Read/write
Device No. Name Description R/W
*1
SM1392 FTP client connection status This relay turns on when the connection with the FTP server is established. This relay turns off R
when the connection with the FTP server is cut off.
SM8492 IP address storage area write Writes IP address setting stored in SD8492 to SD8497 to IP address storage area when this R/W
request device turns from OFF to ON.
SM8493 IP address storage area write • Turns ON when writing to IP address storage area completes or fails. R
completed • Turns OFF when IP address storage area write request (SM8492) turns from ON to OFF.
SM8494 IP address storage area write • Turns ON when writing to IP address storage area fails. R
error • Turns ON if there is a problem in contents of IP address storage area, when PLC power
supply is turned from OFF to ON.
• Turns OFF when IP address storage area write request (SM8492) turns from ON to OFF.
SM8495 IP address storage area clear Contents of IP address storage area are cleared when this device turns from OFF to ON. R/W
request
SM8496 IP address storage area clear • Turns ON when clearing of IP address storage area completes or fails. R
completed • Turns OFF when IP address storage area clear request (SM8495) turns from ON to OFF.
SM8497 IP address storage area clear • Turns ON when clearing of IP address storage area fails. R
error • Turns OFF when IP address storage area clear request (SM8495) turns from ON to OFF.
SM8498 IP address change function Turns ON when IP address is changed by IP address change function. R A
enable flag
Special registers
R: Read only, R/W: Read/write
Device No. Name Description R/W
SD8492 IP address setting (Low- • Stores IP address to be set when using IP address (low-order) change function. R/W
order) • Becomes 0 when writing to IP address storage area is completed normally.
SD8493 IP address setting (High- • Stores IP address to be set when using IP address (high-order) change function. R/W
order) • Becomes 0 when writing to IP address storage area is completed normally.
SD8494 Subnet mask setting (Low- • Stores subnet mask (low-order) to be set when using IP address change function. R/W
order) • Becomes 0 when writing to IP address storage area is completed normally.
SD8495 Subnet mask setting (High- • Stores subnet mask (high-order) to be set when using IP address change function. R/W
order) • Becomes 0 when writing to IP address storage area is completed normally.
SD8496 Default gateway IP address • Stores default gateway IP address (low-order) to be set when using IP address change R/W
setting (Low-order) function.
• Becomes 0 when writing to IP address storage area is completed normally.
SD8497 Default gateway IP address • Stores default gateway IP address (high-order) to be set when using IP address change R/W
setting (High-order) function.
• Becomes 0 when writing to IP address storage area is completed normally.
SD8498 IP address storage area write Stores error codes if writing to IP address storage area fails. R
error code
SD8499 IP address storage area clear Stores error codes if clearing of IP address storage area fails. R
error code
SD10050 IP address (Low-order) Lower part of the IP address. R
SD10051 IP address (High-order) Higher part of the IP address. R
SD10060 Subnet mask (Low-order) Lower part of the subnet mask setting value. R
APPX
Appendix 1 List of Special Device Applications and Assignments 859
Device No. Name Description R/W
SD10061 Subnet mask (High-order) Higher part of the subnet mask setting value. R
SD10064 Default gateway IP address Lower part of the default gateway IP address setting value. R
(Low-order)
SD10065 Default gateway IP address Higher part of the default gateway IP address setting value. R
(High-order)
SD10074 to Host MAC address MAC address (3 words in total) is stored. R
SD10076
SD10082 Communication speed Communication speed setting is stored. R
setting 0000H: Automatic Negotiation
0002H: 100Mbps/Half-Duplex
0003H: 100Mbps/Full-Duplex
0004H: 10Mbps/Half-Duplex
0005H: 10Mbps/Full-Duplex
SD10084 MELSOFT connection TCP MELSOFT connection TCP port number is stored. R
port number
SD10086 MELSOFT direct connection MELSOFT direct connection port number is stored. R
port number
SD10130 to Error code Error code of built-in Ethernet (connection 1 to connection 8) is stored. R
SD10137 For details on error code, refer to Page 815 ERROR CODES.
SD10251 Same IP address state Same IP address state is stored. R
storage area [b0]: Same IP address detection flag
0: No same IP address
1: Same IP address
SD10252 to MAC address of the already Stores the MAC address of the station, which was connected to the network earlier, in the R
SD10254 connected station station with duplicated IP address.
SD10252: 5th byte, 6th byte of the MAC address
SD10253: 3rd byte, 4th byte of the MAC address
SD10254: 1st byte, 2nd byte of the MAC address
"FFFFFFFFFFFFH" is stored in the station that has been already connected to the network.
SD10255 to MAC address of the station Stores the MAC address of the station with duplicated IP address in the station which was R
SD10257 connected later connected earlier to the network.
SD10255: 5th byte, 6th byte of the MAC address
SD10256: 3rd byte, 4th byte of the MAC address
SD10257: 1st byte, 2nd byte of the MAC address
"FFFFFFFFFFFFH" is stored in the station with duplicated IP address.
SD10270 Remote password Locked status of the remote password for each connection R
information remote password [b0] to [b7]: Connection No.1 to No.8
locked status (Connection 0: Unlocked status/No remote password setting
No.1 to 8) 1: Locked status
SD10271 Remote password The locked status of the remote password of the system port. R
information remote password [b2]: MELSOFT application communication port (TCP)
locked status (System port) [b3]: Direct connection with MELSOFT
[b4]: FTP transmission port
0: Unlocked status/No remote password setting
1: Locked status
SD10290 Time setting function Stores the operation result of the time setting function. R
operation result 0000H: Unexecuted
0001H: Success
FFFFH: Failure
SD10291 Time setting function The year (A.D.) which the time setting function is executed is stored in a binary code. R
execution time (Year) When the communication fails, this device is not updated from the value stored previously.
SD10292 Time setting function The month which the time setting function is executed is stored in a binary code. R
execution time (Month) When the communication fails, this device is not updated from the value stored previously.
SD10293 Time setting function The day which the time setting function is executed is stored in a binary code. R
execution time (Day) When the communication fails, this device is not updated from the value stored previously.
SD10294 Time setting function The hour which the time setting function is executed is stored in a binary code. R
execution time (Hour) When the communication fails, this device is not updated from the value stored previously.
SD10295 Time setting function The minute which the time setting function is executed is stored in a binary code. R
execution time (Minute) When the communication fails, this device is not updated from the value stored previously.
SD10296 Time setting function The second which the time setting function is executed is stored in a binary code. R
execution time (Second) When the communication fails, this device is not updated from the value stored previously.
APPX
860 Appendix 1 List of Special Device Applications and Assignments
Device No. Name Description R/W
SD10297 Time setting function The day of the week which the time setting function is executed is stored in a binary code. R
execution time (Day of the 0: Sunday
week) 1: Monday
2: Tuesday
3: Wednesday
4: Thursday
5: Friday
6: Saturday
When the communication fails, this device is not updated from the value stored previously.
SD10298 Time setting function required A time required from sending the message to the SNTP server to receiving the response and R
response time setting the time to the CPU module is stored.
0000H to FFFEH (Unit: ms)
If the value exceeds the above range, all the values are stored as FFFFH.
When the communication fails, this device is not updated from the value stored previously.
SD10299 Time setting function (SNTP Executes the time setting function when b0 is turned on. (Only when the time setting (SNTP R/W
client) execution client) is set to "Use" in the GX Works3.)
The function is not executed if b0 is turned on during execution of the time setting function.
SD10320 to Unlock failure count Continuous unlock failure counts are stored. R
SD10327 [SD10320] to [SD10327]: Connection No.1 to No.8
SD10338 MELSOFT connection TCP Continuous unlock failure counts of the MELSOFT connection (via hub) are stored. R
port continuous unlock failure
count
SD10339 FTP transmission port (TCP/ FTP transmission port (TCP/IP) continuous unlock failure counts are stored. R
IP) continuous unlock failure
count
SD10340 Direct connection with Continuous unlock failure counts of the MELSOFT connection (direct connection) are stored. R
MELSOFT continuous unlock
failure count
SD10350, SD10351 Simple CPU communication Request contact to start data transmission when the communication setting for the simple R/W
start request (for CPU communication is "When requested"
communication at request) SD10350[b0] to [b15]: Setting No.1 to Setting No.16*1
SD10351[b0] to [b15]: Setting No.17 to Setting No.32*2
01: Requested (start request)
This device does not automatically turn off at the communication completion, and thus, to start
the communications again, the device must be turned off and on.
A
SD10352, SD10353 Simple PLC Communication Request contact to stop data transmission when the communication setting for the simple R/W
stop request CPU communication is "Fixed"
SD10352[b0] to [b15]: Setting No.1 to Setting No.16
SD10353[b0] to [b15]: Setting No.17 to Setting No.32*2
01: Requested (stop request)
10: Completed (stop completion)
SD10354, SD10355 Simple PLC Communication Request contact to restart data transmission when the communication setting for the simple R/W
restart request CPU communication is "Fixed"
SD10354[b0] to [b15]: Setting No.1 to Setting No.16
SD10355[b0] to [b15]: Setting No.17 to Setting No.32*2
01: Requested (restart request)
10: Completed (restart completion)
SD10356, SD10357 Simple PLC Communication The data transmission/reception status of the simple CPU communication is stored for each R
execution state setting number.
SD10356[b0] to [b15]: Setting No.1 to Setting No.16
SD10357[b0] to [b15]: Setting No.17 to Setting No.32*2
0: Communication stop (function not used)
1: Communicating
SD10358, SD10359 Simple PLC Communication The preparation completion status of the simple CPU communication is stored for each setting R
ready flag number.
SD10358[b0] to [b15]: Setting No.1 to Setting No.16
SD10359[b0] to [b15]: Setting No.17 to Setting No.32*2
0: Not ready (function not used)
1: Ready
APPX
Appendix 1 List of Special Device Applications and Assignments 861
Device No. Name Description R/W
SD10380 to Simple CPU communication The simple CPU communication status is stored. R
SD10411 status SD10380: Setting No.1 to SD10395: Setting No.16
SD10396: Setting No.17 to SD10411: Setting No.32*2
■When the communication setting is "Fixed"
0H: Unset
1H: Preparing
3H: Communicating
4H: Stopped
5H: Retry being executed
6H: Monitoring
AH: Communications impossible
■When the communication setting is "When requested"
0H: Unset
1H: Preparing
2H: Waiting for request
3H: Communicating
5H: Retry being executed
SD10412 to Simple PLC Communication The cause of the error detected in the simple CPU communication is stored. R
SD10443 error code SD10412: Setting No.1 to SD10427: Setting No.16
SD10428: Setting No.17 to SD10443: Setting No.32*2
0: No error (function not used)
CFB4H: An abnormal response was received when the communication target is other
company's PLC, a MODBUS/TCP-compatible device or MELSEC FX3 (Ethernet Block/
Adapter).
Other than above: Error code
The value is cleared to 0 with a clear request from the engineering tool.
SD10444 and Simple PLC Communication If "Fixed" is set for communication setting, the current value of the execution interval is stored. R
SD10475 execution interval SD10444: Setting No.1 to SD10459: Setting No.16
SD10460: Setting No.17 to SD10475: Setting No.32*2
0: Unset (function not used), communications impossible
Other than 0: Execution Interval (unit: ms)
SD10476 to Simple CPU communication If the communication target during the simple CPU communication is other company's PLC, a R
SD10507 error response code MODBUS/TCP-compatible device or MELSEC-FX3 (Ethernet Block/Adapter), error factors
detected will be stored.
SD10476: Setting No.1 to SD10491: Setting No.16
SD10492: Setting No.17 to SD10507: Setting No.32*2
0: When there is no error or the communication target is a MELSEC PLC or an SLMP-
compatible device.
Other than 0: Error codes (refer to individual devices' manuals)
SD10680 Open completion signal Open completion signal for each connection. R
[b0] to [b7]: Connection No.1 to No.8
0: Closed or not open
1: Open completed
SD10681 Open request signal Open request signal for each connection. R
[b0] to [b7]: Connection No.1 to No.8
0: No open request
1: Requesting open
SD10682 Socket communications Socket communication receive state signal for each connection. R
receive status signal [b0] to [b7]: Connection No.1 to No.8
0: Data not received
1: Data reception completed
SD10683 Initial status Stores the status of the initial processing. R
[b0]: Initial normal completion status
0:
1: Initialization normal completion
[b1]: Initial abnormal completion status
0:
1: Initialization abnormal completion
SD10692 Predefined protocol ready Stores the ready status of the protocol setting data. R
0:
1: Ready
SD10710 Predefined protocol setting When a protocol setting data error is detected, stores the protocol number where the error was R
data check area protocol detected.
number Protocol is checked in order from smallest protocol number. The protocol number where an
error was detected first is stored.
0: No error detected
1 to 64: Protocol No.
65535: Not identifiable*3
APPX
862 Appendix 1 List of Special Device Applications and Assignments
Device No. Name Description R/W
SD10711 Predefined protocol setting 0 is stored if an error is detected in the packet setting or element setting. R
data check area setting type 1 is stored if an error is detected in the protocol detailed setting. (Valid when protocol number
value is 1 to 64)
0: Packet setting or element setting
1: Configuring detailed setting of protocols
65535: Not identifiable*3
SD10712 Predefined protocol setting When an error is detected in the protocol setting data, stores the packet number that detected R
data check area packet the error.
number The packets are checked in order of send packets and then receive packets (expected
packets) from smallest number. The packet number where an error was detected first is
stored. (Valid when setting type value is 0)
0: Send packet
1 to 16: Receive packet number
65535: Not identifiable*3
SD10713 Predefined protocol setting When an error is detected in the protocol setting data, stores the element number where the R
data check area protocol error was detected.
number The elements are checked in order of smallest element number. The element number where
an error was detected first is stored. (Valid when setting type value is 0)
1 to 32: Element No.
65535: Not identifiable*3
SD10714 Number of registered Stores the protocol number of the registered protocol setting data. R
predefined protocols 0 is stored if the protocol setting data check result is abnormal.
0: No registration
1 to 64: Number of registrations
SD10722 Predefined protocol Whether protocol setting data is registered or not is stored. R
registration (Protocol All bits are set to 0 if the protocol setting data check result is abnormal.
numbers 1 to 16) 0: No registration
1: Registered
Protocol numbers 1 to 16: b0 to b15
SD10723 Predefined protocol Whether protocol setting data is registered or not is stored. R
registration (Protocol All bits are set to 0 if the protocol setting data check result is abnormal.
numbers 17 to 32) 0: No registration
1: Registered
Protocol numbers 17 to 32: b0 to b15
SD10724 Predefined protocol Whether protocol setting data is registered or not is stored. R
A
registration (Protocol All bits are set to 0 if the protocol setting data check result is abnormal.
numbers 33 to 48) 0: No registration
1: Registered
Protocol numbers 33 to 48: b0 to b15
SD10725 Predefined protocol Whether protocol setting data is registered or not is stored. R
registration (Protocol All bits are set to 0 if the protocol setting data check result is abnormal.
numbers 49 to 64) 0: No registration
1: Registered
Protocol numbers 49 to 64: b0 to b15
SD10740 Connection No.1 protocol Stores the status of the protocol being executed at connection No.1. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10742 Connection No.1 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10743 Connection No.1 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10744 Connection No.1 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10745 Connection No.1 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10746 Connection No.1 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
Appendix 1 List of Special Device Applications and Assignments 863
Device No. Name Description R/W
SD10747 Connection No.1 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10748 Connection No.1 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10749 Connection No.1 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10750 Connection No.1 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10751 Connection No.1 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10752 Connection No.1 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10753 Connection No.1 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10754 Connection No.1 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10755 Connection No.1 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10756 Connection No.1 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10757 Connection No.1 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15)
SD10758 Connection No.1 protocol Stores the number of protocol executions in Connection No.1. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10759 Connection No.1 protocol Cancels the protocol executed in connection No.1. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
SD10760 Connection No.2 protocol Stores the status of the protocol being executed at connection No.2. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10762 Connection No.2 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10763 Connection No.2 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10764 Connection No.2 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10765 Connection No.2 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10766 Connection No.2 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
864 Appendix 1 List of Special Device Applications and Assignments
Device No. Name Description R/W
SD10767 Connection No.2 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10768 Connection No.2 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10769 Connection No.2 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10770 Connection No.2 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10771 Connection No.2 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10772 Connection No.2 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10773 Connection No.2 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10774 Connection No.2 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10775 Connection No.2 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10776 Connection No.2 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10777 Connection No.2 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15) A
SD10778 Connection No.2 protocol Stores the number of protocol executions in connection No.2. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10779 Connection No.2 protocol Cancels the protocol executed in connection No.2. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
SD10780 Connection No.3 protocol Stores the status of the protocol being executed at connection No.3. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10782 Connection No.3 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10783 Connection No.3 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10784 Connection No.3 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10785 Connection No.3 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10786 Connection No.3 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
Appendix 1 List of Special Device Applications and Assignments 865
Device No. Name Description R/W
SD10787 Connection No.3 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10788 Connection No.3 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10789 Connection No.3 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10790 Connection No.3 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10791 Connection No.3 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10792 Connection No.3 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10793 Connection No.3 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10794 Connection No.3 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10795 Connection No.3 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10796 Connection No.3 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10797 Connection No.3 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15)
SD10798 Connection No.3 protocol Stores the number of protocol executions in connection No.3. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10799 Connection No.3 protocol Cancels the protocol executed in connection No.3. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
SD10800 Connection No.4 protocol Stores the status of the protocol being executed at connection No.4. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10802 Connection No.4 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10803 Connection No.4 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10804 Connection No.4 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10805 Connection No.4 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10806 Connection No.4 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
866 Appendix 1 List of Special Device Applications and Assignments
Device No. Name Description R/W
SD10807 Connection No.4 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10808 Connection No.4 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10809 Connection No.4 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10810 Connection No.4 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10811 Connection No.4 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10812 Connection No.4 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10813 Connection No.4 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10814 Connection No.4 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10815 Connection No.4 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10816 Connection No.4 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10817 Connection No.4 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15) A
SD10818 Connection No.4 protocol Stores the number of protocol executions in connection No.4. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10819 Connection No.4 protocol Cancels the protocol executed in connection No.4. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
SD10820 Connection No.5 protocol Stores the status of the protocol being executed at connection No.5. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10822 Connection No.5 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10823 Connection No.5 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10824 Connection No.5 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10825 Connection No.5 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10826 Connection No.5 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
Appendix 1 List of Special Device Applications and Assignments 867
Device No. Name Description R/W
SD10827 Connection No.5 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10828 Connection No.5 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10829 Connection No.5 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10830 Connection No.5 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10831 Connection No.5 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10832 Connection No.5 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10833 Connection No.5 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10834 Connection No.5 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10835 Connection No.5 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10836 Connection No.5 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10837 Connection No.5 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15)
SD10838 Connection No.5 protocol Stores the number of protocol executions in connection No.5. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10839 Connection No.5 protocol Cancels the protocol executed in connection No.5. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
SD10840 Connection No.6 protocol Stores the status of the protocol being executed at connection No.6. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10842 Connection No.6 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10843 Connection No.6 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10844 Connection No.6 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10845 Connection No.6 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10846 Connection No.6 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
868 Appendix 1 List of Special Device Applications and Assignments
Device No. Name Description R/W
SD10847 Connection No.6 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10848 Connection No.6 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10849 Connection No.6 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10850 Connection No.6 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10851 Connection No.6 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10852 Connection No.6 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10853 Connection No.6 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10854 Connection No.6 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10855 Connection No.6 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10856 Connection No.6 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10857 Connection No.6 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15) A
SD10858 Connection No.6 protocol Stores the number of protocol executions in connection No.6. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10859 Connection No.6 protocol Cancels the protocol executed in connection No.6. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
SD10860 Connection No.7 protocol Stores the status of the protocol being executed at connection No.7. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10862 Connection No.7 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10863 Connection No.7 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10864 Connection No.7 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10865 Connection No.7 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10866 Connection No.7 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
Appendix 1 List of Special Device Applications and Assignments 869
Device No. Name Description R/W
SD10867 Connection No.7 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10868 Connection No.7 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10869 Connection No.7 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10870 Connection No.7 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10871 Connection No.7 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10872 Connection No.7 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10873 Connection No.7 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10874 Connection No.7 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10875 Connection No.7 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10876 Connection No.7 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10877 Connection No.7 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15)
SD10878 Connection No.7 protocol Stores the number of protocol executions in connection No.7. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10879 Connection No.7 protocol Cancels the protocol executed in connection No.7. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
SD10880 Connection No.8 protocol Stores the status of the protocol being executed at connection No.8. R
execution status 0: Unexecuted
1: Waiting for transmission
2: Sending
3: Waiting for data reception
4: Receiving
5: Completed
SD10882 Connection No.8 received Stores the verification results of receive packet No.1. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.1) The cause of mismatch (verification result code) (b8 to b15)
SD10883 Connection No.8 received Stores the verification results of receive packet No.2. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.2) The cause of mismatch (verification result code) (b8 to b15)
SD10884 Connection No.8 received Stores the verification results of receive packet No.3. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.3) The cause of mismatch (verification result code) (b8 to b15)
SD10885 Connection No.8 received Stores the verification results of receive packet No.4. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.4) The cause of mismatch (verification result code) (b8 to b15)
SD10886 Connection No.8 received Stores the verification results of receive packet No.5. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.5) The cause of mismatch (verification result code) (b8 to b15)
APPX
870 Appendix 1 List of Special Device Applications and Assignments
Device No. Name Description R/W
SD10887 Connection No.8 received Stores the verification results of receive packet No.6. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.6) The cause of mismatch (verification result code) (b8 to b15)
SD10888 Connection No.8 received Stores the verification results of receive packet No.7. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.7) The cause of mismatch (verification result code) (b8 to b15)
SD10889 Connection No.8 received Stores the verification results of receive packet No.8. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.8) The cause of mismatch (verification result code) (b8 to b15)
SD10890 Connection No.8 received Stores the verification results of receive packet No.9. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.9) The cause of mismatch (verification result code) (b8 to b15)
SD10891 Connection No.8 received Stores the verification results of receive packet No.10. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.10) The cause of mismatch (verification result code) (b8 to b15)
SD10892 Connection No.8 received Stores the verification results of receive packet No.11. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.11) The cause of mismatch (verification result code) (b8 to b15)
SD10893 Connection No.8 received Stores the verification results of receive packet No.12. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.12) The cause of mismatch (verification result code) (b8 to b15)
SD10894 Connection No.8 received Stores the verification results of receive packet No.13. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.13) The cause of mismatch (verification result code) (b8 to b15)
SD10895 Connection No.8 received Stores the verification results of receive packet No.14. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.14) The cause of mismatch (verification result code) (b8 to b15)
SD10896 Connection No.8 received Stores the verification results of receive packet No.15. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.15) The cause of mismatch (verification result code) (b8 to b15)
SD10897 Connection No.8 received Stores the verification results of receive packet No.16. R
data verification result Element No. where the verification result did not match (b0 to b7)
(receive packet No.16) The cause of mismatch (verification result code) (b8 to b15) A
SD10898 Connection No.8 protocol Stores the number of protocol executions in connection No.8. R
execution count 0: Protocol not executed
1 to 65535: Number of executions
SD10899 Connection No.8 protocol Cancels the protocol executed in connection No.8. R/W
cancellation specification 0: No cancellation instruction
1: Cancel request
2: Cancellation completed
*1 Only FX5UJ/FX5U/FX5UC CPU module is supported. For the compatible versions of each type, refer to Page 935 Added and
Changed Functions.
*2 Only FX5U/FX5UC CPU module is supported. For the compatible versions of each type, refer to Page 935 Added and Changed
Functions.
*3 The setting value may be unidentifiable (65535) in the following cases.
When a setting that cannot be detected by the current CPU module version is written
When protocol setting data is broken (hardware failure)
APPX
Appendix 1 List of Special Device Applications and Assignments 871
Appendix 2 List of Buffer Memory Applications and
Assignments
The buffer memory is used to exchange data between the Ethernet module and the CPU module or external devices. Buffer
memory values are set to their defaults (initial values) when the system is powered off or the CPU module is reset.
For details on the listed buffer memories, as well as the buffer memories not described below, refer to following manuals.
MELSEC iQ-F FX5-ENET User's Manual
MELSEC iQ-F FX5-ENET/IP User's Manual
MELSEC iQ-F FX5 User's Manual (BACnet)
R: Read only, R/W: Read/write
Buffer memory No. Name Description R/W
Decimal Hexadecimal
29 1DH Latest error code The latest error code that has occurred in Ethernet module is stored. R
For details on error code, refer to Page 815 ERROR CODES.
30 1EH Module information This area stores the module information of Ethernet module. R
• 69A0H: FX5-ENET
• 69C1H: FX5-ENET/IP
31 1FH Firmware version This area stores the firmware version of Ethernet module. R
50 32H IP address setting (Low- • Stores IP address to be set when using IP address (low-order) change function. R/W
order) • Becomes 0 when writing to IP address storage area is completed normally.
51 33H IP address setting (High- • Stores IP address to be set when using IP address (high-order) change function. R/W
order) • Becomes 0 when writing to IP address storage area is completed normally.
52 34H Subnet mask pattern setting • Stores subnet mask pattern (low-order) to be set when using IP address change R/W
(Low-order) function.
• Becomes 0 when writing to IP address storage area is completed normally.
53 35H Subnet mask pattern setting • Stores subnet mask pattern (high-order) to be set when using IP address change R/W
(High-order) function.
• Becomes 0 when writing to IP address storage area is completed normally.
54 36H Default router IP address • Stores default router IP address (low-order) to be set when using IP address R/W
setting (Low-order) change function.
• Becomes 0 when writing to IP address storage area is completed normally.
55 37H Default router IP address • Stores default router IP address (high-order) to be set when using IP address R/W
setting (High-order) change function.
• Becomes 0 when writing to IP address storage area is completed normally.
56 38H IP address storage area Specify whether to write the stored values of IP address setting (Un\G50 to R/W
write request Un\G51), Subnet mask pattern setting (Un\G52 to Un\G53), and Default router IP
address setting (Un\G54 to Un\G55) to the IP address storage area.
0: Not write
1: Write
57 39H IP address storage area You can confirm whether or not the values are written to the IP address storage R
write status area when executing the IP address change function.
[b0]: IP address storage area write completed
0:
1: Write completed
Becomes 1 also in the case of abnormal completion.
[b1]: IP address storage area write error
0:
1: Write fails
Becomes 1 also if the data in the IP address storage area is abnormal when the
Ethernet module power is turned off and on.
58 3AH IP address storage area Specify whether to clear the data in the IP address storage area. R/W
clear request 0: Do Not Clear
1: Clear
59 3BH IP address storage area You can confirm whether or not the IP address storage area is cleared. R
clear status [b0]: IP address storage area clear completed
0:
1: Clear completed
Becomes 1 also in the case of abnormal completion.
[b1]: IP address storage area clear error
0:
1: Clear fails
APPX
872 Appendix 2 List of Buffer Memory Applications and Assignments
Buffer memory No. Name Description R/W
Decimal Hexadecimal
60 3CH IP address change function You can confirm whether or not the IP address change function is enabled. R
enable flag 0: Disabled
1: Enabled
61 3DH IP address storage area Stores error codes if writing to IP address storage area fails. R
write error code 0: Normal (no error)
1920H: IP address setting or other (Un\G50 to Un\G55) value exceeds the setting
range
62 3EH IP address storage area Stores error codes if clearing of IP address storage area fails. R
clear error code 0: Normal (no error)
1921H: IP address storage area write request (Un\G56) and IP address storage
area clear request (Un\G58) were simultaneously turned off and on.
64 40H IP address (Low-order) Stores IP address (low-order) on the own station set with engineering tool. R
65 41H IP address (High-order) Stores IP address (high-order) on the own station set with engineering tool. R
74 4AH Subnet mask pattern (Low- Stores subnet mask pattern (low-order) on the own station set with engineering R
order) tool.
75 4BH Subnet mask pattern (High- Stores subnet mask pattern (high-order) on the own station set with engineering R
order) tool.
76 4CH Default gateway IP address Stores default gateway IP address (low-order) on the own station set with R
(Low-order) engineering tool.
77 4DH Default gateway IP address Stores default gateway IP address (high-order) on the own station set with R
(High-order) engineering tool.
102 to 104 66H to 68H Ethernet address (MAC This stores Ethernet address (MAC address) on the own station. R
address) Un\G102: Serial ID
Un\G103: Lower one digit of vendor ID, model ID
Un\G104: Upper two digits of vendor ID
108 to 139 6CH to 8BH Error code Stores error code of Ethernet. R
Un\G108: Connection No.1 to Un\G123: Connection No.16
Un\G124: Connection No.1 to Un\G139: Connection No.16
For details on error code, refer to Page 815 ERROR CODES.
152, 153 98H, 99H Open completion signal Open completion signal for each connection number. R
Un\G152[0] to [15]: Connection No.1 to Connection No.16
Un\G153[0] to [15]: Connection No.17 to Connection No.32
A
0: Closed or not open
1: Open completed
154, 155 9AH, 9BH Open request signal Open request signal for each connection number of socket communication. R
Un\G154[0] to [15]: Connection No.1 to Connection No.16
Un\G155[0] to [15]: Connection No.17 to Connection No.32
0: No open request
1: Requesting open
156, 157 9CH, 9DH Socket communications Socket communication receive state signal for each connection number. R
receive status signal Un\G156[0] to [15]: Connection No.1 to Connection No.16
Un\G157[0] to [15]: Connection No.17 to Connection No.32
0: Data not received
1: Data reception completed
158 9EH Initial status Stores the status of the initial processing. R
[b0]: Initial normal completion status
0:
1: Initial normal completion
[b1]: Initial abnormal completion status
0:
1: Initial abnormal completion
159 9FH Initial error code The error codes that occur during initialization are stored. R
For details on error code, refer to Page 815 ERROR CODES.
201 C9H Same IP address state Same IP address state is stored. R
storage area [b0]: Same IP address detection flag
0: No same IP address
1: Same IP address
202 to 204 CAH to CCH MAC address of the already Stores the MAC address of the station, which was connected to the network earlier, R
connected station in the station with duplicated IP address.
Un\G202: Serial ID
Un\G203: Lower one digit of vendor ID, model ID
Un\G204: Upper two digits of vendor ID
"FFFFFFFFFFFFH" is stored in the station that has been already connected to the
network.
APPX
Appendix 2 List of Buffer Memory Applications and Assignments 873
Buffer memory No. Name Description R/W
Decimal Hexadecimal
205 to 207 CDH to CFH MAC address of the station Stores the MAC address of the station with duplicated IP address in the station R
connected later which was connected earlier to the network.
Un\G205: Serial ID
Un\G206: Lower one digit of vendor ID, model ID
Un\G207: Upper two digits of vendor ID
"FFFFFFFFFFFFH" is stored in the station with duplicated IP address.
300, 301 12CH, 12DH "Communication start at When the communication setting is "requested", start of data transmission in the R/W
request" request simple CPU communication is requested.
Un\G300[0] to [15]: Setting No.1 to setting No.16
Un\G301[0] to [15]: Setting No.17 to setting No.32
0: Not requested
1: Requested
304, 305 130H, 131H Periodic communication When the communication setting is "requested", start of data transmission in the R/W
stop request simple CPU communication is requested.
Un\G304[0] to [15]: Setting No.1 to setting No.16
Un\G305[0] to [15]: Setting No.17 to setting No.32
0: Not requested
1: Requested
308, 309 134H, 135H Periodic communication When the communication setting is "requested", start of data transmission in the R/W
restart request simple CPU communication is requested.
Un\G308[0] to [15]: Setting No.1 to setting No.16
Un\G309[0] to [15]: Setting No.17 to setting No.32
0: Not requested
1: Requested
312, 313 138H, 139H Execution Status flag The data transmission/reception status of the simple CPU communication is stored. R
Un\G312[0] to [15]: Setting No.1 to setting No.16
Un\G313[0] to [15]: Setting No.17 to setting No.32
0: Unexecuted
1: Communicating
316, 317 13CH, 13DH Ready The preparation completion status of the simple CPU communication is stored. R
Un\G316[0] to [15]: Setting No.1 to setting No.16
Un\G317[0] to [15]: Setting No.17 to setting No.32
0: Not ready
1: Ready
320 to 351 140H to 15FH System area
352 to 383 160H to 17FH Simple CPU communication The simple CPU communication status is stored. R
status Un\G352: Setting No.1 to Un\G367: Setting No.16
Un\G368: Setting No.17 to Un\G383: Setting No.32
0H: Unset
1H: Preparing
2H: Waiting for request
3H: Communicating
4H: Stopped
5H: Retry being executed
6H: Monitoring
AH: Communications impossible
416 to 447 1A0H to 1BFH Simple CPU error code The cause of the error detected in the simple CPU communication is stored. R
Un\G416: Connection No.1 to Un\G431: Connection No.16
Un\G432: Connection No.17 to Un\G447: Connection No.32
For details on error code, refer to Page 815 ERROR CODES.
480 to 511 1E0H to 1FFH Abnormal response code The abnormal response code detected in the simple CPU communication is stored. R
Un\G480: Connection No.1 to Un\G495: Connection No.16
Un\G496: Connection No.17 to Un\G511: Connection No.32
544 to 575 220H to 23FH Execution interval (current The execution interval of the simple CPU communication is stored. R
value) Un\G544: Setting No.1 to Un\G559: Setting No.16
Un\G560: Setting No.17 Un\G575: Setting No.32
6400 to 1900H to 20FFH Area for simple CPU Usable as a device that can be specified for the own station in the simple CPU R/W
8447 communication communication. (Word device in units of 1 point)
APPX
874 Appendix 2 List of Buffer Memory Applications and Assignments
Appendix 3 Port Numbers Used by Ethernet-
equipped Modules
The following port numbers are used by the system and cannot be specified.
This applies to FX5U/FX5UC CPU modules.
Port No. Applications Protocol Default port
Decimal Hexadecimal status
APPX
Appendix 3 Port Numbers Used by Ethernet-equipped Modules 875
Appendix 4 Combined Use of Serial Communication
Channel specification
The same serial port cannot be used for more than one communication function.
Duplicate channel numbers cannot be specified in communication settings. If the channel number specified by the following
instruction and the channel number of another communication function are specified twice, an error may occur.
Inverter communication Non-protocol communication Predefined protocol support function
IVCK, IVDR, IVRD, IVWR, IVBWR, IVMC RS2 instruction S(P).CPRTCL instruction
instruction
If a communications error occurs, check if commands above are using the same channel.
If so, first either delete unnecessary command(s) or correct the channel number, then reset the system by turning the power
OFFON.
APPX
876 Appendix 4 Combined Use of Serial Communication
Appendix 5 Operation Image and Data Structure of
Predefined Protocol
Operation image of each communication type
Operation image of each communication type of protocol as shown below.
Send only
The specified packet is transmitted once.
FX5 Counterpart
Terminator Data area Header
CPU module device
■Normal completion
FX5 CPU module
Drive S(P).CPRTCL
instruction
Completion status
indication device (d)+1
Send packet
Completion status
indication device (d)+1
(1) (2)
Send packet
(1) Standby time
Cannot send a packet (2) Monitoring time
Counterpart device
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 877
Receive only
When data are received from the counterpart device, the process completes when the received data matches the receive
packet and the receiving process is performed. For verification mismatch, the receive data is discarded, and the CPU unit
waits for the next receive data. (Page 881 Verification operation)
Settable receive packet (expected packet) is up to 16.
Verification
FX5 CPU module mismatch Counterpart
Receive packet device
Header Data area (1)
(expected packet)
■Normal completion
FX5 CPU module
Drive S(P).CPRTCL
instruction
Completion status
indication device (d)+1
Receive packet
Verification match
Completion status
indication device (d)+1
Receive wait time
Verification
mismatch
• When variables are included in receive packet elements, variable parts are not verified.
• When more than one receive packet is specified, received data is verified with the receive packet
information of the first registered packet in the order of registration. The receive processing is performed
once received data match one of the receive packet number, and further verification is not performed.
• The receive packet number which is matched as the result of the verification is stored in the control data of
the S(P).CPRTCL instruction.
APPX
878 Appendix 5 Operation Image and Data Structure of Predefined Protocol
Send & receive
A packet is sent once, and the status changes to the data receive wait status after the transmission completes normally. Then,
data is received from the counterpart device, and the process completes when the received data matches the receive packet
and the receiving process is performed. (Page 881 Verification operation)
Settable receive packet (expected packet) is up to 16.
Verification
mismatch
Receive packet Header Data area (1)
(expected packet)
■Normal completion
FX5 CPU module
Drive S(P).CPRTCL
instruction
Completion status
indication device (d)+1
Receive wait time
Send packet Receive packet A
Verification match
Completion status
indication device (d)+1
Verification
mismatch
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 879
• When variables are included in receive packet elements, variable parts are not verified.
• When more than one receive packet is specified, received data is verified with the receive packet
information of the first registered packet in the order of registration. The receive processing is performed
once received data match one of the receive packet number, and further verification is not performed.
• The receive packet number which is matched as the result of the verification is stored in the control data of
the S(P).CPRTCL instruction.
APPX
880 Appendix 5 Operation Image and Data Structure of Predefined Protocol
Verification operation
The following shows the verification operations of receive packets (expected packets) of when receive is included in the
selected communication type.
Receive data and receive packets are compared in the receive processing, and the processing is completed when the
verification result is "matched". Note that the data section of a packet is handled as receive data in the same way as it is
handled at send operation.
Verification match
Verification standards
In the verification of receive packets, each element is judged if it is "matched" or not. The standard to judge each element as
"matched" depends on each element type. The following table lists verification standards for each element type.
Element type Verification standards
Header Judged as "matched" when the data contents are the same.
Terminator
Static data
Length Judged as "matched" when the number of digits is the same.
Non-conversion variable
Conversion variable
Check code Judged as "matched" when the result calculated based on the settings (horizontal parity, sum check, CRC-16) is
the same.
Non-verified reception Judged as "matched" when the number of digits is the same.
A
Operation performed when multiple receive packets are registered
When data is received, the verification operation is performed in order starting from the receive packet that was first
registered. The receive processing is completed when the receive packets and receive data match.
Receive packet Packet No.1 Packet No.2 Packet No.3 Packet No.16
(expected packet)
Verification Verification Verification
mismatch mismatch match
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 881
Data examples of Length
Shows the data examples of element length that can be placed in a packet.
Data example
The following is an example in the case where the calculated value of length is 258 bytes in decimal (hexadecimal: 102H).
L
4 L (1 byte) 4 4 4 (1 byte)
H
3
2 byte 4 3 4 L 3 4 2 byte
2
3 H
1 H 3 byte 4 3 2
4 byte 4 3 2 1 4 L 2 3 4 3 byte
3
2 H
4 L 1 2 3 4 4 byte
3
2
1 H
APPX
882 Appendix 5 Operation Image and Data Structure of Predefined Protocol
The send/receive image is as follows.
■When sending ■When receiving
4 L 2 byte 3 4 3 L 3 4 2 byte
3 4 H
3 byte 2 3 4
2
2 L 2 3 4 3 byte
1 H 4 byte 1 2 3 4
3
4 H
1 L 1 2 3 4 4 byte
2
3
4 H
4 L 4 byte 3 4 1 2 3 L 1 2 3 4 4 byte
A
3 4
2 1
1 H 2 H
Calculating range
The following shows specification examples of the calculating range of Length.
Packet Packet Packet Packet Packet Packet
element 1 element 2 element 3 element n-2 element n-1 element n
Packet format Header Length Static data Variable Terminator Check code
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 883
Data examples of Non-conversion Variable
Shows the data examples of element non-conversion variable that can be placed in a packet.
Data example 1
The following table shows data to be stored in the data storage area when the string of send data is 'ABCD' (ASCII code: A =
41H, B = 42H, C = 43H, and D = 44H).
Item Description
Fixed Length/Variable Length Fixed Length
Data Length/Maximum Data Length 4 bytes
Unit of Stored Data Lower Byte + Upper Byte Lower Bytes Only
Byte Swap Disable Enable Disable Enable
Data Storage Area Specification D0
Data to be stored in data storage area D0=4241H D0=4142H D0=0041H D0=0042H
D1=4443H D1=4344H D1=0042H D1=0041H
D2=0043H D2=0044H
D3=0044H D3=0043H
Data example 2
The following table shows data to be stored in the data storage area when the string of send data is 'EFG' (ASCII code: E =
45H, F = 46H, and G = 47H).
Item Description
Fixed Length/Variable Length Fixed Length
Data Length/Maximum Data Length 3 bytes
Unit of Stored Data Lower Byte + Upper Byte Lower Bytes Only
Byte Swap Disable Enable Disable Enable
Data Storage Area Specification D0
Data to be stored in data storage area D0=4645H D0=4546H D0=0045H D0=0046H
D1=0047H D1=4700H D1=0046H D1=0045H
D2=0047H D2=0047H
D3= (any data) D3= (any data)
APPX
884 Appendix 5 Operation Image and Data Structure of Predefined Protocol
Data examples of Conversion Variable
Shows the data examples of element conversion variable that can be placed in a packet.
Data example
The following table shows send data when a packet consists of [Header], [Conversion variable], [Terminator] and data stored
in the data storage area is D0=837 (0345H), D1=18 (0012H). (Reference: decimal: 120345H = 1180485)
■Data example 1
Item Description
Conversion HEXASCII Decimal HEXASCII Decimal HEXASCII Decimal
Fixed Number of Data/Variable Fixed Number of Data Fixed Number of Data Fixed Number of Data
Number of Data
Number of Send Data 1 1 1
Number of Send Digits of Data 5 5 Variable Number of Digits
Blank-padded Character at Send 0 Space (Not applicable)
Conversion Unit Word Word Word
Sign Unsigned Signed Signed
Sign Character (Not applicable) + +
Number of Decimals No Decimal Point 2 No Decimal Point
Delimiter No Delimiter Comma Comma
Data Storage Area Specification D0 D0 D0
Send data*1 [Header]00837[Terminator] [Header]+_ _8.37,[Terminator] [Header]+837,[Terminator]
■Data example 2
Item Description
Conversion
Fixed Number of Data/Variable
HEXASCII Decimal
Fixed Number of Data
HEXASCII Decimal
Fixed Number of Data
HEXASCII Decimal
Fixed Number of Data
A
Number of Data
Number of Send Data 1 2 2
Number of Send Digits of Data 10 5 5
Blank-padded Character at Send 0 Space 0
Conversion Unit Double word Word Word
Sign Signed Unsigned Signed
Sign Character + (Not applicable) +
Number of Decimals 8 No Decimal Point 2
Delimiter No Delimiter No Delimiter Comma
Data Storage Area Specification D0 D0 D0
Send data*1 [Header]+00.01180485[Terminator] [Header]_ _ 837 _ _ _18[Terminator] [Header]+008.37,+000.18[Terminator]
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 885
■Data example 3
Item Description
Conversion HEXASCII Hexadecimal HEXASCII Hexadecimal HEXASCII Hexadecimal
Fixed Number of Data/Variable Fixed Number of Data Fixed Number of Data Fixed Number of Data
Number of Data
Number of Send Data 1 2 2
Number of Send Digits of Data Variable Number of Digits 4 Variable Number of Digits
Blank-padded Character at Send (Not applicable) Space (Not applicable)
Conversion Unit Word Word Word
Sign (Not applicable) (Not applicable) (Not applicable)
Sign Character (Not applicable) (Not applicable) (Not applicable)
Number of Decimals (Not applicable) (Not applicable) (Not applicable)
Delimiter Comma Comma Comma
Data Storage Area Specification D0 D0 D0
Send data*1 [Header]345,[Terminator] [Header]_ 345,_ _ 12[Terminator] [Header]345,12[Terminator]
APPX
886 Appendix 5 Operation Image and Data Structure of Predefined Protocol
Operation of Number of Decimals
■Sending
• Fixed point
Ex.
Conversion: HEXASCII Decimal Number of Send Data: 2 Conversion Unit: Word Number of Send Digits of Data: 4 Number
of Decimals: 1
Data Storage Area Send
Ex.
Conversion: HEXASCII Decimal Number of Send Data: 2 Conversion Unit: Word Number of Send Digits of Data: 4
Data Storage Area Send
Precautions
An error occurs when a decimal point position is larger than the number of digits for variable point.
(Example) When the number of digits is 3 and the decimal point position is 1000 or larger, an error occurs.
■Receiving
• Fixed point A
Ex.
Conversion: ASCII DecimalHEX Number of Receive Data: 2 Conversion Unit: Word Number of Receive Digits of Data: 4
Number of Decimals: 1
Receive Data Storage Area
• Variable Point
Ex.
Conversion: ASCII DecimalHEX Number of Receive Data: 2 Conversion Unit: Word Number of Receive Digits of Data: 4
Receive Data Storage Area
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 887
Operation of Delimiter
■Sending
• Comma (Space too)
Ex.
Conversion: HEXASCII Decimal Number of Send Data: 1 Conversion Unit: Word Number of Send Digits of Data: 4
Data Storage Area Send
First data
Ex.
Conversion: HEXASCII Decimal Number of Send Data: 2 Conversion Unit: Word Number of Send Digits of Data: 4
Data Storage Area Send
D0 1234 (04D2H)
"1" "2" "3" "4" "," "5" "6" "7" "8"
D1 5678 (162EH)
Ex.
Conversion: HEXASCII Decimal Number of Send Data: 2 Conversion Unit: Word Number of Send Digits of Data: 4
Data Storage Area Send
D0 1234 (04D2H)
"1" "2" "3" "4" "5" "6" "7" "8"
D1 5678 (162EH)
■Receiving
• Comma (Space too)
Ex.
Conversion: ASCII DecimalHEX Number of Receive Data: 1 Conversion Unit: Word Number of Receive Digits of Data: 4
Receive Data Storage Area
First data
Ex.
Conversion: ASCII DecimalHEX Number of Receive Data: 2 Conversion Unit: Word Number of Receive Digits of Data: 4
Receive Data Storage Area
D0 1234 (04D2H)
"1" "2" "3" "4" "," "5" "6" "7" "8"
D1 5678 (162EH)
APPX
888 Appendix 5 Operation Image and Data Structure of Predefined Protocol
• No Delimiter
Ex.
Conversion: ASCII DecimalHEX Number of Receive Data: 2 Conversion Unit: Word Number of Receive Digits of Data: 4
Receive Data Storage Area
D0 1234 (04D2H)
"1" "2" "3" "4" "5" "6" "7" "8"
D1 5678 (162EH)
Horizontal
STX "Q" "J" "7" "1" "C" "2" "4" "N" ETX
parity
Calculating range
• One's complement is designated (One's complement for 0000 0015H: FFFF FFEAH).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FFEAH, Decimal: 65514)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal A (41H) EA (45H 41H) FEA (46H 451H 41H) FFEA (46H 46H 45H 41H)
ASCII decimal 4 (34H) 14 (31H 34H) 514 (35H 31H 34H) 5514 (35H 35H 31H 34H)
HEX EAH FFEAH FFFFEAH FFFFFFEAH
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 889
• Two's complement is designated (Two's complement for 0000 0015H: FFFF FFEBH).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FFFBH, Decimal: 65515)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal B (42H) EB (45H 42H) FEB (46H 45H 42H) FFEB (46H 46H 45H 42H)
ASCII decimal 5 (35H) 15 (31H 35H) 515 (35H 31H 35H) 5515 (35H 35H 31H 35H)
HEX EBH FFEBH FFFFEBH FFFFFFEBH
• One's complement is designated (One's complement for 0000 0015H: FFFF FFEAH).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FFEAH, Decimal: 65514)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal AE (41H 45H) AEF (41H 45H 46H) AEFF (41H 45H 46H 46H)
ASCII decimal 41 (34H 31H) 415 (34H 31H 35H) 4155 (35H 35H 31H 34H)
HEX EAFFH EAFFFFH EAFFFFFFH
• Two's complement is designated (Two's complement for 0000 0015H: FFFF FFEBH).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FFFBH, Decimal: 65515)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal BE (42H 45H) BEF (42H 45H 46H) BEFF (42H 45H 46H 46H)
ASCII decimal 51 (35H 31H) 515 (35H 31H 35H) 5155 (35H 31H 35H 35H)
HEX EBFFH EBFFFFH EBFFFFFFH
• One's complement is designated (One's complement for 0000 0015H: FFFF FFEAH).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FFEAH, Decimal: 65514)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal FFAE (46H 46H 41H 45H)
ASCII decimal 5541 (35H 35H 34H 31H)
HEX FFFFEAFFH
APPX
890 Appendix 5 Operation Image and Data Structure of Predefined Protocol
• Two's complement is designated (Two's complement for 0000 0015H: FFFF FFEBH).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FFFBH, Decimal: 65515)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal FFBE (46H 46H 42H 45H)
ASCII decimal 5551 (35H 35H 35H 31H)
HEX FFFFEBFFH
Sum
STX "Q" "J" "7" "1" "C" "2" "4" "N" ETX
check
Calculating range
• One's complement is designated (One's complement for 0000 01FDH: FFFF FE02H). A
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FE02H, Decimal: 65026)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal 2 (32H) 02 (30H 32H) E02 (45H 30H 32H) FE02 (46H 45H 30H 32H)
ASCII decimal 6 (36H) 26 (32H 36H) 026 (30H 32H 36H) 5026 (35H 30H 32H 36H)
HEX 02H FE02H FFFE02H FFFFFE02H
• Two's complement is designated (Two's complement for 0000 01FDH: FFFF FE03H).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FE03H, Decimal: 65027)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal 3 (33H) 03 (30H 33H) E03 (45H 30H 33H) FE03 (46H 45H 30H 33H)
ASCII decimal 7 (37H) 27 (32H 37H) 027 (30H 32H 37H) 5027 (35H 30H 32H 37H)
HEX 03H FE03H FFFE03H FFFFFE03H
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 891
■Data Flow: Reverse Direction
• No complement calculation is designated
(Reference) Hexadecimal: 1FDH, Decimal: 509
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal DF (44H 46H) DF1 (44H 46H 31H) DF10 (44H 46H 31H 30H)
ASCII decimal 90 (39H 30H) 905 (39H 30H 35H) 9050 (39H30H 35H 30H)
HEX FD01H FD0100H FD010000H
• One's complement is designated (One's complement for 0000 01FDH: FFFF FE02H).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FE02H, Decimal: 65026)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal 20 (32H 30H) 20E (32H 30H 45H) 20EF (32H 30H 45H 46H)
ASCII decimal 62 (36H 32H) 620 (36H 32H 30H) 6205 (36H 32H 30H 35H)
HEX 02FEH 02FEFFH 02FEFFFFH
• Two's complement is designated (Two's complement for 0000 01FDH: FFFF FE03H).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FE03H, Decimal: 65027)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal 30 (30H 33H) 30E (33H 30H 45H) 30EF (33H 30H 45H 46H)
ASCII decimal 72 (37H 32H) 720 (37H 32H 30H) 7205 (37H 32H 30H 35H)
HEX 03FEHH 03FEFFH 03FEFFFFH
• One's complement is designated (One's complement for 0000 01FDH: FFFF FE02H).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FE02H, Decimal: 65026)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal EF20 (45H 46H 32H 30H)
ASCII decimal 0562 (30H 35H 36H 32H)
HEX FFFF02FEH
APPX
892 Appendix 5 Operation Image and Data Structure of Predefined Protocol
• Two's complement is designated (Two's complement for 0000 01FDH: FFFF FE03H).
When Code Type is ASCII Decimal, the lower one word is extracted and converted from hexadecimal to decimal.
(Hexadecimal: FE03H, Decimal: 65027)
Code type Data length (Values in ( ) indicate ASCII code.)
1 byte 2 byte 3 byte 4 byte
ASCII hexadecimal EF30 (45H 46H 33H 30H)
ASCII decimal 0572 (30H 35H 37H 32H)
HEX FFFF03FEH
2. Exclusive OR (XOR) the first 1 byte (8 bits) of the calculating range with 8 bits in above 1.
4. If the least significant bit in above 2 is '1', exclusive OR (XOR) the result of 3 with the generator polynomial (A001H). If
the least significant bit is '0', shift the result of step 3 one bit right (operation described in 3) without the exclusive OR
(XOR) operation.
5. Repeat steps 3 and 4 for 8 times.
6. Exclusive OR (XOR) the result of the above 5 with the next 1 byte (8 bits).
7. Repeat step 3 through 6 until all bytes have been processed. The final result is CRC value.
8. The CRC value is stored in a packet in the order of lower 8 bits upper 8 bits.
Ex.
A
The calculation example of 16-bit CRC (for MODBUS)
Packet example
Station number Function code 16-bit CRC
02H 07H 41H 12H
Calculation method of 16-bit CRC (for MODBUS) for the above packet example
CRC error checking procedure 16-bit register (MSB) Flag Calculating
procedure
(Load a 16-bit register whose bits are all '1'.) 1111 1111 1111 1111 1 to 2
02H (Station number) 0000 0010
Exclusive OR (XOR) 1111 1111 1111 1101
Shift 1 0111 1111 1111 1110 1 3 to 4
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1101 1111 1111 1111
Shift 2 0110 1111 1111 1111 1 5
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1100 1111 1111 1110
Shift 3 0110 0111 1111 1111 0
Shift 4 0011 0011 1111 1111 1
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1001 0011 1111 1110
Shift 5 0100 1001 1111 1111 0
Shift 6 0010 0100 1111 1111 1
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1000 0100 1111 1110
Shift 7 0100 0010 0111 1111 0
Shift 8 0010 0001 0011 1111 1
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1000 0001 0011 1110
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 893
CRC error checking procedure 16-bit register (MSB) Flag Calculating
procedure
07H (Function code) 0000 0111 6
Exclusive OR (XOR) 1000 0001 0011 1001
Shift 1 0100 0000 1001 1100 1 7
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1110 0000 1001 1101
Shift 2 0111 0000 0100 1110 1
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1101 0000 0100 1111
Shift 3 0110 1000 0010 0111 1
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1100 1000 0010 0110
Shift 4 0110 0100 0001 0011 0
Shift 5 0011 0010 0000 1001 1
Generator polynomial 1010 0000 0000 0001
Exclusive OR (XOR) 1001 0010 0000 1000
Shift 6 0100 1001 0000 0100 0
Shift 7 0010 0100 1000 0010 0
Shift 8 0001 0010 0100 0001 0
CRC value 12H 41H 8
Non-conversion
Packet format Header Static data variable
Terminator Check code
APPX
894 Appendix 5 Operation Image and Data Structure of Predefined Protocol
Data examples of Non-verified reception
Shows the data examples of element non-verified reception that can be placed in a packet.
The usage example for non-verified reception is shown below.
Example of format of packet from other device
Data to be read
Variable number
1 byte 2 byte 2 byte 5 byte 5 byte of characters 1 byte
Identification Manufacturer
STX Country code Product code ETX
code code
Data needed
by the user
Using a non-verified reception element has the following advantages in the case of the packet format shown above.
• Only the necessary data can be stored in the device memory of a CPU module and buffer memory.
• A single protocol (packet) can handle receive packets that includes data whose contents vary each time.
APPX
Appendix 5 Operation Image and Data Structure of Predefined Protocol 895
Appendix 6 ASCII Code Table
APPX
896 Appendix 6 ASCII Code Table
Appendix 7 Frame Specifications
Procedure for generating of CRC
The error check in the MODBUS serial communication (RTU mode) is conducted by CRC (Cyclic Redundancy Check).
A procedure for generating a CRC is:
1. Load the register whose 16 bits are all "1" (FFFFH). Call this the CRC register.
2. Exclusive OR the first 8 bit byte of the message with the low-order byte of the 16 bit CRC register, putting the result in the
CRC register.
3. Shift the CRC register one bit to the right (toward the Least Significant Bit), zero-filling the MSB (Most Significant bit).
8. When the CRC is placed in the message, the upper 8 bits is put in after the lower 8 bits.
APPX
Appendix 7 Frame Specifications 897
The following is a calculation example in the case where function code 05H is sent to station No. (address field) 2.
(Load the register whose 16 bits are all "1") 1111 1111 1111 1111
02H (Station No.) 0000 0000 0000 0010
Exclusive OR (XOR) 1111 1111 1111 1101
APPX
898 Appendix 7 Frame Specifications
MODBUS protocol data unit formats
This section explains MODBUS protocol data unit formats of the MODBUS standard functions.
The MODBUS protocol data unit contains request messages sent from the master to a slave and response messages sent
from the slave to the master.
Precautions
■When the slave receives a broadcast request message A
Although the processing requested by the request message is performed, no response message is sent to the master.
APPX
Appendix 7 Frame Specifications 899
Read coils
Reads the status (ON/OFF) of one or more coils.
Supports the MODBUS serial communication and MODBUS/TCP communication.
(Device data 1 to n)
b7 b6 b5 b4 b3 b2 b1 b0
Device data 1
Bit device
storage order
Device data n
0: OFF
1: ON
The read coil statuses are stored in order from low-order to high-order bits.
Function Exception
code code*1
(81H)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
APPX
900 Appendix 7 Frame Specifications
Read inputs
Reads the status (ON/OFF) of one or more inputs.
Supports the MODBUS serial communication and MODBUS/TCP communication.
(Device data 1 to n)
b7 b6 b5 b4 b3 b2 b1 b0
Device data 1
Bit device
Device data n
storage order
A
0: OFF
1: ON
The read input statuses are stored in order from low-order to high-order bits.
Function Exception
code code*1
(82H)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
APPX
Appendix 7 Frame Specifications 901
Read holding registers
Reads the values of one or more holding registers.
Supports the MODBUS serial communication and MODBUS/TCP communication.
Function . . .
Number of read Device data Device data
code bytes 1 n
(03H) m = n 2*1
(H) (L) (H) (L)
(Number of read bytes n 2)
Function Exception
code code*2
(83H)
*2 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
APPX
902 Appendix 7 Frame Specifications
Read input registers
Reads the values of one or more input registers.
Supports the MODBUS serial communication and MODBUS/TCP communication.
. . .
Function Number of read Device data 1 Device data n
code bytes
(04H) m = n 2*1
(H) (L) (H) (L)
(Number of read bytes n 2)
Function Exception
code
(84H)
code*2 A
*2 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
APPX
Appendix 7 Frame Specifications 903
Write single coil
Writes a value (ON/OFF) to one coil.
Supports the MODBUS serial communication and MODBUS/TCP communication.
Function Exception
code code*1
(85H)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
Function Exception
code code*1
(86H)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
APPX
904 Appendix 7 Frame Specifications
Write multiple coils
Writes values (ON/OFF) to multiple coils.
Supports the MODBUS serial communication and MODBUS/TCP communication.
Function Head coil number Write points*1 Number of Device data Device data
code (0000H to FFFFH) (0001H to 07B0H) bytes n*1 1 n
(0FH) (0001H to
00F6H)
(H) (L) (H) (L)
(Number of bytes n)
(Device data 1 to n)
b7 b6 b5 b4 b3 b2 b1 b0
Device data 1
Device data n
0: OFF
1: ON
The values (ON/OFF) stored into the device data 1 to n are written to the coils in order from low-order to high-order bits of the
device data.
*1 Since the number of bytes is automatically calculated, no settings are required from ADPRW instruction and the predefined protocol
support function tool.
Function Exception
code code*1
(8FH)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
APPX
Appendix 7 Frame Specifications 905
Write multiple registers
Writes values to multiple holding registers.
Supports the MODBUS serial communication and MODBUS/TCP communication.
Function Head holding register Write points n*1 Number of Device data Device data
code number (0000H to (0001H to 007BH) bytes 1 n
(10H) FFFFH) n 2*1
(0002H to
(H) (L) (H) (L) 00F6H) (H) (L) (H) (L)
(Number of bytes n 2)
*1 Since the number of bytes is automatically calculated, no settings are required from ADPRW instruction and the predefined protocol
support function tool.
Function Exception
code code*1
(90H)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to the following sections for the storage
location, confirmation methods, and other detailed contents.
MODBUS serial communication: Page 541 Related Devices
MODBUS/TCP communication: Page 513 Related Devices
APPX
906 Appendix 7 Frame Specifications
Mask write register
Masks the values stored in a single holding register with AND or OR and writes the value. The masked values written to the
holding register are as shown below.
• Value to be written = (Register current value AND mask value) (OR mask value AND mask value)
Supported only by the MODBUS/TCP communication.
Function Data
code
Function Exception
code code*1
(96H)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to Page 513 Related Devices for the
storage location, confirmation methods, and other detailed contents.
APPX
Appendix 7 Frame Specifications 907
Read/Write multiple registers
Reads from and writes to multiple holding registers. Writing is executed first and reading is then executed.
Supported only by the MODBUS/TCP communication.
Function Read head holding Read points Write head holding Write points Number of Write device data Write device data
code register number n register number n*1 bytes m x 2*1 1 m
(17H) (0000H to FFFFH) (0000H to 007DH) (0000H to FFFFH) (0001H to 0079H) (0002H to
00F2H)
(H) (L) (H) (L) (H) (L) (H) (L) (H) (L) (H) (L)
(Number of bytes m x 2)
*1 Since the number of bytes is automatically calculated, no settings are required from the predefined protocol support function tool.
Function
code Data
Function
code Data
Function Exception
code code*1
(97H)
*1 Exception and error codes are stored in special registers in the case of error completion. Refer to Page 513 Related Devices for the
storage location, confirmation methods, and other detailed contents.
APPX
908 Appendix 7 Frame Specifications
Appendix 8 Initial Values of MODBUS Device
Allocation
Parameter initial value of MODBUS device allocation
The FX5 dedicated pattern and the FX3 compatible pattern are provided for the parameter initial values.
APPX
Appendix 8 Initial Values of MODBUS Device Allocation 909
MODBUS address FX5 device
<Word device> Input register (read only) Holding register (read/write)
FX5S/FX5UJ FX5U/FX5UC FX5S/FX5UJ FX5U/FX5UC FX5S/FX5UJ FX5U/FX5UC
F000H to F0FFH F000H to F0FFH CN0 to 255 CN0 to 255
F100H to FFFFH F100H to FFFFH
APPX
910 Appendix 8 Initial Values of MODBUS Device Allocation
Appendix 9 Device Memory Extension Specification
The following accesses are available by setting the subcommand of request data to 008.
• Access to module access device
• Access with indirect specification of the device No. by using index register or long index register
• Access with indirect specification of the device No. by using values stored in word device
Request data
ASCII
Binary
When extension is Head device No. Device Number
Command Subcommand
not specified or device No. code of devices
The following shows the module access device and request data.
U \G
Extension Device code Head device No.
specification or device No.
Devices of FX5 CPU module can be accessed by specifying 0 in "extension specification" of commands which
can specify multiple devices. (Page 611 Device range) However, when specifying 008 in
"subcommand", specify the device in the message format shown above. Message formats when extension is
not specified and message formats when extension is specified cannot coexist in the same message.
APPX
Appendix 9 Device Memory Extension Specification 911
■Command
The following commands can be used for accessing.
Item Command
Type Operation
Device Read 0401
Write 1401
Read Random 0403
Write Random 1402
Read Block 0406
Write Block 1406
■Subcommand
Subcommand
ASCII code Binary code
0 0 8 0
30H 30H 38H 30H 80H 00H
0 0 8 2
30H 30H 38H 32H 82H 00H
■Extension specification
Specify the start I/O number of intelligent function modules.
ASCII code Binary code
Specify the start I/O number in hexadecimal (3-digit ASCII code). When Specify the start I/O number in hexadecimal (2 bytes). When described with 4-
described with 4-digits, specify the start I/O number with the upper 3-digits. digits, specify the start I/O number with the upper 3-digits.
U U 0 0 1
55H 55H 30H 30H 31H H H 01H 00H
• Specify 0 when accessing buffer memory of modules other than intelligent function modules, such as CC-
Link IE Field Network Ethernet adapter module.
■Device code
Specify the following device codes.
Type Device code Device No. range
*1
ASCII code Binary code
2 digit code/6 4 digit code/8 2 digit code/6 4 digit code/8
digit number digit number digit number digit number
specification specification specification specification
Word G* G*** ABH AB00H Specify within the device No. range of the module Decimal
for access destination.
*1 For ASCII codes, the device code is specified with 2 characters. If the device text is one character only, add "*" (ASCII code: 2AH) or a
space (ASCII code: 20H) after the device text.
Indirect specification of the access target device No. can be performed by using the CPU module index
register (Z) or long index register (LZ). (Page 914 Access with indirect specification of the device No. by
using index register or long index register)
APPX
912 Appendix 9 Device Memory Extension Specification
Response data
The same as when extension is not specified.
Communication example
Access to the buffer memory (Address: 1) of the intelligent function module whose start I/O number is 0030H.
• When communicating data in ASCII code
(Request data)
0 0 8 0 0 0 U 0 0 3 0 0 0 G * 0 0 0 0 0 1 0 0 0
30H 30H 38H 30H 30H 30H 55H 30H 30H 33H 30H 30H 30H 47H 2AH 30H 30H 30H 30H 30H 31H 30H 30H 30H
80H 00H 00H 00H 01H 00H 00H ABH 00H 00H 03H 00H F8H
APPX
Appendix 9 Device Memory Extension Specification 913
Access with indirect specification of the device No. by using
index register or long index register
Indirect specification of the device No. can be performed by using the index register or long index register when accessing the
device.
The access destination can be switched with one message, by changing the value of the index register or long index register
in CPU module programs.
Ex.
When accessing D4 with D0 and Z0 specifications
Device No.
(Offset value) Z0
Z0 4
Equivalent to accessing D4 using the following program.
(Stored value) 4
+ D0
(Device No.) 0 MOVP K4 Z0
D4 (Access destination)
D5 MOVP K D0Z0
Ex.
When accessing M16 to M31 with M0 and Z0 specifications (Word units)
Device No.
(Offset value) Z0
(Stored value)16 Z0 16 Equivalent to accessing M16 to M31 using the following program.
+
(Device No.) 0 M0 to M15 MOVP K16 Z0
M16 to M31 (Access destination)
M32 to M47 MOVP K K4M0Z0
APPX
914 Appendix 9 Device Memory Extension Specification
Request data
ASCII
Extension
Extension Device Head device No. Device
When extension is specified 0 0 specification
specification
code or device No. modification
30H 30H modification
Binary
The following shows the approach for devices, index registers, long index registers and request data.
• Other than the module access device
+
Z A
Device modification
U \G
+ +
Z Z
Extension Device modification
specification
modification
When specifying 008 in "subcommand", specify the device with the message format shown above.
Message formats when extension is not specified and message formats when extension is specified cannot
coexist in the same message.
APPX
Appendix 9 Device Memory Extension Specification 915
■Command
The following commands can be used for accessing.
Item Command
Type Operation
Device Read Random 0403
Write Random 1402
■Subcommand
Item Subcommand
ASCII code Binary code
When accessing in bit units
0 0 8 1
30H 30H 38H 31H 81H 00H
0 0 8 3
30H 30H 38H 33H 83H 00H
0 0 8 0
30H 30H 38H 30H 80H 00H
0 0 8 2
30H 30H 38H 32H 82H 00H
■Extension specification
Specify the module number.
The values specified in this item turn to the offset value when performing indirect specification of the module number in
"extension specification modification".
Item ASCII code Binary code
Module access device Specify the module number in hexadecimal (3-digit ASCII Specify the module number in hexadecimal (2 bytes).
code).
Example 001
Example 001
U U 0 0 1 H H 01H 00H
55H 55H 30H 30H 31H
0 0 0 0
30H 30H 30H 30H 00H 00H
APPX
916 Appendix 9 Device Memory Extension Specification
■Extension specification modification
Treat the value specified in "extension specification" as the offset value. Specify the index register or long index register
number when performing indirect specification of the module number with index register or long index register.
The following value is specified when the access point is a module of the MELSEC iQ-R/iQ-F Series.
Subcommand ASCII code Binary code
0083 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.
0082 ASCII code). • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19 • Ethernet module: 00H to 18H
• Ethernet module: 0 to 24
Z H 40H
5AH 20H
0081 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.
0080 ASCII code). • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19 • Ethernet module: 00H to 18H
• Ethernet module: 0 to 24
Z H 40H
5AH
The following value is specified when the access point is a module of the MELSEC-Q/L Series.
ASCII code Binary code
Specify the number of the index register in decimal (2-digit ASCII code). Specify the number of the index register in hexadecimal. (Specification range:
(Specification range: 0 to 15) 00H to 0FH)
Z
5AH H 40H
A
The long index register (LZ) cannot be used in the extension specification modification.
■Device code
Specify the code of the device to be accessed. (Page 611 Device range)
Specify the following device code when accessing the module access device.
Type Device code Device No. range
ASCII code*1 Binary code
2 digit code/6 4 digit code/8 2 digit code/6 4 digit code/8
digit number digit number digit number digit number
specification specification specification specification
Word G* G*** ABH AB00H Specify within the device No. range of the module Decimal
for access destination.
*1 For ASCII codes, the device code is specified with 2 characters. If the device text is one character only, add "*" (ASCII code: 2AH) or a
space (ASCII code: 20H) after the device text.
APPX
Appendix 9 Device Memory Extension Specification 917
■Device modification
Treat the value specified in "Head device or device No." as the offset value. Specify the index register or long index register
number when performing indirect specification of the device No. with index register or long index register.
The following value is specified when the access point is a module of the MELSEC iQ-R/iQ-F Series.
Subcommand ASCII code Binary code
0083 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.*1
0082 ASCII code).*1 • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19 • Ethernet module: 00H to 18H
• Ethernet module: 0 to 24 Specify the number of the long index register (LZ) in hexadecimal.
Specify the number of the long index register (LZ) in decimal (2- • FX5S/FX5U/FX5UC CPU module: 00H to 0BH
digit ASCII code). • FX5UJ CPU module: 00H and 01H
• FX5S/FX5U/FX5UC CPU module: 0 to 11 • Ethernet module: 00H to 0CH
• FX5UJ CPU module: 0, 1
• Ethernet module: 0 to 12
H 40H H 80H
Z L Z
5AH 20H 4CH 5AH
0081 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.
0080 ASCII code). • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19 • Ethernet module: 00H to 18H
• Ethernet module: 0 to 24
Z H 40H
5AH
*1 The device modification range of the index register (Z) is -32768 to 32767. When the device modification range is not within -32768 to
32767, use the long index register (LZ).
The following value is specified when the access point is a module of the MELSEC-Q/L Series.
ASCII code Binary code
Specify the number of the index register in decimal (2-digit ASCII code). Specify the number of the index register in hexadecimal. (Specification range:
(Specification range: 0 to 15) 00H to 0FH)
Z
5AH H 40H
Response data
The same as when extension is not specified.
APPX
918 Appendix 9 Device Memory Extension Specification
Communication example
Accessing the device of D100 + Z4.
• When communicating data in ASCII code
(Request data)
Extension
Extension specification Device Head device No. Device
Subcommand specification modification code or device No. modification
0 0 8 0 0 0 0 0 0 0 0 0 0 D * 0 0 0 1 0 0 Z 0 4
30H 30H 38H 30H 30H 30H 30H 30H 30H 30H 30H 30H 30H 44H 2AH 30H 30H 30H 31H 30H 30H 5AH 30H 34H
Extension Direct
Device Head device No. Device specification Extension memory
Subcommand modification or device No. code modification specification specification
80H 00H 04H 40H 64H 00H 00H A8H 00H 00H 00H 00H 00H
Ex.
When storing the address of D100 in D0, and trying to access D100 from external devices by accessing "@D0"
The ADRSET instruction is used on the Ethernet-equipped module side and the address of D100 is stored in D0.
D100 can be indirectly accessed by specifying "@D0" with the request data.
APPX
Appendix 9 Device Memory Extension Specification 919
Request data
ASCII
Binary
When extension is Head device No. Device Number of
Command Subcommand
not specified or device No. code devices
Device
When extension is modification Head device No. Device
specified indirect or device No. code
specification 00H 00H 00H 00H 00H
The following shows the indirect specification devices and request data.
Indirect Device Head device No.
specification code or device No.
@
• When specifying 008 in "subcommand", specify the device with the message format shown above.
Message formats when extension is not specified and message formats when extension is specified cannot
coexist in the same message.
• The indirect specification and the device modification using index registers cannot be set simultaneously.
■Command
The following commands can be used for accessing.
Item Command
Type Operation
Device Read Random 0403
Write Random 1402
■Subcommand
ASCII code Binary code
0 0 8 0
30H 30H 38H 30H 80H 00H
APPX
920 Appendix 9 Device Memory Extension Specification
■Indirect specification, Device modification
Specify the "@" part of the indirect specification device. Indirect specification can be specified only for word devices.
When communicating data in ASCII code
0 @
30H 40H
0 0H 0 H
■Device code (Only word device codes can be specified at indirect specification)
Specify the code of the device to be accessed. (Page 611 Device range)
Response data
The same as when extension is not specified.
Communication example
Access to @D0. (Consider @D0 indirect specification of D100.)
At command execution, store the D100 address in D0 with the following programs.
0 0 8 0 0 @ 0 0 0 0 0 0 0 D * 0 0 0 0 0 0 0 0 0
30H 30H 38H 30H 30H 40H 30H 30H 30H 30H 30H 30H 30H 44H 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H
80H 00H 00H 08H 00H 00H 00H A8H 00H 00H 00H 00H 00H
APPX
Appendix 9 Device Memory Extension Specification 921
Appendix 10 Command Comparison between MC
Protocol and SLMP
The correspondence table of MC protocol and SLMP is shown below. When connecting an external device which uses MC
protocol to an SLMP compatible device, check if replacement of command is required.
APPX
922 Appendix 10 Command Comparison between MC Protocol and SLMP
Appendix 11 Device Memory Extension Specification
The following accesses are available by setting the subcommand of request data to 008.
• Access to module access device
• Access with indirect specification of the device No. by using index register or long index register
• Access with indirect specification of the device No. by using values stored in word device
Request data
ASCII
Binary
When extension is Head device No. Device Number
Command Subcommand
not specified or device No. code of devices
U \G
Extension Device code Head device No.
specification or device No.
Devices described in Page 715 Device code list can be accessed by specifying 0 in "extension
specification" of commands which can specify multiple devices. However, when specifying 008 in
"subcommand", specify the device in the message format shown above. Message formats when extension is
not specified and message formats when extension is specified cannot coexist in the same message.
APPX
Appendix 11 Device Memory Extension Specification 923
■Command
The following commands can be used for accessing.
Function Command
Batch read 0401
Batch write 1401
Random read 0403
Random write 1402
Multiple block batch read 0406
Multiple block batch write 1406
■Subcommand
Subcommand
ASCII code Binary code
0 0 8 0
30H 30H 38H 30H 80H 00H
0 0 8 2
30H 30H 38H 32H 82H 00H
■Extension specification
Specify the start I/O number of intelligent function modules.
ASCII code Binary code
Specify the start I/O number in hexadecimal (3-digit ASCII code). When Specify the start I/O number in hexadecimal (2 bytes). When described with 4-
described with 4-digits, specify the start I/O number with the upper 3-digits. digits, specify the start I/O number with the upper 3-digits.
U U 0 0 1
55H 55H 30H 30H 31H H H 01H 00H
■Device code
Specify the following device codes.
Type Device code Device No. range
ASCII code*1 Binary code
2 digit code/6 4 digit code/8 2 digit code/6 4 digit code/8
digit number digit number digit number digit number
specification specification specification specification
Word G* G*** ABH AB00H Specify within the device No. range of the module Decimal
for access destination.
*1 For ASCII codes, the device code is specified with 2 characters. If the device text is one character only, add "*" (ASCII code: 2AH) or a
space (ASCII code: 20H) after the device text.
Indirect specification of the access target device No. can be performed by using the CPU module index
register (Z) or long index register (LZ). (Page 926 Access with indirect specification of the device No. by
using index register or long index register)
Response data
The same as when extension is not specified.
APPX
924 Appendix 11 Device Memory Extension Specification
Communication example
Access to the buffer memory (Address: 1) of the intelligent function module whose start I/O number is 0030H.
• When communicating data in ASCII code
(Request data)
0 0 8 0 0 0 U 0 0 3 0 0 0 G * 0 0 0 0 0 1 0 0 0
30H 30H 38H 30H 30H 30H 55H 30H 30H 33H 30H 30H 30H 47H 2AH 30H 30H 30H 30H 30H 31H 30H 30H 30H
80H 00H 00H 00H 01H 00H 00H ABH 00H 00H 03H 00H F8H
APPX
Appendix 11 Device Memory Extension Specification 925
Access with indirect specification of the device No. by using
index register or long index register
Indirect specification of the device No. can be performed by using the index register or long index register when accessing the
device.
The access destination can be switched with one message, by changing the value of the index register or long index register
in CPU module programs.
Ex.
When accessing D4 with D0 and Z0 specifications
Device No.
(Offset value) Z0
Z0 4
Equivalent to accessing D4 using the following program.
(Stored value) 4
+ D0
(Device No.) 0 MOVP K4 Z0
D4 (Access destination)
D5 MOVP K D0Z0
Ex.
When accessing M16 to M31 with M0 and Z0 specifications (Word units)
Device No.
(Offset value) Z0
(Stored value)16 Z0 16 Equivalent to accessing M16 to M31 using the following program.
+
(Device No.) 0 M0 to M15 MOVP K16 Z0
M16 to M31 (Access destination)
M32 to M47 MOVP K K4M0Z0
APPX
926 Appendix 11 Device Memory Extension Specification
Request data
ASCII
Extension
Extension Device Head device No. Device
When extension is specified 0 0 specification
specification
code or device No. modification
30H 30H modification
Binary
The following shows the approach for devices, index registers, long index registers and request data.
• Other than the module access device
+
Z A
Device modification
U \G
+ +
Z Z
Extension Device modification
specification
modification
When specifying 008 in "subcommand", specify the device with the message format shown above.
Message formats when extension is not specified and message formats when extension is specified cannot
coexist in the same message.
APPX
Appendix 11 Device Memory Extension Specification 927
■Command
The following commands can be used for accessing.
Function Command
Random read 0403
Random write 1402
■Subcommand
Item Subcommand
ASCII code Binary code
When accessing in bit units
0 0 8 1
30H 30H 38H 31H 81H 00H
0 0 8 3
30H 30H 38H 33H 83H 00H
0 0 8 0
30H 30H 38H 30H 80H 00H
0 0 8 2
30H 30H 38H 32H 82H 00H
■Extension specification
Specify the module number.
The values specified in this item turn to the offset value when performing indirect specification of the module number in
"extension specification modification".
Item ASCII code Binary code
Module access device Specify the module number in hexadecimal (3-digit ASCII Specify the module number in hexadecimal (2 bytes).
code).
Example 001
Example 001
U U 0 0 1 H H 01H 00H
55H 55H 30H 30H 31H
0 0 0 0
30H 30H 30H 30H 00H 00H
APPX
928 Appendix 11 Device Memory Extension Specification
■Extension specification modification
Treat the value specified in "extension specification" as the offset value. Specify the index register or long index register
number when performing indirect specification of the module number with index register or long index register.
The following value is specified when the access point is a module of the MELSEC iQ-R/iQ-F Series.
Subcommand ASCII code Binary code
0083 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.
0082 ASCII code). • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19
Z H 40H
5AH 20H
0081 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.
0080 ASCII code). • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19
Z H 40H
5AH
The following value is specified when the access point is a module of the MELSEC-Q/L Series.
ASCII code Binary code
Specify the number of the index register in decimal (2-digit ASCII code). Specify the number of the index register in hexadecimal. (Specification range:
(Specification range: 0 to 15) 00H to 0FH)
Z
5AH H 40H
The long index register (LZ) cannot be used in the extension specification modification.
A
■Device code
Specify the code of the device to be accessed. (Page 715 Device code list)
Specify the following device code when accessing the module access device.
Type Device code Device No. range
*1
ASCII code Binary code
2 digit code/6 4 digit code/8 2 digit code/6 4 digit code/8
digit number digit number digit number digit number
specification specification specification specification
Word G* G*** ABH AB00H Specify within the device No. range of the module Decimal
for access destination.
*1 For ASCII codes, the device code is specified with 2 characters. If the device text is one character only, add "*" (ASCII code: 2AH) or a
space (ASCII code: 20H) after the device text.
APPX
Appendix 11 Device Memory Extension Specification 929
■Device modification
Treat the value specified in "Head device or device No." as the offset value. Specify the index register or long index register
number when performing indirect specification of the device No. with index register or long index register.
The following value is specified when the access point is a module of the MELSEC iQ-R/iQ-F Series.
Subcommand ASCII code Binary code
0083 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.*1
0082 ASCII code).*1 • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19 Specify the number of the long index register (LZ) in hexadecimal.
Specify the number of the long index register (LZ) in decimal (2- • FX5S/FX5U/FX5UC CPU module: 00H to 0BH
digit ASCII code). • FX5UJ CPU module: 00H and 01H
• FX5S/FX5U/FX5UC CPU module: 0 to 11
• FX5UJ CPU module: 0, 1
H 40H H 80H
Z L Z
5AH 20H 4CH 5AH
0081 Specify the number of the index register (Z) in decimal (2-digit Specify the number of the index register (Z) in hexadecimal.
0080 ASCII code). • FX5S/FX5U/FX5UC CPU module: 00H to 17H
• FX5S/FX5U/FX5UC CPU module: 0 to 23 • FX5UJ CPU module: 00H to 13H
• FX5UJ CPU module: 0 to 19
Z H 40H
5AH
*1 The device modification range of the index register (Z) is -32768 to 32767. When the device modification range is not within -32768 to
32767, use the long index register (LZ).
The following value is specified when the access point is a module of the MELSEC-Q/L Series.
ASCII code Binary code
Specify the number of the index register in decimal (2-digit ASCII code). Specify the number of the index register in hexadecimal. (Specification range:
(Specification range: 0 to 15) 00H to 0FH)
Z
5AH H 40H
Response data
The same as when extension is not specified.
APPX
930 Appendix 11 Device Memory Extension Specification
Communication example
Accessing the device of D100 + Z4.
• When communicating data in ASCII code
(Request data)
Extension
Extension specification Device Head device No. Device
Subcommand specification modification code or device No. modification
0 0 8 0 0 0 0 0 0 0 0 0 0 D * 0 0 0 1 0 0 Z 0 4
30H 30H 38H 30H 30H 30H 30H 30H 30H 30H 30H 30H 30H 44H 2AH 30H 30H 30H 31H 30H 30H 5AH 30H 34H
Extension Direct
Device Head device No. Device specification Extension memory
Subcommand modification or device No. code modification specification specification
80H 00H 04H 40H 64H 00H 00H A8H 00H 00H 00H 00H 00H
Ex.
When storing the address of D100 in D0, and trying to access D100 from external devices by accessing "@D0"
The ADRSET instruction is used on the CPU module side and the address of D100 is stored in D0.
D100 can be indirectly accessed by specifying "@D0" with the request data.
APPX
Appendix 11 Device Memory Extension Specification 931
Request data
ASCII
Binary
When extension is Head device No. Device Number of
Command Subcommand
not specified or device No. code devices
Device
When extension is modification Head device No. Device
specified indirect or device No. code
specification 00H 00H 00H 00H 00H
The following shows the indirect specification devices and request data.
Indirect Device Head device No.
specification code or device No.
@
• When specifying 008 in "subcommand", specify the device with the message format shown above.
Message formats when extension is not specified and message formats when extension is specified cannot
coexist in the same message.
• The indirect specification and the device modification using index registers cannot be set simultaneously.
■Command
The following commands can be used for accessing.
Function Command
Random read 0403
Random write 1402
■Subcommand
ASCII code Binary code
0 0 8 0
30H 30H 38H 30H 80H 00H
APPX
932 Appendix 11 Device Memory Extension Specification
■Indirect specification, Device modification
Specify the "@" part of the indirect specification device. Indirect specification can be specified only for word devices.
When communicating data in ASCII code
0 @
30H 40H
0 0H 0 H
■Device code (Only word device codes can be specified at indirect specification)
Specify the code of the device to be accessed. (Page 715 Device code list)
Response data
The same as when extension is not specified.
Communication example
Access to @D0. (Consider @D0 indirect specification of D100.)
At command execution, store the D100 address in D0 with the following programs.
0 0 8 0 0 @ 0 0 0 0 0 0 0 D * 0 0 0 0 0 0 0 0 0
30H 30H 38H 30H 30H 40H 30H 30H 30H 30H 30H 30H 30H 44H 2AH 30H 30H 30H 30H 30H 30H 30H 30H 30H
80H 00H 00H 08H 00H 00H 00H A8H 00H 00H 00H 00H 00H
APPX
Appendix 11 Device Memory Extension Specification 933
Appendix 12 Software Licenses and Copyrights
This section describes the licenses and copyrights of the software used in this product.
License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message-
Digest Algorithm" in all material mentioning or referencing this software or this function.
License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA
Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work.
RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of
this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind.
These notices must be retained in any copies of any part of this documentation and/or software.
APPX
934 Appendix 12 Software Licenses and Copyrights
Appendix 13 Added and Changed Functions
The functions added or changed with the Ethernet-equipped module and engineering tool, and the supported Ethernet-
equipped modules' firmware version and engineering tool software version are given below.
The firmware version of the CPU module can be checked with module diagnosis (CPU diagnosis). Refer to the following
manuals for details on diagnosing the module (CPU diagnosis).
MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware)
The firmware version of the Ethernet module can be confirmed in the buffer memory (Un\G30).
Refer to the GX Works3 Operating Manual for details on the software version.
A
FX5UJ CPU module
Add/Change Function Supported CPU module Supported engineering tool Reference
firmware version software version
FX5UJ CPU module is supported. From the first "1.060N" or later
FREQROL-E800/A800 Plus inverters are From the first "1.080J" or later Page 329
supported.
User Web page is supported. "1.020" or later "1.080J" or later Page 206
MC protocol 1E frame is supported. "1.030" or later "1.085P" or later Page 90
File transfer function (FTP client) is "1.030" or later "1.085P" or later Page 190
supported.
The following communication target "1.030" or later "1.085P" or later Page 53
device (simple CPU communication
function) is supported.
• MELSEC iQ-R (Built-in Ethernet)
• MELSEC-Q (Built-in Ethernet)
• MELSEC-L (Built-in Ethernet)
• MELSEC iQ-F (Ethernet module)
• MELSEC iQ-L (Built-in Ethernet)
• MELSEC-FX3 (Ethernet Block/
Adapter)
• OMRON (CJ/CP series)
• KEYENCE (KV series)
• Panasonic (FP7 series)
• Panasonic (FP0H series)
• MODBUS/TCP-compatible device
• SIEMENS S7 series
MODBUS/TCP-compatible device "1.040" or later "1.090U" or later Page 70
optional setting (simple CPU
communication function) is supported.
APPX
Appendix 13 Added and Changed Functions 935
Add/Change Function Supported CPU module Supported engineering tool Reference
firmware version software version
Port number duplication (simple CPU "1.040" or later "1.090U" or later Page 69
communication function) in the following
devices is supported.
• MODBUS/TCP-compatible device
• SIEMENS S7 series
Communication at request (simple CPU "1.040" or later "1.090U" or later Page 67
communication function) is supported.
The following communication target "1.040" or later "1.090U" or later Page 53
device (simple CPU communication
function) is supported.
• MELSEC iQ-F (Ethernet module)
APPX
936 Appendix 13 Added and Changed Functions
Add/Change Function Supported CPU module Supported engineering tool Reference
firmware version software version
The following communication target "1.210" or later "1.065T" or later Page 49
devices (simple CPU communication
function) are supported.
• MELSEC iQ-R (Built-in Ethernet)
• MELSEC-Q (Built-in Ethernet)
• MELSEC-L (Built-in Ethernet)
• MELSEC iQ-L (Built-in Ethernet)
• MELSEC-FX3 (Ethernet Block/
Adapter)
• OMRON (CJ/CP series)
• KEYENCE (KV series)
• Panasonic (FP7 series)
• MODBUS/TCP-compatible device
• SIEMENS S7 series
• Panasonic (FP0H series)
File acquisition from the FTP server is "1.210" or later "1.065T" or later Page 190
supported.
The following communication target "1.270" or later "1.085P" or later Page 67
device (simple CPU communication
function) is supported.
• MELSEC iQ-F (Ethernet module)
Communication at request (simple CPU "1.270" or later "1.085P" or later Page 67
communication function) is supported.
MODBUS/TCP-compatible device "1.270" or later "1.085P" or later Page 70
optional setting (simple CPU
communication function) is supported.
Port number duplication (simple CPU "1.270" or later "1.085P" or later Page 69
communication function) in the following
devices is supported.
• MODBUS/TCP-compatible device
Port number duplication (simple CPU "1.280" or later "1.090U" or later Page 69
communication function) in the following
devices is supported.
• SIEMENS S7 series
A
*1 Supported with CPU module serial No.16Y**** and above.
The following file transfer function (FTP server) controls are supported by "1.050" and above.
Write/delete the file to/from the SD memory card
Unlock/lock the remote password
Reset the file password
Change the setting value of the response monitoring timer
Allow Online Change
*2 The remote password setting to the FTP server is supported by "1.050" and above.
*3 The response monitoring timer setting/Allow Online Change setting of the file transfer function, and the remote password setting to the
FTP server are supported by "1.035M" and above.
For the setting method of the remote password, refer to GX Works3 Operating Manual.
Ethernet module
■When FX5UJ CPU module is used
Add/Change Function Supported versions Reference
CPU module Ethernet module Engineering tool
firmware version firmware version software version
MELSOFT connection "1.010" or later "1.100" or later "1.075D" or later Page 31
SLMP communication function "1.010" or later "1.100" or later "1.075D" or later Page 90
Simple CPU communication function "1.010" or later "1.100" or later "1.075D" or later Page 49
BACnet communication function "1.010" or later "1.100" or later "1.075D" or later MELSEC iQ-F FX5 User's Manual
(BACnet)
APPX
Appendix 13 Added and Changed Functions 937
■When FX5U/FX5UC CPU module is used
Add/Change Function Supported versions Reference
CPU module Ethernet module Engineering tool
firmware version firmware version software version
Firmware update function "1.240" or later "1.003" or later "1.075D" or later MELSEC iQ-F FX5 User's Manual
(Application)
MELSOFT connection "1.240" or later "1.100" or later "1.075D" or later Page 31
SLMP communication function "1.240" or later "1.100" or later "1.075D" or later Page 90
Simple CPU communication function "1.240" or later "1.100" or later "1.075D" or later Page 49
BACnet communication function "1.240" or later "1.100" or later "1.075D" or later MELSEC iQ-F FX5 User's Manual
(BACnet)
Motion module
Add/Change Function Supported versions Reference
CPU module FX5 intelligent Engineering tool
firmware version function module
firmware version
SLMP communication function "1.230" or later From the first "1.072A" or later
APPX
938 Appendix 13 Added and Changed Functions
MEMO
APPX
Appendix 13 Added and Changed Functions 939
INDEX
M
E
Mask write register . . . . . . . . . . . . . . . . . . . . . .907
End code . . . . . . . . . . . . . . . . . . . . . . . . . 574,592 Master function . . . . . . . . . . . . . . . . . .510,521,538
Error check. . . . . . . . . . . . . . . . . . . . . . . . . . . 525 Master processing time . . . . . . . . . . . . . . . . . . .523
Error code . . . . . . . . . . . . . . . . . . . . 513,701,773 MC protocol . . . . . . . . . . . . . . . . . . . . . . . . 21,307
Error information . . . . . . . . . . . . . . . . . . . . . . . 575
940
Message formats . . . . . . . . . . . . . . . . . . . . . . 693 S
Message length . . . . . . . . . . . . . . . . . . . . . . . 504
Message to message delay . . . . . . . . . . . . . . . 549 Second parameter specification code . . . . . . . . .398
MODBUS communication error. . . . . . . . . . . . . 544 Self-station No.. . . . . . . . . . . . . . . . . . . . . . . . .708
MODBUS communication error (latched) . . . . . . 545 Serial communication error . . . . . . . . . . . . . . . .545
MODBUS protocol data unit formats . . . . . . . . . 899 Serial communication error code . . . . . . . . . . . .546
Module access device . . . . . . . . . . . . . . . . . . . . 21 Serial communication error details . . . . . . . . . . .547
Module ID . . . . . . . . . . . . . . . . . . . . . . . . . . . 504 Serial data transmission . . . . . . . . . . . . . . . . . .423
Monitoring timer . . . . . . . . . . . . . . . . . . . . 573,591 Shielding wire . . . . . . . . . . . . . . . . . . . . . . . . . .350
Multiple inverter commands . . . . . . . . . . . . . . . 394 Slave function . . . . . . . . . . . . . . 502,512,521,541
Slave processing time . . . . . . . . . . . . . . . . . . . .523
Slave response timeout . . . . . . . . . . . . . . . . . . .549
N SLMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
N SLMP-compatible device . . . . . . . . . . . . . . . . . . .21
N Network . . . . . . . . . . . . . . . . . . . . . . . . . . 250 SM/SD for FX3 series compatible . . . . . . . . . . . .537
Network No. . . . . . . . . . . . . . . . . . . . . . . . . . . 706 SNTP client . . . . . . . . . . . . . . . . . . . . . . . . . . .203
Non-conversion variable . . . . . . . . . . . . . . 470,884 Static data . . . . . . . . . . . . . . . . . . . . . . . . . . . .469
Non-protocol communication . . . . . . . . . . . . . . 411 Station No. . . . . . . . . . . . . . . . . . . . . . . . . . . . .705
Non-verified reception . . . . . . . . . . . . . . . . 480,895 Sum check . . . . . . . . . . . . . . . . . . . . . . . . . . . .425
Number of connectable modules. . . . . . . . . . . . 521 Sum check code . . . . . . . . . . . . . . . . . . . . 435,699
System configuration. . . . . . . . . . . . . . . . . . . . .518
O
T
Operation error . . . . . . . . . . . . . . . . . . . . . . . . 851
Operation mode display . . . . . . . . . . . . . . . . . . 548 Termination resistor . . . . . . .260,317,349,417,530
Other station. . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Termination resistor selector switch . . . . . . . . . .530
Terminator . . . . . . . . . . . . . . . . . . . . . . . . 425,467
Timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .546
P Timeout retry count . . . . . . . . . . . . . . . . . . . . . .549
Transaction ID . . . . . . . . . . . . . . . . . . . . . . . . .504
Packet . . . . . . . . . . . . . . . . . . . . . . . . . . . 457,465
Twisted pair cable . . . . . . . . .258,292,315,346,415
Parallel link function . . . . . . . . . . . . . . . . . . . . 286
Parameter initial value . . . . . . . . . . . . . . . . . . . 909
Passive open . . . . . . . . . . . . . . . . . . . . . . . . . 130 U
PC No. . . . . . . . . . . . . . . . . . . . . . . . . . . . 591,706
Predefined protocol support function . . . . . . . . . 452 Unpassive . . . . . . . . . . . . . . . . . . . . . . . . . . . .130
Predefined protocol support instruction . . . . . . . 481
Procedure for operation . . . . . . . . . . . . . . . 501,517 W
Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
Protocol ID . . . . . . . . . . . . . . . . . . . . . . . . . . . 504 Write multiple coils . . . . . . . . . . . . . . . . . . . . . .905 I
Write multiple registers . . . . . . . . . . . . . . . . . . .906
Write single coil . . . . . . . . . . . . . . . . . . . . . . . .904
R Write single register . . . . . . . . . . . . . . . . . . . . .904
Read coils . . . . . . . . . . . . . . . . . . . . . . . . . . . 900
Read holding registers . . . . . . . . . . . . . . . . . . . 902
Read input registers . . . . . . . . . . . . . . . . . . . . 903
Read inputs . . . . . . . . . . . . . . . . . . . . . . . . . . 901
Read/Write multiple registers . . . . . . . . . . . . . . 908
Relay station . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Request data . . . . . . . . . . . . . . . . . . . . . . 574,592
Request data length . . . . . . . . . . . . . . . . . . . . 572
Request destination module I/O No. . . . . . . . . . 707
Request destination module I/O number . . . . . . 570
Request destination module station No. . . . . . . . 707
Request destination multi-drop station number
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
Request destination network number and request
destination station number . . . . . . . . . . . . . . . . 568
Response data . . . . . . . . . . . . . . . . . . . . . 574,593
Response data length . . . . . . . . . . . . . . . . . . . 572
Response monitoring timer . . . . . . . . . . . . . . . 179
Retry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
RJ45 connector . . . . . . . . . . . . . . . . . . . . . . . 348
RS-232C . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
RS-485 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527
941
REVISIONS
Revision date Revision Description
June 2023 SH(NA)-082625ENG-A First Edition
July 2023 SH(NA)-082625ENG-B ■Added or modified part
GENERIC TERMS AND ABBREVIATIONS
942
WARRANTY
Please confirm the following product warranty details before using this product.
1. Gratis Warranty Term and Gratis Warranty 2. Onerous repair term after discontinuation
Range of production
If any faults or defects (hereinafter "Failure") found to be (1) Mitsubishi shall accept onerous product repairs for
the responsibility of Mitsubishi occurs during use of the seven (7) years after production of the product is
product within the gratis warranty term, the product shall discontinued.
be repaired at no cost via the sales representative or Discontinuation of production shall be notified with
Mitsubishi Service Company. However, if repairs are Mitsubishi Technical Bulletins, etc.
required onsite at domestic or overseas location, (2) Product supply (including repair parts) is not available
expenses to send an engineer will be solely at the after production is discontinued.
customer's discretion. Mitsubishi shall not be held
responsible for any re-commissioning, maintenance, or 3. Overseas service
testing on-site that involves replacement of the failed Overseas, repairs shall be accepted by Mitsubishi's local
module. overseas FA Center. Note that the repair conditions at
each FA Center may differ.
[Gratis Warranty Term]
4. Exclusion of loss in opportunity and
The gratis warranty term of the product shall be for one
year after the date of purchase or delivery to a
secondary loss from warranty liability
designated place. Note that after manufacture and Regardless of the gratis warranty term, Mitsubishi shall
shipment from Mitsubishi, the maximum distribution not be liable for compensation to:
period shall be six (6) months, and the longest gratis (1) Damages caused by any cause found not to be the
warranty term after manufacturing shall be eighteen (18) responsibility of Mitsubishi.
months. The gratis warranty term of repair parts shall not (2) Loss in opportunity, lost profits incurred to the user
exceed the gratis warranty term before repairs. by Failures of Mitsubishi products.
(3) Special damages and secondary damages whether
[Gratis Warranty Range] foreseeable or not, compensation for accidents, and
(1) The range shall be limited to normal use within the compensation for damages to products other than
usage state, usage methods and usage environment, Mitsubishi products.
etc., which follow the conditions and precautions, (4) Replacement by the user, maintenance of on-site
etc., given in the instruction manual, user's manual equipment, start-up test run and other tasks.
and caution labels on the product. 5. Changes in product specifications
(2) Even within the gratis warranty term, repairs shall be The specifications given in the catalogs, manuals or technical
charged for in the following cases. documents are subject to change without prior notice.
1. Failure occurring from inappropriate storage or 6. Product application
handling, carelessness or negligence by the
(1) In using the Mitsubishi MELSEC programmable
user. Failure caused by the user's hardware or
controller, the usage conditions shall be that the
software design.
application will not lead to a major accident even if
2. Failure caused by unapproved modifications,
any problem or fault should occur in the
etc., to the product by the user.
programmable controller device, and that backup and
3. When the Mitsubishi product is assembled into a fail-safe functions are systematically provided outside
user's device, Failure that could have been of the device for any problem or fault.
avoided if functions or structures, judged as
(2) The Mitsubishi programmable controller has been
necessary in the legal safety measures the user's
designed and manufactured for applications in general
device is subject to or as necessary by industry
industries, etc. Thus, applications in which the public
standards, had been provided.
could be affected such as in nuclear power plants and
4. Failure that could have been avoided if other power plants operated by respective power
consumable parts (battery, backlight, fuse, etc.) companies, and applications in which a special quality
designated in the instruction manual had been assurance system is required, such as for railway
correctly serviced or replaced. companies or public service purposes shall be excluded
5. Relay failure or output contact failure caused by from the programmable controller applications.
usage beyond the specified life of contact In addition, applications in which human life or property
(cycles). that could be greatly affected, such as in aircraft,
6. Failure caused by external irresistible forces such medical applications, incineration and fuel devices,
as fires or abnormal voltages, and failure caused manned transportation, equipment for recreation and
by force majeure such as earthquakes, lightning, amusement, and safety devices, shall also be excluded
wind and water damage. from the programmable controller range of applications.
7. Failure caused by reasons unpredictable by However, in certain cases, some applications may be
scientific technology standards at time of possible, providing the user consults their local
shipment from Mitsubishi. Mitsubishi representative outlining the special
8. Any other failure found not to be the responsibility requirements of the project, and providing that all
of Mitsubishi or that admitted not to be so by the parties concerned agree to the special circumstances,
user. solely at the user's discretion.
(3) Mitsubishi shall have no responsibility or liability for any
problems involving programmable controller trouble and
system trouble caused by DoS attacks, unauthorized
access, computer viruses, and other cyberattacks.
943
TRADEMARKS
Microsoft and Windows are trademarks of the Microsoft group of companies.
PROFIBUS is a trademark of PROFIBUS Nutzerorganisation e.V.
Anywire and AnyWireASLINK are either registered trademarks or trademarks of Anywire Corporation.
Oracle and JavaScript are registered trademarks of Oracle Corporation and/or its affiliates in the United States and other
countries.
Unicode is either a registered trademark or a trademark of Unicode, Inc. in the United States and other countries.
The company names, system names and product names mentioned in this manual are either registered trademarks or
trademarks of their respective companies.
In some cases, trademark symbols such as '' or '' are not specified in this manual.
944 SH(NA)-082625ENG-B
Manual number: SH(NA)-082625ENG-B
MODEL: FX5-U-COMMU-E
MODEL CODE: 09R741
HEAD OFFICE: TOKYO BLDG., 2-7-3, MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
NAGOYA WORKS: 1-14, YADA-MINAMI 5-CHOME, HIGASHI-KU, NAGOYA 461-8670, JAPAN
When exported from Japan, this manual does not require application to the
Ministry of Economy, Trade and Industry for service transaction permission.