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

Cpu unit. com port communication
Hide thumbs Also See for FP7:
Table of Contents

Advertisement

7.4 Receiving Operation

7.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 command 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 command.
 In the UNITSEL command, specify the slot No. (U0) and the COM. port 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).
X0
DF
R100
 I/O allocation
COM port no.
1
2
0
X0
X1
X2
X4
X5
X6
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 command to a given data register
UNITSEL
GPRECV . US
Name
General-purpose
communication reception
done flag
General-purpose
communication reception
copy done flag
Receive message/data
1 2 3 4 5(CR)
R100
U0
U1
S1
S2
DT200
DT209
S1
S2
Turns ON when the receiving process is completed in
the general-purpose communication mode.
Turns ON when the GPRECV command is executed
and the received data have been copied into the
specified operation memory. Turns OFF when there are
no applicable data.
7.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)
Explanation
7-9

Advertisement

Table of Contents
loading

Table of Contents