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 15 of 23

PowerScan 7000 2D Imager Product Reference Guide: OCR Programming, pages 131 to 139

Pages 131 to 139 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 131

Chapter 8

OCR Programming Use this section to program the Imager for optical character recognition (OCR). PowerScan 2D models read 6 to 60 point OCR typeface.

NOTE

OCR is not as secure as bar codes. To enhance security in OCR applications, create an OCR template to match the data, and print an OCR check character.

The 2D imager will read the following fonts: OCR-A 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ ()<>/\+-*$

OCR-B 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ ()<>/ +-*$

U.S. Currency Serial Number (Money)

*

MICR E-13B

012346789 SEMI Font ABCDEFGHI JKLMNOPQRSTUVWXYZ - . 0123456789

Product Reference Guide

8-1

Page 132

OCR Programming

You can either select an OCR default, or create your own custom template for the type of OCR format you intend to read. See OCR on page 82 for programming codes that will enable your imager to read OCR-A, OCR-B, U.S. Currency, MICR E 13 B, or SEMI fonts. See OCR Templates on page 8-5 if you want to create a custom “template,” or character string that defines the length and content of OCR strings that will be read with your imager.

Setting the template and check character options are essential for OCR reading NOTE

OCR Fonts Default All OCR Settings turns off all OCR capability in the imager, so the imager will be able to scan linear, stacked, matrix, and composite bar codes, but not OCR fonts. In addition, any OCR templates you have created are erased. The eight digit default templates are reinstated for any future use of the OCR On codes listed below.

< Default All OCR Settings >

OCR

NOTE

OCR symbols can misread when scanned sideways or upside down. Use Working Orientation on page 3-24, if your OCR symbols will not usually be presented upright to the scanner.

Only one OCR symbology can be read at a time.

8-2

PowerScan® 7000 2D

Page 133

OCR Fonts OCR-A On allows you to scan characters in the OCR-A font. The default setting allows you to scan any eight digit combination. If you have created an OCR template, character combinations that fit the template can be scanned (see Creating an OCR Template on page 8-5).

OCR-A On OCR-B On allows you to scan characters in the OCR-B font. The default setting allows you to scan any eight digit combination. If you have created an OCR template, character combinations that fit the template can be scanned (see Creating an OCR Template on page 8-5).

OCR-B On

U.S. Currency Font U.S. Currency On allows you to scan characters in the font used on U.S. currency. The default setting allows you to scan any eight digit combination. If you have created an OCR template, character combinations that fit the template can be scanned (see Creating an OCR Template on page 8-5).

U.S. Currency On

Product Reference Guide

8-3

Page 134

OCR Programming

MICR E13 B Font MICR E13 B On allows you to scan MICR characters on a bank check. The default setting allows you to scan any eight digit combination. If you have created an OCR template, character combinations that fit the template can be scanned (see Creating an OCR Template on page 8-5).

MICR E 13 B On TOAD characters (Transit, On Us, Amount and Dash) are output in the following manner: The Transit character is output as T NOTE

The On Us character is output as O The Amount character is output as A The Dash character is output as D

SEMI Font SEMI Font On allows you to scan the SEMI font used in the semiconduc-tor industry.

SEMI Font On All OCR Off turns off all OCR capability in the imager, so the imager will be able to scan linear, stacked, matrix, and composite bar codes, but not OCR fonts. However, any OCR templates you have created will be retained in memory.

* All OCR Off

8-4

PowerScan® 7000 2D

Page 135

OCR Templates

OCR Templates You can create a custom “template,” or character string that defines the length and content of OCR strings that will be read with your imager. There are several choices when creating a custom template for your application. You can create a template for a single format, you can string together several formats, and you can create a template for a user-defined variable. These choices are described in detail below.

Creating an OCR Template A single template allows you to program the imager to read any combination of characters in the order you specify. Refer to examples that follow the Template Characters table below.

Product Reference Guide

8-5

Page 136

OCR Programming

Template Characters Table 8-1. Template Characters a represents any alphanumeric character (digit or letter)

c represents a check character position d represents any digit e represents any available OCR character g represents character from user-defined variable “g” h represents character from user-defined variable “h” l represents any uppercase letter t marks the start of a new template r multi row indicator

