■
I/O allocations
I/O number Name Description
X90 to X9F
Master communication
clear to send flag
Turns ON when a connection is established in the master
communication.
Y90 to Y9F
Master communication
sending flag
Turns ON during sending data based on the SEND/RECV
instruction.
Turns OFF when the ED instruction is executed after the
completion of the response receive processing.
Y70 to Y7F Sent flag
Reports completion result of sending data in genera-purpose
communication or master communication.
(Normal completion: 0, Abnormal completion: 1)
(Note 1) Each contact is used for reading the operation state. Do not write over it with a user program.
■
Precautions during programming (in the case of CPU with built-in ET-LAN)
● Use the UNITSEL instruction immediately before the SEND/RECV instruction to specify a
target connection number for communication.
● Master communication is only enabled when MEWTOCOL or MODBUS is selected. Confirm
that the "master communication clear to send flags" (X90 to X9F) are ON for the
corresponding connection, and execute the SEND/RECV instruction.
● The SEND or RECV instruction cannot be executed for the connection for which the master
communication is in progress. Confirm that the "master communication sending flags" (Y90
to Y9F) are OFF, and execute the instruction.
● The SEND or RECV instruction cannot be executed for the connection for which the slave
communication is in progress.
● Up to 16 SEND/RECV instructions can be executed simultaneously for differing connections.
● In the MODBUS-TCP mode, specify the partner station number as operand for the SEND/
RECV instruction.
■
Flag operations
Name Description
SR7
SR8
(ER)
To be set in the case of out-of-range in indirect access (index modification).
To be set when the source range is outside the accessible range.
COM port or connection specified by UNITSEL does not exist, or communication is not
possible in the specified connection.
Data device specified by [S] is invalid, or exceeds the area.
Sent data amount specified by [n] is invalid.
MODBUS command and/or station number specified by [D1] is invalid.
Data device specified by [D2] is invalid, or exceeds the area.
Result storage device specified by [D3] is invalid.
Integer specification for [D2] is only available for the MODBUS address direct specification
type. It is invalid for other types.
Result storage device specified by [D3] is invalid.
8.4 MODBUS RTU Master Communication (SEND)
WUME-FP7COM-07 8-37