General-Purpose Communication
6.3 Receiving Operation
6.3.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.
External device
・・・・・・
H 31 32 33 34 35
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
PLC
00001
2 1
00002
4 3
00003
・・
5
・・・・・・
・・・・・・・・
1 2 3 4 5(CR)
Receive message/data
DT200
U 5
DT201
H 32 31
DT202
H 34 33
DT203
H
・・・
35
Reception buffer (eight for each COM port)
Transfer the strings received based on
GPRECV instruction to a given data register
Operation
memory
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).
GPRECV
.
US
DT209
DT200
R100
UNITSEL
U1
U0
X0
(
)
DF
R100
GPRECV processing
S1: Header of
Received Data (DT200)
S2: Terminator of
Received Data (DT209)
GPRECV execution conditions
Reception done flag: ON
S1
S2
S1
S2
Settings for communication port
S1: Slot 0 Built in CPU (U0)
S2: COM1 (U1)
I/O allocation
COM port no. 1
Name
Explanation
X0
General-purpose
communication Reception
done flag
Turns ON when the receiving process is completed in
the general-purpose communication mode.
X4
General-purpose
communication Reception
copy done flag
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.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Содержание AFP7CCET1
Страница 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 ...