Receiving Operation; Overview Of Receiving Operation - Panasonic AF7CPS Series User Manual

Table of Contents

Advertisement

General-Purpose Communication

6.3 Receiving Operation

6.3.1 Overview of Receiving Operation

 Instructions
In the general-purpose communication mode, data received from the partner device are saved
in eight reception buffers for each COM port. When the GPRECV instruction is executed in a
user program, data in the reception buffer can be copied into a given operation memory.
PLC
Reception buffer (eight for each COM port)
H 31 32 33 34 35
・・・・・・
・・・・・・
・・・・・・・・
Operation
・・・・・・
・・・・・・・・
memory
・・・・・・
・・・・・・・・
DT200
U 5
DT201
H 32 31
DT202
H 34 33
DT203
H ・・・ 35
 Sample program
 When the reception done flag (X0) turns ON, the reception program is started up by the
GPRECV instruction.
 In the UNITSEL instruction, specify the slot No. (U0) and the COM. port No. (U1).
 In the GPRECV instruction, specify and execute the header of the data table where the
received message is saved (DT200) and the final address (DT209).
X0
DF
R100
 I/O allocation
COM port no. 1
X0
X4
6-8
Receive message/data
Transfer the strings received based on
GPRECV instruction to a given data register
UNITSEL
GPRECV . US
Name
General-purpose
communication Reception
done flag
General-purpose
communication Reception
copy done flag
1 2 3 4 5(CR)
R100
U0
U1
S1
S2
DT200
DT209
S1
S2
Explanation
Turns ON when the receiving process is completed in
the general-purpose communication mode.
Turns ON when the GPRECV instruction is executed
and the received data have been copied into the
specified operation memory. Turns OFF when there are
no applicable data.
External device
00001
2 1
00002
4 3
00003
・・ 5
・・・・・・
・・・・・・・・
GPRECV execution conditions
Reception done flag: ON
Settings for communication port
S1: Slot 0 Built in CPU (U0)
S2: COM1 (U1)
GPRECV processing
S1: Header of
Received Data (DT200)
S2: Terminator of
Received Data (DT209)

Advertisement

Table of Contents
loading

Table of Contents