Operating Instructions
Chapter
10
CLV 45x Bar Code Scanner
Appendix
8 009 139/K949/06-06-2002
©
SICK AG · Division Auto Ident · Germany · All rights reserved
10-39
10.8
Auxiliary tables
10.8.1
Calculating the code length of a bar code
The code length of a bar code corresponds to the number of used characters in the printing
image including the check digits (if they exist). The code length must be specified in CLV-
Setup.
If the code type of a bar code is known, the code length can be calculated by counting the
bars and gaps. The relevant calculation equations are provided in
1.
Count the bars and gaps as specified in
. Do not forget to include the start
and stop characters.
2.
Calculate the code length in accordance with the equation specified in the table.
3.
Enter the value in CLV-Setup as described in Column 4 in the table.
Code type
Count
Calculation of code length
1)2)
Entry in CLV-Setup
Code 39
Number of bars
Number – 10
I
Code
= —————————
5
Calculated code length
2/5 Interleaved
Number of wide ele-
ments (bars and gaps)
Number – 1
I
Code
= —————————
2
Calculated code length
EAN
Not applicable
13 characters (normal version)
8 characters (short version)
Activate 13-digit
Activate 8-digit
UPC
Not applicable
12 characters (UPC A, normal version)
6 characters (UPC E, short version)
Activate Version A
Activate version E
Codabar
Number of bars
Number – 8
I
Code
= —————————
4
Calculated code length
Code 128
(character set A)
Number of bars
Number – 10
I
Code
= —————————
3
Calculated code length
Code 93
Number of bars plus
separator after the
stop character
Number – 13
I
Code
= —————————
3
Calculated code length
EAN 128
Number of bars
Number – 10
I
Code
= —————————
3
Calculated code length
Pharmacode
Number of bars
Number
Number = code length
1.
Check digit optional for Code 39, 2/5 Interleaved, Codabar.
Check digit always integrated in printed bar code with EAN, UPC, Code 128, Code 93, EAN 128
(suppressed automatically when the CLV read result is output)
2.
With few exceptions each printed character corresponds to an ASCII character which has to be decoded.
With Code 39 extended, Code 93, Code 128 and EAN 128, the number of characters in the data string of the CLV
can be larger than the number of characters in the printed code because it comprises several character sets.
Table 10-7: Auxiliary table for calculating the code length of a bar code