General-Purpose Communication
After GPSEND instruction is executed, dual sending to the same port is not possible until the
"sending General-purpose communication Sending active flag" (Y8) turns OFF. The
"General-purpose communication Sending active flag" (Y8) turns OFF in instruction
execution in the next scan or later following completion of data sending.
6.4.2 Start Code "STX", End Code "ETX":
Receiving process: Reception done flag and GPRECV instruction are related as
follows:
A
B
C
STX
D
H
ETX
E
ETX
F
G
STX
E
D
2
ON
OFF
ON
OFF
A
A
B
B
C
A
B
C
A
G
F
G
H
G
H
<1>
<2>
<3>
<0>
<0>
<1>
<1>
B
C
D
<1>
E
C
D
<2>
E
C
D
<2>
G
F
<2>
F
<1>
Data received
from external
device
SCU
receive bu ffer
No. of bytes
received
W
ri
te poi
n
ter
Receive bu ffer
specified using
GPRECV instruction
GPSEND
instruction
execution
No. of bytes received
Reception
done flag
X0
Upon reception of the
start code, the reception
pointer is initialized.
Upon reception of the
start code, the reception
pointer is initialized.
Even in a
"reception done"
status, received
data is continued
into another
buffer, because
there are 4,096 x
8 reception
buffers.
Stored
When the start code is set to "STX", the data are saved in the reception buffer. When the
start code is received, the receive pointer is initialized. If there are two headers, data
following the second header overwrites the data in the reception buffer.
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.
If there are no received data following execution of GPRECV instruction, the reception done
copy flag (X4) turns OFF.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Содержание AFP7CPS Series
Страница 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 15: ...2 Installation and Wiring Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 19: ...3 I O Number Allocation Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 42: ...Setting Communication Conditions Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 51: ...6 General Purpose Communication Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 66: ...General Purpose Communication Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 67: ...7 Specifications Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Страница 78: ...Specifications Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...