Sending/Receiving Flag Operation; No Header (Start Code), Terminator (End Code) "Cr - Panasonic AF7CPS Series User Manual

Table of Contents

Advertisement

6.4 Sending/Receiving Flag Operation

6.4.1 No Header (Start Code), Terminator (End Code) "CR":

The "reception done" flag, the "sending active" flag, the GPSEND instruction, and the
GPRECV instruction are related as follows:
Data received
from external
A
device
Stored
A
SCU
receive bu ffer
No. of bytes
<1>
received
Reception
done flag
X0
GPRECV
instruction
execution
GPSEND
instruction
execution
General-purpose
communication
Sending active flag
Y8
Transmitted
data
Receive bu ffer
specified using
GPRECV instruction
 The COM port has eight reception buffers. The reception process is continued after the
reception done flag (X0) turns ON. The reception done flag (X0) does not turn OFF
immediately following the execution of GPRECV instruction. It will be turned off at the
beginning of the next scan or later.
 After GPSEND instruction is executed, data transmission is started in several μs to several
tens of ms. For time before transmission is started, please refer to the communication cycle
time (SM208-SM210) using the system monitor function.
C
D
B
CR
A
A
D
B
B
C
<1>
<2>
<3>
6.4 Sending/Receiving Flag Operation
Data can be received until eight
receive bu ffers are all filled up even
if the reception done flag is turned on.
1
2
3
No. of bytes received
3
A
B
C
E
F
G
D
D
D
E
E
E
F
F
G
<2>
<3>
<4>
After GPRECV instruction is
executed, reception done
flag turns off at the beginning
of next scan or later.
CR
ON
OFF
ON
OFF
ON
OFF
ON
OFF
6-13

Advertisement

Table of Contents
loading

Table of Contents