User manual
V002450_25_CR1200-CR2-CR3-CR2500-CR3500_Interface_Configuration_Document_CLIENT.docx
2011-04-27 Page 52 of 65
© 2011 The Code Corporation
•
14870 S. Pony Express Rd., Suite 200, Bluffdale, UT 84065
•
(801) 495-2200
•
FAX (801) 495-0280
12.4.1 End of Template (0)
All templates end with the End of Template control code.
12.4.2 New Template (1)
A user template may contain multiple distinct templates all within the same string. These distinct
templates all begin with the New Template control code. The value immediately following this control
code indicates the font(s) for which this template is designed. The current valid font values are
Font Value Active Fonts:
1 OCR-A
2 OCR-B
3 OCR-A and OCR-B
As an example, the following byte sequence reads 8 alphanumeric digits in either OCR-A or OCR-B and
is the default user template:
1,3,7,7,7,7,7,7,7,7,0
12.4.3 New Line (2)
The OCR decoder supports multiline templates. A new line within a multiline template is indicated by
the New Line control code.
12.4.4 Define Group Start (3)
In a given character position, the user specifies which values a text character may take. To reduce the
overall size of templates, users may define common groups of ASCII characters and then use the defined
group rather than repeating the same sequence over and over. Groups can be made up of individual
ASCII values or wildcard values. The wildcard values are control codes Numeric (5), Alpha (6),
Alphanumeric (7), and Any(8). Groups may not be nested.
To define a group, specify the Group Start control code followed by a single byte ID value that may
range from 1 to 255. Up to 255 groups may be defined in a single template. Once a group is defined, you
may not define another group with the same group ID. Following its definition, a group may be used in
any subsequent individual template.
For example, say we want to read an 8 character OCR-B text where each character may be a
hexadecimal digit (0123456789ABCDEF). We can define a group that would begin the definition with
the Group Start control code (3), followed by its ID (1), followed by the Numeric wildcard (5),
followed by the ASCII values of the six desired letters. Finally all group definitions are terminated with
the Group End control code (4):
1,2,3,1,5,65,66,67,68,69,70,4,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,0