* All other characters (except capital letters T, O, A and D) represent themselves. Spaces can be used.

In MICR E13 B templates, TOAD characters (capital letters T, O, A, and D), represent Transit, On Us, Amount, and Dash. NOTE

OCR templates default to eight digits, no check character.

To Add an OCR Template... 1. Turn on the OCR font you want to read (page 8-2). 2. Begin building the template. Scan the Enter OCR Template symbol (page 8-16). 3. Scan the characters for the string. Use the Template Characters chart above to determine what characters you need to create your format. Use the OCR Programming Chart on page B-4 to scan the characters for your template.

8-6

PowerScan® 7000 2D

Page 137

OCR Templates

You need to read any combination of eight digits. The template would be: dddddddd

To create this template, you would enable the OCR-A font. Scan the Enter OCR Template symbol (page 8-16), then scan the d from the OCR Programming Chart on page B-4 eight times. Scan Save OCR Template (page 8-17). This would let you read any string of eight digits, for example:

37680981 Character Match Sequences On the ASCII Conversion Chart (Code Page 1252) on page A-4, find the Hex value that represents the character(s) you want to match. Use the Programming Chart on page B-5 to scan the numbers that represent these characters. Example: You need to read three digits, three specific characters (ABC), three digits. The template would be:

} ddd414243ddd hex codes for letters A, B, and C

To create this template, you would enable the OCR-A font. Scan the Enter OCR Template symbol (page 8-16). Scan the d from the OCR Programming Chart on page B-4 three times. Then scan 414243 from the Programming Chart on page B-5 (the hex characters for “A,” “B,” and “C”), and scan the d three more times. Scan Save OCR Template, page 8-17. This would let you read any string of three digits, “ABC,” then any string of three digits, for example:

551ABC983 Adding Spaces You may also need to put spaces in your template. Example: You need to read three digits, space, three specific characters (ABC), space, three digits. The template would be:

ddd2041424320ddd hex code for a space

Product Reference Guide

8-7

Page 138

OCR Programming

To create this template, you would enable the OCR-A font. Scan the Enter OCR Template symbol (page 8-16). Scan the d from the OCR Programming Chart on page B-4 in the back of this manual three times, then scan 2041424320 from the Programming Chart on page B-5 (the hex characters for “space,” “A,” “B,” “C,” “space”). Scan the d three more times, then scan Save OCR Template (page 8-17). This would let you read any string of three digits, space, “ABC,” space, then any string of three digits. For example:

551 ABC 983 If using PowerView to program, use the space bar to designate a space and not the hex value of 20. NOTE

4. Exit OCR Template Editor Scan Save OCR Template to save your entries. Discard OCR Template exits without saving any OCR Template changes.

Stringing Together Multiple Formats (Creating “Or” Statements) You may want to program the imager to accept many OCR formats. To do this, you would string together each format with a “t.” This tells the imager to read optical characters that match any one of the formats in the template. Example: You need to read any combination of eight digits, or a combination of four digits, two uppercase letters, and two digits. The template would be:

ddddddddtddddlldd

To create this template, you would enable the OCR-A font. Scan the Enter OCR Template symbol (page 8-16). Scan the d from the OCR Programming Chart on page B-4 eight times, then scan the t to create the “or” statement. Then you would scan the characters for the second template. Scan d four times, scan l two times, then scan d two more times. Scan Save OCR Template (page 8-17). This would let you read either type of format, for example:

99028650 or

9902XZ50 8-8

PowerScan® 7000 2D

Page 139

OCR User-Defined Variables

You can string together as many templates as you need.

OCR User-Defined Variables 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 UserDefined Variable symbol (page 8-16). The letters g and h can then be used in an OCR template to define the variable you specified. Example: 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 enable the OCR-A font. Scan the Enter User-Defined Variable g symbol (page 8-16). Scan 414243 from the Programming Chart (the hex characters for “A,” “B,” and “C”). Scan Save OCR Template (page 8-17). 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 six 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 PowerScan 2D is capable of decoding multi-row OCR text. Reading rows longer than sixteen characters is not recommended. NOTE

Product Reference Guide

8-9