Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 16 of 23

PowerScan 7000 2D Imager Product Reference Guide: OCR Programming, pages 140 to 148

Pages 140 to 148 of 204, from PowerScan 7000 2D Imager Product Reference Guide

The original document is the PDF (3.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Datalogic 7000 (P70) and PSC 7000 (P70)

Page 140

OCR Programming

Consider the following example. This example shows serial commands as they would be entered using PowerView. Example: You need to read multiple rows of OCR-A data as shown below:

12345678 ABCDEFGH First, enable the OCR-A font. To read the first row of OCR data, you would program 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 r to indicate the start of a new row. All 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".

12345678 ABCDEFGH ABCD1234.

OCR Check Character You may want to print and verify a check character in order to enhance the security of your OCR application. The imager can be programmed for almost any type of check character. A number of presets are provided for common check character uses (e.g., modulo 10 and modulo 36). Scan the OCR Modulo 10 or OCR Modulo 36 Check Character bar code to specify the type of check character used in the OCR strings you’re scanning. The imager will then only read OCR character strings with a valid check character. The imager transmits the OCR data without the check character data. You must specify the location of the check character in the template with a c. Example: You need to read any combination of seven digits, with a modulo 10 check character in the eighth position. The template would be: 8-10

PowerScan® 7000 2D

Page 141

OCR Check Character dddddddc

To create this template, you would enable the OCR-A font. Scan the Modulo 10 Check Character symbol. Then scan the Enter OCR Template symbol, and scan the d from the OCR Programming Chart seven times, and scan the c once. Scan Save OCR Template (page 8-17). This template will let you read any combination of six digits with a correct check character after. (If the check character is invalid, the imager will issue an error beep.) For example, the following string could be scanned:

01234569 and the output would be: 0123456

OCR Modulo 10 Check Character Scan this symbol to program the OCR template for a simple modulo 10 checksum of the digits 0 through 9.

OCR Modulo 10 Check Character

OCR Modulo 36 Check Character Scan this symbol to program the OCR template for a simple modulo 36 checksum of the digits 0 through 9 and the letters A through Z.

OCR Modulo 36 Check Character

Product Reference Guide

8-11

Page 142

OCR Programming

OCR User-Defined Check Character You can customize the check character calculation to suit your application. Each character of the check character alphabet can be programmed in its proper order. The number of characters you enter determines the modulo value for the calculation. By default, the check character computation is unweighted, but the imager also supports two weighted modulo 10 checking schemes. Example: To program a modulo 11 check character, you would enter the following 11 characters in order:

0123456789X

Also enter the OCR template: dddddddc

Enable the OCR-A font, then scan the following string:

6512351X The imager performs the following check character computation: (6 + 5 + 1 + 2 +3 + 5 + 1 + X) modulo 11 = 0

Since the result is zero, the message is considered to be valid, so the reader outputs the message: 6512351

Programming a User-Defined Check Character 1. Scan the Enter OCR Check Character bar code, below.

Enter OCR Check Character

2. Enter the characters in order. For each character, look up the corresponding hex value from the ASCII Conversion Chart (Code Page 1252) on page A-4. Use the Programming Chart on page B-5 of this manual to scan the two symbols for each hex value. 3. Scan the Save bar code on the Programming Chart on page B-5. Example: To program the modulo 11 check character from example #8 on page 8-12, enable the OCR-A font. Scan the Enter OCR Check Character bar code on page 8-12, then scan the following hex values in order:

3031323334353637383958 8-12

PowerScan® 7000 2D

Page 143

OCR User-Defined Check Character

After you enter all the desired hex values, scan the Save bar code on the Programming Chart on page B-5 of this manual.

Weighting Options By default, the check character computation is unweighted. It is possible to use one of two weighted modulo 10 schemes. Weighting is often used to detect if two neighboring characters are transposed, a common error when an operator keys in data. 3-1-3-1 Weighted Modulo 10 Check Character

Starting with the check character and working backward through the message, the imager applies a multiplier of 1, then 3, then 1, then 3, and so on. This is the checking scheme used in many EAN•UCC symbologies, including U.P.C. and Interleaved 2 of 5 (when a check digit is invoked). To apply this weighting scheme, set the OCR check character to “0123456789x3x1” or scan the following symbol:

3-1-3-1 Weighted Modulo 10 Check Character Example: Scan the 3-1-3-1 Weighted Modulo 10 Check Character symbol. Also enter the OCR template:

dddddddc

Then scan the string below:

01234565 The reader performs the check character computation below: (0 x 3 + 1 x 1 + 2 x 3 + 3 x 1 + 4 x 3 + 5 x 1 + 6 x 3 + 5 x 1) modulo 10 = 0

Since the result is zero, the message is considered to be valid, so the reader outputs the message: 0123456

Product Reference Guide

8-13

Page 144

OCR Programming 2-1-2-1 Weighted Modulo 10 Check Character

Starting with the check character and working backward through the message, the imager applies a multiplier of 1, then 2, then 1, then 2, and so on. When the result of the multiplication is greater than 9, add both digits to the running sum. This is often referred to as the LUHN formula. One common application of the LUHN formula is validate credit card numbers. This is the modulo 10 checking scheme used in MSI Code and in Code 32 Pharmaceutical (PARAF). To apply this weighting scheme, set the OCR check character to "0123456789x2x1" or scan the following symbol:

2-1-2-1 Weighted Modulo 10 Check Character Example: Scan the 2-1-2-1 Weighted Modulo 10 Check Character symbol. Also enter the OCR template:

ddddddc

Then scan the string below:

0128454 The reader performs the check character computation below: (0 x 1 + 1 x 2 + 2 x 1 + 8 x 2 + 4 x 1 + 5 x 2 + 4 x 1) modulo 10 = (0 + 2 + 2 + (1 + 6) + 4 + (1 + 0) + 4) modulo 10 =0 Since the result is zero, the message is considered to be valid, so the reader outputs the message: 012845

8-14

PowerScan® 7000 2D

Page 145

OCR ISBN Application Example

OCR ISBN Application Example One application of OCR is to read the ISBN characters typically encoded using the OCR-A or OCR-B font. This is especially useful when the ISBN number is not encoded in an EAN-13 bar code. The following example shows how to configure the imager to read the ISBN strings on books in Japan. After you have followed the steps below, you will be able to scan the following ISBN number or the additional data below it, depending on the line of text at which the imager is aimed.

1. Scan the OCR-B On bar code on page 8-3. 2. Program the user-defined variable “g” to comprise the ten digits plus the dash: 0123456789-

3. In Japan, it is common for two fields to follow the ISBN number, the three digit price field, and the four digit price field. The first field typically starts with a “C” (uppercase c), followed by four digits. The second field typically starts with a “P” or a yen symbol, followed by three or four digits, followed by an “E.” Program the user-defined variable “h” to comprise the “P” and the yen symbol (represented by a backslash). P\

4. Scan the symbol below to set up three templates to handle the ISBN number, the three digit price field, and the four digit price field.

5. Finally, set up the ISBN check digit, which is a special positionweighted modulo 11 checksum. The imager automatically invokes the ISBN checksum for template rows that are: 1.) at least fourteen characters long, 2.) whose first four characters are the letters “ISBN,” 3.) whose last character is a check character, and Product Reference Guide

8-15

Page 146

OCR Programming

4.) when the modulo 11 check character “0123456789X” is programmed. Please note that all these commands can be combined into a single serial programming command: OCRENA2,TMP”ISBNggggggggggggctCdddd hdddEtCdddd hddddE”,GPG”0123456789-”,GPH”P\”,CHK”0123456789X”.

These commands can be encoded into the following Aztec Code symbol:

OCR Template Codes

NOTE

Reading more than three rows of OCR is not recommended. Contact the factory if you have an application that requires reading four or more rows of OCR.

Enter OCR Template † Enter User-Defined Variable “g”† Enter User-Defined Variable “h”† †

One or more two-digit numbers and Save are required after reading this programming symbol. Refer to the Programming Chart on page B-5 of this manual.

8-16

PowerScan® 7000 2D

Page 147

OCR Template Codes

Exit Selections Save OCR Template Discard OCR Template

Product Reference Guide

8-17

Page 148

OCR Programming

NOTES

8-18

PowerScan® 7000 2D