Communication
FPΣ User's Manual
200
8.6.5.1 Start Code: No-STX; End Code: CR
Receiving and sending data:
A
B
C
CR
F
G
13CR
A A
B B
C
A
B
C
A
B
C
E
F
C
E
B
G
E
<1> <2> <3> <0> <1> <2> <3>
E
2
D
TRUE
FALSE
TRUE
FALSE
TRUE
FALSE
1
2
3
4
5
6
7
8
1
Data received from external device
5
Data sent to external device
2
"Reception done" flag
6
Receive buffer
3
F159_MTRN execution
7
Number of bytes received
4
"Transmission done" flag
8
Write pointer
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. When the end code is received, the "reception done" flag turns to TRUE. Reception of
any further data is prohibited. (Character D is not stored.)
3. F159_MTRN is executed to send response data to the external device. When
F159_MTRN is executed:
- The receive buffer is reset.
- The "reception done" flag turns to FALSE.
- The "transmission done" flag turns to FALSE.
- The communication error flag turns to FALSE.
- Characters 1, 2, and 3 are sent to the external device.