F-54
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
8 Creating Programs (RS2 Instruction)
8.2 How to Use RS2 Instruction
2. Receive data and amount of data already received
Caution
The 8-bit mode is not applicable in RS2 instruction.
D202
CR
LF
45H
highest
-order
byte
44H
lowest
-order
byte
Header Data area Terminator
Receive data
4
3
2
1
0
DLE
D8410
lowest
-order
byte
STX
D8410
highest
-order
byte
35H
D200
lowest
-order
byte
36H
D200
highest
-order
byte
37H
D201
lowest
-order
byte
38H
D201
highest
-order
byte
DLE
D202
lowest
-order
byte
ETX
highest
-order
byte
00H 35H 6BH A2H DAH EDH
It is set when
receiving is
completed
M8403
Receiving complete
D8403
Amount of data
already received
D8415
Receiving sum
(calculation result)
Reset it in a
program
EAH
00H
6
5
It is cleared
when the
receiving
complete flag
is cleared
The calculation
result is converted
into ASCII codes,
and compared
It is cleared when
header is received.
Sum data . . . . .
The order is different
from the data area
Sum Sum