Panasonic FP0R User Manual page 135

Hide thumbs Also See for FP0R:
Table of Contents

Advertisement

Communication
When the end code is received, the "reception done" flag turns to TRUE. Reception of
any further data is prohibited. The "reception done" flag only turns to TRUE if an end
code, e.g. CR, has been selected in the system registers.
3. Processing the data in the receive buffer
Verify the end of reception.
Copy the data in the receive buffer to a target area defined in the program using a
transfer instruction, e.g. F10_BKMV.
NOTE
For details on the operation of the "reception done" flag, see page 138
4. Preparing the system for the reception of further data
In order to receive the next data, reset the receive buffer. This is done automatically when
sending the next data with F159_MTRN:
Resetting the receive buffer sets the number of bytes received in offset 0 to 0 and
moves the write pointer back to offset 1. Subsequent data will be stored in the receive
buffer starting at offset 1. (The receive buffer is not cleared).
The "reception done" flag turns to FALSE.
To reset the receive buffer without sending further data, execute F159_MTRN with n_Number
= 0.
EXAMPLE
Receive a string of 8 bytes containing the characters "ABCDEFGH" via COM port 1. The
characters are stored in ASCII HEX code without start and end codes.
Data received
"Reception done" flag
Execution condition
134
Beginning of reception
C
(
)
A
B
. . .
T
R
Reception
Reception
possible
not possible
Reception continued
U
V . . .
TRUE
FALSE
TRUE
FALSE
Reception
possible
Execution of F159_MTRN

Advertisement

Table of Contents
loading

Table of Contents