Reference Guide

Table Of Contents
OCR Programming
348
OCR Check Digit Validation
Parameter # 694 (SSI # F1h B6h)
Use the following options to protect against scanning errors by applying a check digit validation scheme.
None
No check digit validation, indicating no check digit is applied. This is the default.
Product Add Left to Right
Each character in the scanned data is assigned a numeric value (see <bl_blue><em_Emphasis>OCR
Check Digit Multiplier on page 17-346). Each digit representing a character in the scanned data is
multiplied by its corresponding digit in the multiplier, and the sum of these products is computed. The
check digit passes if this sum modulo Check Digit Modulus is zero.
Example:
Scanned data numeric value is 132456 (check digit is 6)
Check digit multiplier string is 123456
Digit 1 3 2 4 5 6
Multiplier 1 2 3 4 5 6
Product 1 6 6 16 25 36
Product add 1+ 6+ 6+ 16+ 25+ 36= 90
The Check Digit Modulus is 10. It passes because 90 is divisible by 10 (the remainder is zero).
Product Add Right to Left
Each character in the scanned data is assigned a numeric value (see <bl_blue><em_Emphasis>OCR
Check Digit Multiplier on page 17-346). The check digit multiplier is reversed in order. Each value
representing a character in the scanned data is multiplied by its corresponding digit in the reversed
*No Check Digit
(0)
Product Add Left to Right
(3)
guide-user-color-8.5x11.book Page 348 Monday, June 1, 2020 5:43 PM
Draft v 10