Receiving Operation; Overview Of Receiving Operation - Panasonic AFP7CPS4E User Manual

Fp7 series, programmable controller
Table of Contents

Advertisement

9.4 Receiving Operation

9.4.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.
Reception buffer (eight for each COM port)
・・・・・・
・・・・・・
Operation
・・・・・・
memory
・・・・・・
DT200
U 5
DT201
H 32 31
DT202
H 34 33
H ・・・ 35
DT203
 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
(Note) The unit number and COM port number in the above program is applied when the COM.1 port of the CPU unit
is used.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
PLC
H 31 32 33 34 35
・・・・・・・・
・・・・・・・・
・・・・・・・・
Transfer the strings received based on
GPRECV instruction to a given data register
UNITSEL
GPRECV . US
Receive message/data
1 2 3 4 5(CR)
R100
U0
U1
S1
S2
DT200
DT209
S1
S2
9.4 Receiving Operation
External device
00001
2 1
00002
4 3
・・ 5
00003
・・・・・・
・・・・・・・・
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)
9-9

Advertisement

Table of Contents
loading

Table of Contents