9.5.2 Start Code "STX", End Code "ETX":
Receiving process: Reception done flag and GPRECV instruction are related as
follows:
● 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, X1, X2, X3) turns ON. The reception done flag (X0, X1, X2, X3)
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, X5, X6, X7) turns OFF.
● The data without the Code STX at the reception is saved in the reception buffer, and the
“reception done” flag turns on when the end code is received.
● However, if the code STX is added in the middle of the data, the data are saved from the
beginning of the reception buffer.
9.5 Sending/Receiving Flag Operation
WUME-FP7COM-07 9-29