Panasonic FP0R User Manual page 143

Hide thumbs Also See for FP0R:
Table of Contents

Advertisement

Communication
7. F159_MTRN is executed at the same time the end code is received from the external
device. F159_MTRN turns the "reception done" flag to FALSE. Therefore, this flag will
not be detected.
NOTE
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.
If two start codes are received from the external device, data following the
second start code overwrites the data in the receive buffer.
Sending data:
1
STX
2
3
a
b
4
5
<2>
<1>
1
Data to be sent
2
"Transmission done" flag
3
F159_MTRN execution
When sending data, operation is as follows:
F159_MTRN is executed to send data to the external device. When F159_MTRN is executed:
1. The "transmission done" flag turns to FALSE.
2. The start code is sent automatically.
3. The number of bytes to be sent is set in offset 0 of the send buffer.
4. The characters a and b are sent to the external device.
- The end code is automatically added to the data sent.
- While F159_MTRN is being executed, no data can be received. (The
142
a
b
ETX
a
a
a
b
b
b
6
<0>
<0>
4
Send buffer
5
Number of bytes to be sent
6
Write pointer
c
d
e
STX
c
c
c
c
d
d
d
d
e
e
e
e
<3>
<2>
<1>
<0>
ETX
TRUE
FALSE
TRUE
FALSE
c
d
e
<0>

Advertisement

Table of Contents
loading

Table of Contents