Chapter
10
Operating Instructions
CLP 100 Bar Code Reader
Appendix
40
©
SICK AG · Division Auto Ident · Germany · All rights reserved
8 008 912/0000/21-08-2002
10.5
Calculation of 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 fixed code length can be specified in the
CLP Setup.
The code length can be determined by counting the bars and gaps if the code type of a bar
code is known. The respective equation for calculation is shown in
Table 10-2
1. Count the bars and possibly gaps as specified in
Table
. Also count the start and
stop characters.
2. Calculate the code length in accordance with the equation specified in the table.
3. Carry out the input in the CLP Setup as specified in Column 4 of
Table 10-2
.
Code type
Count
Calculation of the code length
1)2)
Input in the CLP Setup
Code 39
Number of bars
Calculated code length
2/5 Interleaved
Number of wide elements
(bars and gaps)
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)
8 characters (UPC E, short version)
Activate Version A
Activate Version E
Codabar
Number of bars
Calculated code length
Code 128
(character set A)
Number of bars
Calculated code length
EAN 128
Number of bars
Calculated code length
1) Check digit optional for Code 39, 2/5 Interleaved, Codabar.
Check digit always integrated in the bar code print at EAN, UPC, Code 128, EAN 128 in accordance with specification
(is suppressed automatically at the output of the read result of the CLP 100)
2) With few exceptions each printed character corresponds to an ASCII character which has to be decoded.
In the case of Code 39 extended, Code 128 and EAN 128 the number of characters in the data string of the CLP 100 can exceed the number of characters in the printing
image because it consists of several character sets.
Tab. 10-2: Auxiliary table for calculating the code length of a bar code
I
Code
Number
10
–
5
----------------------------------
=
I
Code
Number
1
–
2
---------------------------------
=
I
Code
Number
8
–
4
---------------------------------
=
I
Code
Number
10
–
3
------------------------------------
=
I
Code
Number
10
–
3
------------------------------------
=