■
Execution result code [D3]
Code Description Code Description
H0 Normal end H6
Reception error
(Note 1)
H1
The communication port is being used in the
master communication.
H7
I/O allocation shortage error
(Note 2)
H2
The communication port is being used in the
slave communication.
H41 Format error
H3
The number of master communication
instructions simultaneously used is
exceeded.
H60 Parameter error
H4 Transmission timeout H61 Data error
H5 Response reception timeout H91 Missing expansion slave unit error
(Note 1) It occurs when an abnormal telegram is received. When there is a format error in the header of an
individual protocol, the communication discards the received data and a response reception timeout
occurs.
(Note 2) It occurs when the communication control I/O relays corresponding to the communication port (master
communication clear to send flag, master communication send active flag, master communication
send done result relay)are not allocated as I/O words of the CPU unit in the I/O map. It occurs only
when the number of user connections of ET-LAN is expanded and this instruction is executed
specifying the expanded connections.
■
Sample program (in the case of SCU)
● This program sends the command from the COM1 port of the CPU unit to write the content
of PLC's data registers DT100 to DT101 into the data areas DT400 to DT401 of the external
device (station number 1).
● This program checks that the master mode is on (XC) and that sending is not in progress in
the same port (YC), and then starts up the SEND instruction.
● Using the UNITSEL instruction, specify the slot number (U0) and the COM. port number
(U1).
● In the SEND instruction, specify and execute the source's starting address (DT100) and data
amount (U2), the destination's station number (U1) and starting address (DT400).
R0
R100
UNITSEL U0 U1
SEND.US DT0U1 DT400DT100 U2
R100
SEND
execution
Settings for the communication
port
S1: Slot 0 (U0)
S2: COM1 (U1)
SEND execution conditions
Clear to send flag: ON
Sending flag: OFF
SEND processing
S: Data storage area (DT100)
n: Sent data amount (U2)
D1: Partner unit no. (U1)
D2: Destination address (DT400)
D3: Execution result code (DT0)
Master
communication
clear to send flag
XC YC
Master
communication
sending flag
(( ))
DF
S1 S2
S1 n D1 D2 D3
7.4 MEWTOCOL-COM Master Communication (SEND)
7-20 WUME-FP7COM-07