(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, reads the data from
the data areas DT400 to DT401 of the external device (station number 1), and writes the
data into the data registers DT100 to DT101 of the PLC.
● 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 RECV instruction.
● Using the UNITSEL instruction, specify the slot number (U0) and the COM. port number
(U1).
● In the RECV instruction, specify and execute the partner station number (U1), starting
address (DT400), data amount (U2), and PLC's starting address to store the data (DT100).
R0
Master
communication
clear to send flag
R100
UNITSEL
U0
U1
RECV.US
DT0
U2
DT100
U1
DT400
XC
YC
Master
communication
sending flag
R100
RECV
execution
Settings for the communication
port
S1: Slot 0
S2
:
COM1
RECV execution start conditions
Clear to send flag: ON
Sending flag: OFF
RECV processing
S1: Partner unit no. (U1)
S2: Data address (DT400)
n:
Data amount (U2)
D1: Data storage area (DT100)
D2: Execution result code (DT0)
(
(
)
)
DF
S1
S2
S1
S2
n
D1
D2
■
Time chart (in the case of SCU)
Checks that the
flag is OFF
RECV execution
Master communication
sending flag
(
YC,YD,YE,YF
)
Master communication
sent flag
(
Y0,Y1,Y2,Y3
)
Data sending
Response reception
processing
Master communication
clear to send flag
(
XC,XD,XE,XF
)
Checks that the
flag is ON
RECV Instruction executable conditions
Clear to send flag (XC,XD,XE,XF): ON
Sending flag (YC,YD,YE,YF): OFF
Sent flag (Y0,Y1,Y2,Y3):
Normal completion: OFF
Abnormal completion: ON
Sending flag (YC,YD,YE,YF):
While sending: ON, Sending done: OFF
15.5 RECV (MEWTOCOL Master / MODBUS Master)
15-32
WUME-FP7CPUPGR-12
Summary of Contents for FP7 Series
Page 2: ... MEMO 2 WUME FP7CPUPGR 12 ...
Page 18: ... MEMO xviii WUME FP7CPUPGR 12 ...
Page 52: ... MEMO 1 34 WUME FP7CPUPGR 12 ...
Page 104: ... MEMO 2 52 WUME FP7CPUPGR 12 ...
Page 123: ...3 9 ANS AND stack WUME FP7CPUPGR 12 3 19 ...
Page 125: ...3 10 ORS OR Stack WUME FP7CPUPGR 12 3 21 ...
Page 129: ...3 11 PSHS Push stack RDS Read stack POPS Pop stack WUME FP7CPUPGR 12 3 25 ...
Page 190: ...3 26 JP LBL Jump Label 3 86 WUME FP7CPUPGR 12 ...
Page 239: ...Name Description SR8 ER 3 46 ST ST ST ST ST ST Data Comparison Start WUME FP7CPUPGR 12 3 135 ...
Page 246: ... MEMO 3 142 WUME FP7CPUPGR 12 ...
Page 258: ... MEMO 4 12 WUME FP7CPUPGR 12 ...
Page 304: ... MEMO 5 46 WUME FP7CPUPGR 12 ...
Page 321: ...Name Description ER 6 7 DIVFP2 Division FP2 Compatible WUME FP7CPUPGR 12 6 17 ...
Page 348: ... MEMO 6 44 WUME FP7CPUPGR 12 ...
Page 388: ... MEMO 7 40 WUME FP7CPUPGR 12 ...
Page 438: ... MEMO 8 50 WUME FP7CPUPGR 12 ...
Page 450: ... MEMO 9 12 WUME FP7CPUPGR 12 ...
Page 520: ... MEMO 10 70 WUME FP7CPUPGR 12 ...
Page 602: ... MEMO 11 82 WUME FP7CPUPGR 12 ...
Page 622: ... MEMO 12 20 WUME FP7CPUPGR 12 ...
Page 650: ... MEMO 13 28 WUME FP7CPUPGR 12 ...
Page 1160: ... MEMO 18 66 WUME FP7CPUPGR 12 ...
Page 1188: ... MEMO 19 28 WUME FP7CPUPGR 12 ...
Page 1220: ... MEMO WUME FP7CPUPGR 12 ...
Page 1221: ... MEMO WUME FP7CPUPGR 12 ...