9.4 Receiving Operation
■
Available operation units (●: Available)
Operatio
bit
n unit
i
■
List of operands
Operand
Description
D1
Starting address of the received data storage data area
D2
Ending address of the received data storage data area
■
Available devices (●: Available)
Operan
d
W
W
X
Y
(Note
D1
●
●
1)
(Note
D2
●
●
1)
(Note 1)
Always 16-bit data/device, regardless of the specification of operation units [i].
■
Outline of operation
● This instruction reads data that is sent from an external device and received by the
communication port of the unit.
● This instruction reads received data from the communication unit and the communication
port set by the UNITSEL instruction, and stores the number of received bytes in the area
specified by [D1] and the received data in the areas [D1+1] to [D2].
● In the case of SCU, data received from the partner are stored in 8 receive buffers for each
COM port. By executing the GPRECV instruction, data in the receive buffer can be copied to
a given operation memory.
● In the case of CPU with built-in ET-LAN, data received from the partner are stored in 1
receive buffer for each connection. By executing the GPRECV instruction, data in the receive
buffer can be copied to a given operation memory.
■
Amount of received data and end code
Items
Number of received
data
End code
identification
(Note 1)
For SCU, up to 4096 bytes can be sent, including a start code and an end code. The start code and
end code are set from the configuration menu of the tool software or with the PMSET instruction.
9-22
US
●
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
SCU
(Note 1)
0 to 4096
Yes (according to the SCU communication
settings (end settings))
SS
UL
●
32-Bit
device:
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
Real
Integer
numbe
r
D
IX
K
H
SF
U
F
In the case of CPU with built-in ET-
LAN
0 to 16384
No identification
WUME-FP7COM-07
DF
St
rin
g
Index
modifie
r
" "
●
●