11 - 24 DS457-XX20004ZZWW Fixed Mount Imager Integration Guide
Multiple Templates
This feature sets up multiple templates for OCR decoding. To do this, follow the procedure described in OCR
Template on page 11-15 (scan the OCR Template bar code, then bar codes corresponding to numbers and
letters to form the template expression, then
End of Message) for each template in the multiple template string,
using a capital letter X as a separator between the templates.
For example, set the OCR Template as 99999XAAAAA to decode OCR strings of either 12345 or ABCDE.
Template Examples
Following are sample templates with descriptions of valid data for each definition.
Field Definition Description
"M"99977 M followed by three digits and two optional digits.
"X"997777"X"
X followed by two digits, four optional digits, and an X.
9959775599 Two digits followed by any character, a digit, two optional digits, any two
characters, and two digits.
A55"-"999"-"99 A letter followed by two characters, a dash, three digits, a dash, and two digits.
33A"."99 Two alphanumeric characters followed by a letter, a period, and two digits.
999992991 Five digits followed by an optional alpha, two digits, and an optional alphanumeric.
"PN98" Literal field -
PN98
OCR Check Digit Modulus
Parameter # 688 (SSI # F1h B0h)
This option sets OCR module check digit calculation. The check digit is the last digit (in the rightmost position)
in an OCR string and improves the accuracy of the collected data. The check digit is the end product of a
calculation made on the incoming data. For check digit calculation, for example Modulus 10, alpha and
numeric characters are assigned numeric weights (see OCR Check Digit Multiplier on page 11-25). The
calculation is applied to the character weights and the resulting check digit is added to the end of the data. If
the incoming data does not match the check digit, the data is considered corrupt.
The selected check digit option does not take effect until you set
OCR Check Digit Validation.
To choose the Check Digit Modulus, such as 10 for modulo 10, scan the following bar code, then scan a
three-digit number from 001 to 099 representing the check digit using the Numeric Keypad from the Advanced
Data Formatting Programmer Guide. The default is
1.
OCR Check Digit