Panasonic FP7 Series Command Reference Manual page 812

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

15.3 GPRECV (General-Purpose Communication Receive Instruction)
I/O allocation (in the case of CPU with built-in SCU)
COM Port No.
1
2
X0
X1
X4
X5
I/O allocation (in the case of Serial Communication Unit)
COM Port No.
1
2
3
X0
X1
X2
X4
X5
X6
Precautions during programming (in the case of SCU)
● Use the UNITSEL instruction immediately before the GPRECV instruction to specify a target
port for communication.
● When the general-purpose communication received flag is ON for the targeted COM port,
execute GPRECV.
● When multiplex reception is in progress, the received flag remains ON after the received
data have been copied using the GPRECV instruction. The received data cannot be copied
at the leading edge of the reception done signal.
● The received data copied by the GPRECV instruction do not include a start code or an end
code.
● It is also possible to receive binary data using the GPRECV instruction. In this case, "time"
should be used for the end setting.
● The received data or the received data amount do not include the end code. (It is stripped
off.)
● In the case of SCU which has eight 4096-byte buffers inside, data equivalent to the eight
buffers can be received consecutively.
● If the reception of the ninth datum of data is performed by SCU before the GPRECV
instruction is executed to take out data from SCU's receive buffer, a buffer FULL error occurs
in SCU, and the ninth datum is discarded.
● If the GPRECV instruction is executed when the receive buffer FULL error is on, the oldest
received datum is taken out, and the receive buffer FULL error is canceled.
● When no data have been received, the general-purpose communication control flag
(received copy flag) turns OFF.
● After data have been received, and copy to the operation memory of the CPU unit has been
completed, the general-purpose communication control flag (received data copied flag) turns
ON.
15-18
Name
0
General-purpose
X2
communication received
flag
General-purpose
X6
communication received
data copied flag
Name
4
General-purpose
X3
communication received
flag
General-purpose
X7
communication received
data copied flag
Description
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.
Description
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.
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents