Chapter
10
Operating Instructions
Compact OMNI Scanner
10-26
©
SICK AG · Division Auto Ident · Germany · All rights reserved
8 009 237/0000/07-05-2002
Appendix
10.9
Tables
10.9.1
Calculating the code length of a bar code
The code length of a bar code is the number of useful 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
1.
Count the bars and gaps as specified in
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 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
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 CLX read result is output)
2.
With only few exceptions each printed character that has 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 CLX
can be larger than the number of characters in the printed code because it comprises several character sets.
Table 10-6: Formulas for calculating the code length of a bar code