Receiving Operation; Overview Of Receiving Operation - Panasonic FP7 CPU Unit User Manual

Lan port communication
Table of Contents

Advertisement

General-Purpose Communication

7.3 Receiving Operation

7.3.1 Overview of Receiving Operation

 Procedures
In the general-purpose communication mode, data received from the partner device are saved
in the same reception buffer for each connection. When the GPRECV command is executed
in a user program, data in the reception buffer can be copied into a given operation memory.
PLC
Reception buffer (one for each connection)
H 31 32 33 34 35
・・・・・・
・・・・・・
・・・・・・・・
Operation
・・・・・・
・・・・・・・・
memory
・・・・・・
・・・・・・・・
DT200
U 5
DT201
H 32 31
DT202
H 34 33
DT203
H
35
Note: The above figure indicates the data part. In communication via LAN, a header including size information of the sent data is added.
 Sample program
• When the reception done flag (X70) for Connection 1 turns ON, the reception program is
started up by the GPRECV command.
• In the UNITSEL command, specify the slot No. (LAN port: U100) and the connection No.
(U1).
• In the GPRECV command, specify and execute the header of the data table where the
received message is saved (DT200) and the final address (DT209).
X70
DF
R100
7-8
Receive message/data
1 2 3 4 5
Transfer the received data to a given operation
memory based on GPRECV command.
UNITSEL
U100
S1
GPRECV . US
DT200
S1
External device
00001
2 1
00002
4 3
00003
・・・5
・・・・・・
・・・・・・・・
R100
GPRECV execution conditions
Reception done flag: ON
Settings for communication port
S1: CPU LAN port (U100)
U1
S2: Connection 1 (U1)
S2
Execute GPRECV command
S1: Header of
Received Data (DT200)
DT209
S2: Terminator of
S2
Received Data (DT209)

Advertisement

Table of Contents
loading

Table of Contents