128
V530-R2000
User’s Manual
SECTION 9
Appendix
FCS Che
c
k
Pr
ogr
a
mming E
x
a
m
ple
s
(BAS
IC
)
SECTION 9
n
FCS Calculation
FCS (Frame Check Sequence) is the result of taking the XOR for each byte between
the prefix and suffix (8 bits) and converting to 2-character ASCII.
The FCS can be attached to output data to improve communications.
Each time data is received, the Host Link system calculates the FCS and checks it
against the FCS attached to the sent data so that the sent data can be checked for
errors.
An FCS can be appended only if the communications mode is set to
Normal
.
n
Example FCS Calculation
Example 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
Prefix
Suffix
Read data
FCS
·
Calculation
Read data
ASCII
Hexadecimal
Conversion to
ASCII:
Conversion to
hexadecimal:
Obtaining the exclu-
sive logical OR:
On conversion
to ASCII:
FCS data: 4 0
Содержание V530-R2000
Страница 1: ...USER MANUAL Cat No Q134 E1 1A V530 R2000 2D Code Reader Fixed...
Страница 33: ...16 V530 R2000 User s Manual SECTION 2 MEMO...
Страница 55: ...38 V530 R2000 User s Manual SECTION 4 MEMO...
Страница 63: ...46 V530 R2000 User s Manual SECTION 5 MEMO...
Страница 111: ...94 V530 R2000 User s Manual SECTION 7 MEMO...