The text of a manual · part 29 of 35
5250 Terminal Emulation Programmer's Reference Guide: Appendix A: Bar Code Scanning
Pages 253 to 260 of 318, from 5250 Terminal Emulation Programmer's Reference Guide
The original document is the PDF (1.3 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 Intermec 6400
Page 253
Appendix A
Bar Code Scanning "
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Overview Collecting and decoding bar code data are built-in features of the radio data network. The wireless station is programmed to support a variety of bar code scanning devices and decode all major bar code types. Specific bar code algorithms are enabled either by scanner orders from the host computer, or by the wireless station operator utilizing the set-up menus. Once a bar code is correctly decoded by the wireless station, the data can be encoded with descriptive information about the decoded symbol. Unique ASCII command codes are employed by the wireless station to enable certain types of bar code algorithms and to format bar code data for return to the host computer. You can improve response time for the radio data network by knowing the bar codes you use and limiting the wireless station to only those codes. This appendix contains general information and reference data pertaining to enabling bar code algorithms and interpreting bar code data.
5250 Terminal Emulation Programmer’s Reference Guide
A-1
Page 254
APPENDIX A
"
Bar Code Scanning
How to Enable Algorithms To maximize wireless station and network performance, it is recommended that you enable only the bar code types required by your radio data network and host application software. For obvious reasons, the more bar code algorithms enabled in the wireless station, the slower the response time. You can enable bar codes is one of three ways. The first two options require the cursor to be in an input field before the operator attempts the scan. 1. Select the “scan all fields” option from the wireless station’s set-up menu. This allows the operator to use the scanner as the input device for any field requiring input. 2. If “scan all fields” in not selected, the host program can enable scanning on a field-by-field basis by enabling the magnetic stripe reader (MSR) input for each scannable field. The MSR capability is sometimes referred to as OID (operator identification) in IBM documents. 3. Select the “Encoded Code 39” option from the wireless station’s set-up menus. Since Encoded Code 39 bar codes allow the operator to scan bar codes to simulate keyboard input, the scanner is always enabled. This option overrides the “scan all fields” option. This also enables the scanner even if the cursor is not located in an input field. To make a field “scan only” (prevent keyboard input) you can define the field as an I/O only field (for example, magnetic stripe reader). This is sometimes referred to as “keyboard shift, inhibit keyboard entry” in IBM documents.
A-2
5250 Terminal Emulation Programmer’s Reference Guide
Page 255
APPENDIX A
"
Bar Code Scanning
How Scanning Works When scanning is enabled, data from the scanner is placed in the input field where the cursor is. If the cursor is not in an input field the scanner is not enabled. (Encoded Code 39 is one exception explained later.) If the cursor is not at the first position of the input field, the wireless station moves it there before the data is written to the field. When the bar code data is longer than the current input field, the wireless station’s response depends on the “stream scan” option in the set-up menus. When stream scan is disabled, the data remaining after the field is filled is ignored. " When stream scan is enabled, any data remaining after the first field is filled is written to the next input field or fields. If a non-scannable field is encountered, any remaining bar code data is ignored. Whenever an auto-enter field is encountered, an [ENTER] key is simulated when the field is full and any remaining bar code data is ignored. If the bar code data does not fill the input field, a [FIELD EXIT] key is simulated to clear to the end of field and move the cursor to the next input field. If the field is an auto-enter field, an [ENTER] key is simulated to send data to the host computer. "
The Encoded Code 39 Exception The preceding paragraphs about “how scanning works” mention an exception for Encoded Code 39. Encoded Code 39 allows the bar code symbol to contain certain “escape sequences” that can override the wireless station set-up just explained.
5250 Terminal Emulation Programmer’s Reference Guide
A-3
Page 256
APPENDIX A
"
Bar Code Scanning
These escape sequences enable the data in the bar code to force some actions that would otherwise require the operator to press a key. For example, terminating a scan and transmitting it to the host computer or forcing a tab to the next scannable field. When these commands are included in the bar code data they override the set-up conditions of the wireless station. Implementation of Encoded Code 39 for the 5250 data stream is nearly identical with the 3270 data stream. The exceptions include some “escape sequences.” For full details of these changes refer to bar code parameters for Encoded Code 39 in Section 9, “Extended Commands.”
How Stream Scan Works Stream scan controls how the wireless station handles input from the scanner when the number of characters in the bar code is not the same as the input field. When scanning is enabled, data from the scanner is placed into the field where the cursor is located. If the cursor is not in an input field, the scanner is not enabled (Encoded Code 39 is an exception). If the cursor is not at the first position of the input field, it is moved there automatically before the data is written to the field. Whenever the wireless station encounters an auto-enter field, it generates an [ENTER] key at the end of the field and any remaining bar code data is ignored.
A-4
5250 Terminal Emulation Programmer’s Reference Guide
Page 257
APPENDIX A
"
Bar Code Scanning
With stream scan enabled, the wireless station fills the first input field, then writes the remaining characters into the next field(s). When the wireless station encounters a nonscanning field, any remaining bar code data is ignored. When the bar code does not fill the input field, a [FIELD EXIT] key is generated to clear to the end of the field and move the cursor to the next input field. If the field in an auto-enter field, an [ENTER] key is automatically generated to send the data to the host computer.
How Scan All Fields Works Scan all fields allows the operator to use the scanner for input any time the cursor is in an input field. This option, the most common one used, enables scanner input without requiring commands from the host.
How to Scan Individual Fields If you prefer to enable scanning on a field-by-field basis, enable the magnetic stripe reader (MSR) input for each scannable field. A portion of the command for the input field specifies scanner input. The MSR capability is sometimes referred to in IBM documents as OID. See Section 9, “Extended Commands,” for information about the bar code scanning command.
5250 Terminal Emulation Programmer’s Reference Guide
A-5
Page 258
APPENDIX A
"
Bar Code Scanning
What Scan Ahead Allows The scan-ahead feature works much like the type-ahead feature on some IBM terminal products. It lets the operator scan one bar code before the next input screen is available from the host computer. This improves response time in scanning applications by allowing the operator to keep one step ahead of the host computer.
How the Host Gets Bar Codes The wireless station can encode descriptive information along with bar code data returned to the host computer. This encoded information indicates the type of bar code scanned and, in some instances, the length of the bar code data. Also included in the format may be check digits, start and stop digits, system digits, add-on code digits and flags. Bar code data streams can begin with the the bar code type followed by the bar code data. Table A-1 details the bar code types and the format of the bar code data string. Refer to the wireless station’s user guide for the bar code types that the wireless station supports.
A-6
5250 Terminal Emulation Programmer’s Reference Guide
Page 259
APPENDIX A
"
Bar Code Scanning
Table A-1 Bar Code Data String Formats Type Code
Data Bar Code Type
Data Format*
Data Length**
0 1 2 3 4 5 6 7 8 9 : ; < = Z >
UPC short EAN short UPC long EAN long UPC short add-on 2 EAN short add-on 2 UPC long add-on 2 EAN long add-on 2 UPC short add-on 5 EAN short add-on 5 UPC long add-on 5 EAN long add-on 5 Interleaved 2 of 5 Straight 2 of 5 *** Computer Identics 2 of 5 *** Plessey CODABAR ABC CODABAR *** Code 11 *** Code 39 Extended Code 39 Code 93 *** Code 128 nddddddc fndddddc nddddddddddc fnddddddddddc nddddddcaa fndddddcaa nddddddddddcaa fnddddddddddcaa nddddddcaaaaa fndddddcaaaaa nddddddddddcaaaaa fnddddddddddcaaaaa d......d d......d d......d d......dc sd......ds sd......ds d......d d......d d......d d......d d......d
8 8 12 13 10 10 14 15 13 13 17 18 1 to 31 1 to 31 1 to 31 2 to 31 3 to 31 6 to 31 1 to 31 1 to 31 1 to 31 1 to 31 1 to 31
@ A S P Q R J *
Bar code data definitions: n = Number system digits d = Bar code digits c = Check digits f = EAN flag 1 characters a = Add-on code digits s = Start and stop digits
**
If MOD 10 or MOD11 check digits are enabled, the digit falls at the end of a bar code data string. Each check digit enabled extends the length of the bar code data string by 1 character.
***
Not supported by PEN*KEY 6400 Computer’s internal engine. 5250 Terminal Emulation Programmer’s Reference Guide
A-7
Page 260
APPENDIX A
A-8
"
Bar Code Scanning
5250 Terminal Emulation Programmer’s Reference Guide