Operating instructions
Chapter
10
ICR 84x Image Code Reader
Appendix
8 010 961/0000/10-05-2005
©
SICK AG · Division Auto Ident · Germany · All rights reserved
10-27
10.6
Auxiliary tables
10.6.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
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 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
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 ICR 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
ICR can be larger than the number of characters in the printed code because it comprises several character sets.
Table 10-3: Formulas for calculating the code length of a bar code