Appendix C: Bar codes
C-12
Character Value
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
A
B
11
C
12
D
13
E
14
Example: bar code data 123LPJ23@
Addition of values: 1+2+3+25+21+19+1+2+3 = 77
Division: 77/43 = 1 Remainder 34
Value 34 = character Y
Checksum (character) = Y
Calculating the Checksum for Code 128
Each of the characters of Code 128 is assigned a reference value.
When calculating the checksum, these values are added after they
have been multiplied by a weighting. The weighting starts at 1 and
is increased by the value 1 for every digit. In addition, the reference
value of the start digit is added.
The total modulo 103 is the checksum.
The reference values are listed in Table 6. The different characters
are divided into three character sets (Code A, B, C). Character set C
consists exclusively of two-digit numbers (00 to 99). Each two-digit
number is assigned a bar code unit. This results in a higher informa-
tion density.
Table 5
Character Value
F
15
G
16
H
17
I
18
J
19
20
K
L
21
M
22
N
23
O
24
25
P
Q
26
R
27
S
28
T
29
Character Value
U
30
V
31
W
32
X
33
Y
34
35
Z
-
36
.
37
Space
38
$
39
40
/
+
41
%
42