Panasonic FPS Series User Manual page 219

Table of Contents

Advertisement

Communication
3. Characters D and E received from the external device are stored in the receive buffer.
4. When the end code is received, the "reception done" flag turns to TRUE. Reception of
any further data is prohibited. (Character F is not stored.)
5. When F159_MTRN is executed:
- The number of bytes received is set to 0 in offset 0 of the receive buffer.
- The "reception done" flag turns to FALSE.
- The number of bytes received is set to 0 in offset 0 of the receive buffer.
(Character G is stored.)
6. The start code "STX" resets the receive buffer. (Character H is stored.)
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>
Data to be sent
1
"Transmission done" flag
2
F159_MTRN execution
3
202
a
b
ETX
a
a
a
b
b
b
6
<0>
<0>
c
d
e
STX
c
c
c
c
d
d
d
d
e
e
e
e
<3>
<2>
<1>
<0>
Send buffer
4
Number of bytes to be sent
5
Write pointer
6
FPΣ User's Manual
ETX
TRUE
FALSE
TRUE
FALSE
c
d
e
<0>

Advertisement

Table of Contents
loading

Table of Contents