Operating Instructions Chapter 10
CLV 42x bar code scanner
Appendix
8 009 981/O078/16-08-2004 © SICK AG · Division Auto Ident · Germany · All rights reserved 10-25
10.8 Tables
10.8.1 Calculating code length of a bar code
The code length of a bar code is the number of used characters in the printed code including
the check digit (if present). This 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 formulas are provided in
Table 10-5.
1. Count the bars and gaps as specified in Table 10-5. Do not forget to include the start
and stop characters.
2. Calculate the code length using the formula in the table.
3. Enter the value in CLV Setup as described in column 4 of 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
elements (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 with 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 reading result is output)
2) With only a few exceptions, every printed character to be decoded corresponds to an ASCII character.
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-5: Formulas for calculating the code length of a bar code