9.4 Receiving Operation
9.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 instruction is executed in a
user program, data in the reception buffer can be copied into a given 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).
(Note 1) The unit number and COM. port number in the above program is applied when the COM.1 port of the
CPU unit is used.
■
I/O allocation (CPU Unit)
COM. port no.
Name Description
1 2 0
X0 X1 X2
General-purpose
communication Reception
done flag
Turns ON when the receiving process is completed in
the general-purpose communication mode.
X4 X5 X6
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.
9.4 Receiving Operation
9-18 WUME-FP7COM-07