105
V400-F050/250/350
User’s Manual
Appe
ndix
FCS Chec
k Progr
am Example (
B
ASIC)
Appendix
FCS Calculation Method
The FCS (Frame Check Sequence) is the result of taking the XOR for each byte
between the header and footer (8 bits) and converting it to 2 characters of ASCII.
The FCS can be attached to output data to improve the reliability of communications.
Each time data is received, the PC calculates the FCS and checks it against the FCS
attached to the sent data so that the send data can be checked for errors.
FCS Setting p.47
Calculation Example for Sending FCS
Sample read data: ABCDEFG
The details of the read data and calculation method are as follows:
A B C D E F G 4 0
0100
0100
0100
0100
0100
0100
0100
0001
0010
0011
0100
0101
0110
0111
A
B
C
D
E
F
G
41
42
43
44
45
46
47
XOR
XOR
XOR
XOR
XOR
XOR
0100 0000
• Read data
Header
Footer
Read data
FCS
• Calculation method
Read data
ASCII
Hexadecimal
Converted to
ASCII
Converted to
hexadecimal
values
Obtaining the
exclusive OR
Converted to
ASCII
FCS data: 4 0
Summary of Contents for 2D CODE READER
Page 1: ...USER S MANUAL 2D Code Reader V400 F050 250 350 Cat No Z242 E1 03...
Page 13: ...12 Introduction Contents V400 F050 250 350 User s Manual Introduction MEMO...
Page 85: ...84 Section 6 Troubleshooting V400 F050 250 350 User s Manual Section 6 Troubleshooting MEMO...