Start Code: Stx; End Code: Etx - Panasonic FPS Series User Manual

Table of Contents

Advertisement

FPΣ User's Manual
- The end code is automatically added to the data sent.
- While F159_MTRN is being executed, no data can be received. (The
"transmission done" flag is FALSE.)
4. When the specified number of bytes has been sent, the "transmission done" flag turns
to TRUE.
5. Characters E, F, and G received from the external device are stored in the receive
buffer.
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.

8.6.5.2 Start Code: STX; End Code: ETX

Receiving data:
1
C
A
B
2
3
A
A
A
B
B
4
C
5
<1>
<2>
<3>
Data received from external device
1
"Reception done" flag
2
F159_MTRN execution
3
When receiving data, operation is as follows:
1. Characters A, B, and C received from the external device are stored in the receive
buffer.
2. The start code "STX" resets the receive buffer.
D
E
STX
ETX
A
D
D
D
B
B
E
E
C
C
C
C
<0>
<1>
<2>
<2>
:
8.6 Program Controlled Communication
F
G
STX
D
G
E
E
C
C
<0>
<1>
<0>
6
Receive buffer
4
Number of bytes received
5
Write pointer
6
H
ETX
TRUE
FALSE
TRUE
FALSE
G
H
H
E
E
E
C
C
C
<1>
<1>
201

Advertisement

Table of Contents
loading

Table of Contents