Panasonic FP7 CPU Unit User Manual page 71

Lan port communication
Table of Contents

Advertisement

 Timing chart
• Data received from an external device are saved in the reception buffer for each connection.
• When data are received, the "reception done" flag (X70 - X7F) turns ON.
• When the GPRECV command is executed, data are copied into the specified area, and the
reception done flag (X70 - X7F) turns OFF. The reception done flag (X70 - X7F) turns OFF
when the I/O refresh is executed at the beginning of the subsequent scans.
Reception buffer
Received data
Reception done flag
(X70 - X7F)
Execute GPRECV
 I/O number
I/O Allocation
X70 - X7F
 Saving method for received data
When data are saved in a given data register from the reception buffer, based on GPRECV
command, the data are saved in the following manner.
U6
DT200
H32(2)
DT201
H34 (5)
DT202
DT203
H0D (
)
C
R
-----
DT204
-----
-----
KEY POINTS
Specify the connection targeted for communication, using UNITSEL
command immediately before GPSEND command.
The data size that can be received in a single transmission based on
GPRECV command from the LAN port of the FP7 CPU unit is up to 16,384
bytes.
Name
General-purpose
communication reception done
flag
Saves the received No. of bytes.
H31 (1)
The received data are saved in ascending order from
H33 (3)
lower bytes.
H35 (4)
If the received No. of bytes is smaller than the area
-----
specified by the GPRECV command, the data are not
overwritten.
-----
7.3 Receiving Operation
Reception done flag (X70 - X7F):
When reception has been done: ON,
When copying of received data has
been done based on GPRECV
command: OFF
Explanation
Turns ON when the receiving process is completed
in the general-purpose communication mode.
7-9

Advertisement

Table of Contents
loading

Table of Contents