
- 83 -
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 . 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 the template, you would scan the Enter User-Defined Variable g symbol. Scan 414243 from
Appendix D (the hex characters for “A,” “B,” and “C”). Scan Save OCR Template. 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
This template would then let you read data that began with 6 digits, and had an A, B, or C trailing. So you
would be able to read:
654321ABC
or
654321BAC
or
654321CCC
Reading Multi-Row OCR
The OEM Engine is capable of decoding multi-row OCR text. Consider the following example. This example
shows serial commands as would be entered using Quick*View.
Example G: You need to read multiple rows of OCR data as shown below:
12345678 ABCDEFGH
To read the first row of OCR data, you would menu the following template:
OCRTMP"dddddddd".
This template is the default OCR template. If you wanted to read the second line of data, you would use
the following template:
OCRTMP"llllllll".
To read both lines of OCR at one time, use the variable rto indicate the start of a new row. All of the other
templating variables for the individual rows work the same as previously described. For instance, in the
above example, you would use the following template to read both rows:
OCRTMP"ddddddddrllllllll".
To read the three rows below, you would use the template command
"OCRTMP"ddddddddrllllllllrlllldddd".
Commenti su questo manuale