General-Purpose Communication
7.4.4 Operations of the "Reception done copy" flag and multiplex reception
Operation and function of the "reception done copy" flag (X4, X5, X6)
The "reception done copy" flag (X4, X5, X6) turns ON when the GPRECV command is
executed and data are copied from the reception buffer to the specified operation memory,
and turns OFF when the END command is executed.
Processing in the case of multiplex reception
If the time from the reception of data in the reception buffer to the subsequent data reception
is shorter than the PLC scan time, and the receiving frequency is high, it is possible that the
reception done flag (X0, X1, X2) remains ON and cannot detect sequential receptions.
In cases where it is necessary to process sequentially received data, constantly execute the
GPRECV command, in combination with the "reception done copy" flag (X4, X5, X6).
Referring to the "reception done copy" flag (X4, X5, X6), you can confirm whether there are
lately received data.
Reception
buffer data
Reception
done flag
(X0, X1, X2)
Execute
GPRECV
command
Reception done
copy flag
(X4, X5, X6)
1 scan time
7-12
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
C
C
R
R
After always executing GPRECV command, confirm
whether there are lately received data referring to the
reception done copy flag (X4, X5, X6).
In the case of sequential receptions, the
reception done flag (X0, X1, X2) remains ON.