Creating a user-defined variable – Hand Held Products 4410 User Manual

Page 119

Advertising
background image

4 - 7

Stringing Together Multiple Formats
(Creating “Or” Statements)

You may want to program the scanner to accept many OCR formats. To do this,
you would string together each format with a “t.” This tells the scanner to read
optical characters that match any one of the formats in the template.

Example D: You need to read any combination of 8 digits, or a combination
of 4 digits, 2 uppercase letters, and 2 digits. The template would be:

ddddddddtddddlldd

To create this template, you would scan the

Enter OCR Template symbol

(page 4-10), scan the

d from the OCR Programming Chart after the Sample

Codes in the back of this manual 8 times, then scan the

t to create the “or”

statement. Then you would scan the characters for the 2nd template. Scan
the

d 4 times, scan l 2 times, then scan d 2 more times. Scan Save OCR

Template (page 4-11). This would let you read either type of format, for
example:

99028650

or

9902XZ50

You can string together as many templates as you need.

Creating a User-Defined Variable

You can create up to two of your own user variables for an OCR template. These
variables will represent any OCR readable characters. The user-defined
variables are stored under the letters “g” and “h.” Creating a user variable follows
the same steps as creating a template, but instead of scanning the

Enter OCR

Template symbol, you scan the Enter User-Defined Variable symbol (page 4-
10
). The letters g and h can then be used in an OCR template to define the
variable you specified.

Example E: You need a variable to represent the letters “A,” “B,” or “C.” The
template for this variable would be:

414243

To create this template, you would scan the

Enter User-Defined Variable g

symbol (page 4-10). Scan

414243 from the inside back cover (the hex

characters for “A,” “B,” and “C”). Scan

Save OCR Template (page 4-11).

This will let you read either A or B or C in any position where you place the g.
For example, you could create the following template:

ddddddggg

Advertising