The text of a manual · part 6 of 18
Multi-Purpose Bar Code Workstation Series B (Catalog Number 2755-DH1) User Manual: 5 - Programming Via Escape Sequences, pages 35 to 43
Pages 35 to 43 of 132, from Multi-Purpose Bar Code Workstation Series B (Catalog Number 2755-DH1) User Manual
The original document is the PDF (1.2 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 Allen-Bradley 2755-DH1
Page 35
Chapter 5 Programming Via Escape Sequences
ROM/RAM Self-test Esc – y 16 Q
A self-test of the ROM/ RAM can be performed after a reset. The self-test takes approximately a half second to complete. When enabled, a single beep indicates the successful completion of the self-test. Note: Two additional beeps may follow the self test beep if the Laser Connection Detection function is enabled.
ROM/RAM Self-test Snytax Esc – y <n> Q Binary Value
Function
0 1 2 16*
All Functions Disabled Code ID Characters Transmitted No–Read Recognition On ROM/RAM Self Test Enabled
Values of n:
0, 1, 2, 3, 16, 17, 18, 19 * Default
The default value of <n> is 16. The ROM/RAM self test is enabled. The code ID characters are not transmitted, no–read recognition is disabled. Note: This command allows several functions to be selected simultaneously. To determine <n> choose the wanted functions and add up the corresponding binary values.
ROM/RAM Self-test Examples To enable the ROM/RAM self test, send the following escape sequence: Esc – y 16 Q
Note: The above example assumes that all features other than ROM/RAM self-test are disabled. Sending the following escape sequence will enable ROM/RAM self tests and no–read recognition: Esc – y 18 Q
Code Selection Esc – y –<n> F
Each code type, or symbology, supported by the decoder may be individually enabled or disabled. Once a particular bar code symbology is enabled, symbols of that bar code type will be decoded, provided that the symbol satisfies any other decode parameters that are configured, such as code length, check characters, etc.
5–10
Page 36
Chapter 5 Programming Via Escape Sequences
Code Selection Snytax Esc – y <n> F Binary Value 1 2 4 8 16 32 Values of n:
Function Code 39 Interleaved 2 of 5 UPC/EAN Codabar Code 128 Code 11
0 . . . 63
The default value of <n> is 63, all codes enabled.
Code Selection Example To enable Code 39, Interleaved 2 of 5, UPC/EAN and Code 128, <n> is constructed by adding up the binary values. Code 39 1 Interleaved 2 of 5 2 UPC/EAN 4 Code 128 16 Total 23 <n> = 23 The escape sequence to be sent to the decoder is Esc – y 23 F
Note: Since the binary values for Codabar and Code 11 were not included in the calculation of <n>, these bar code symbologies will be disabled.
Check Characters Esc – y – <n> G
Check characters are supplemental characters added to a bar code symbol to allow the verification of decoded data.
Using Check Characters Each of the bar code symbologies supported by the decoder has one of the following 3 types of check characters:
• Optional • Mandatory • Undefined Optional Check Character The following codes have an optional check character. Check character verification is configurable.
• Code 39 • Interleaved 2 of 5
5–11
Page 37
Chapter 5 Programming Via Escape Sequences
Mandatory Check Character The following bar codes have a mandatory check character. The decoder will always verify the check character.
• UPC/EAN • Code 128 • Code 11 (1 or 2 check characters) Undefined Check Character The following code has no defined check character.
• Codabar Verifying Check Character If check character verification is enabled and the check character cannot be verified, the bar code symbol will be ignored. If no–read recognition is enabled, a no–read message will be transmitted. Whenever check character verification has been disabled, bar code symbols will be read and decoded characters will be transmitted (regardless of whether or not check characters are present).
Transmitting Check Character Whenever check character verification is enabled for Code 39 and Interleaved 2 of 5, the transmission of the verified check character may be:
• Deleted from the message • Transmitted as a data character along with the decoded data This option applies to both symbologies only if check character verification is enabled. The table below lists the codes with the mandatory check characters and indicates whether the check characters are transmitted. Code UPC A UPC E UPC E Expanded to UPC A EAN 8 EAN 13 CODE 128 CODE 11
5–12
Transmit check characters? Yes No Yes Yes Yes No Yes
Page 38
Chapter 5 Programming Via Escape Sequences
Selecting the Number of Code 11 Check Characters Check character verification of Code 11 is mandatory. The number of check characters is configurable and may be one or two. If the length of the data is less than or equal to ten, one check character is normally used. If more than ten data characters are present, two check characters are used.
Check Character Syntax Esc – y <n> G Function
Binary Value 0*
Values of n:
Disabled
1
Code 39 Check Character Verification
2
Interleaved 2 of 5 Check Character Verification
8
Check Character Transmission for Code 39 & Interleaved 2 of 5
16
Code 11, Use 2 Check Characters
0 –3, 8–11, 16–19, 24–27 *Default
The default value of <n> is 0. Check characters will not be verified and Code 11 is configured to have only one check character.
Check Character Example To enable Code 39 check character verification and Code 11 with 2 check characters, <n> =17 Code 39 check character verification Code 11, 2 check characters Total
1 16 17
<n> = 17
The escape sequence to be sent to the decoder is Esc – y 17 G
Note: The binary value for Interleaved 2 of 5 check character verification and transmission was not included in the calculation of <n>, these features will be disabled.
Minimum and Maximum Length Esc – y <n>, <i>, <j> U
The length of a decoded bar code may be checked to see if it matches a set of predefined (configurable) limits. If the length of the bar code is within these limits, it is accepted as valid. If it’s outside the limits, a no–read condition exists. The length to be checked includes any check characters but does not include start and stop characters. If you want to check for a specific length, the minimum and the maximum should be set to the same number. Setting the maximum less than the minimum (or the minimum greater than the maximum) will cause a syntax error. 5–13
Page 39
Chapter 5 Programming Via Escape Sequences
The default lengths are shown in the table below. Code
Minimum
Maximum
1 1 1 1 4
32 32 32 32 32
Code 39 Codabar Code 128 Code 11 I 2 of 5① ① Must be even increments
Minimum and Maximum Length Syntax Esc –y <n>, <i>, <j> U
Values of n: Values of i: Values of j:
n
Function
1 2 4 5 6
Code 39 Interleaved 2 of 5 Codabar Code 128 Code 11 1, 2, 4, 5, 6 1 . . . 32 1 . . . 32 n – Code type to be length checked i – The new minimum length for the code type (i must be less than or equal to j). For I 2 of 5, this must be an even number betwen 4 and 32. j – The new maximum length for the code type. For 1 2 of 5, this must be an even number between 4 and 32.
Note: The commas must be included as shown above.
Minimum and Maximum Length Example To configure your decoder to check for a minimum of 6 and maximum of 10 characters in a Code 39 symbol, enter: Esc – y 1, 6, 10 U
Interleaved 2 of 5 Length The length checking for Interleaved 2 of 5 is different from the length Checking Options Esc – y <n> M checking for the other codes. Since the I 2 of 5 symbology decodes in pairs, even lengths should be specified. Note: Select the minimum and maximum length with the Esc –y <n>, <i>, <j> U escape sequence. 5–14
Page 40
Chapter 5 Programming Via Escape Sequences
There are three mutually exclusive options available to check the length of Interleaved 2 of 5 symbols: 1. The allowed length of the symbols may be variable, with a minimum length of 4 and a maximum length of 32. The minimum and maximum values may be set to other even values between 4 and 32 to narrow the range of lengths to be read. Reading symbols of length 2 is not available when symbol length is variable. These values are selected using the Esc –y <n>, <i>, <j> U escape sequence mentioned above. 2. The symbols may be checked for a particular even length between 2 and 32 characters. 3. The symbols may be checked to see if they are exactly 6 or exactly 14 characters long, with no other lengths readable. The minimum and maximum lengths do not apply.
Interleaved 2 of 5 Length Checking Options Syntax Esc – y <n> M n
Function
0* 2 ... 32
Length Variable From 4 to 32 Digits.① Specific Length is <n> Digits (must be an even number) Length Is Exactly 6 or 14.
33 Values of n:
0 . . . 33 *Default
① Select min. and max. lengths with Esc – y <n>, <i>, <j> U
The default value of <n> is 0, variable length.
Interleaved 2 of 5 Length Checking Options Examples To check Interleaved 2 of 5 symbols for a length of exactly 16 characters, send the following escape sequence: Esc – y 16 M
To set variable length for Interleaved 2 of 5 symbols, send the following escape sequence: Esc – y 0 M
5–15
Page 41
Chapter 5 Programming Via Escape Sequences
UPC/EAN Options Esc – y <n> H
The UPC and EAN codes have several options that may be enabled or disabled.
• All versions (UPC A, UPC E, EAN 8, or EAN 13) may be automatically recognized and decoded. • You may restrict the code to only UPC–A and UPC–E. EAN–13 and EAN–8 symbols will not be decoded. • UPC–E symbols may be expanded into the UPC–A format. • Supplemental characters may be enabled. If they are enabled, the symbol must be scanned in the forward direction, supplemental characters last. If the symbol is scanned backwards, for instance with the reverse sweep of a laser scanner, or the symbol does not have supplemental characters, the symbol will not be decoded. By specifying the length of the supplement (for example 2 or 5), you will not miss the supplemental characters if scanned incorrectly (unless they are not present). There are three configurable options: " Symbols with two digit supplemental characters may be read. " Symbols with five digit supplemental characters may be read. " Symbols with two or five digit supplemental characters may be read.
• Automatic recognition of supplemental characters may be enabled. This allows you to decode a symbol with or without supplemental characters. Note: If supplemental characters are present in the symbol, the symbol must be scanned in the forward direction, supplements last. If the symbol is scanned in the opposite directions, with the supplements first, or the scan misses the supplemental characters, the supplements will not be decoded. Note: This function should not be used with bidirectional scanning devices, or in applications where the symbol may be inverted.
UPC/EAN Options Syntax Esc – y <n> H Binary Value 0* 1 2 4 8 16 32 64 Values of n:
① Page 5-23 ② Page 5-22 5–16
0 . . . 127 *Default
Function Disabled Code 39 Full ASCII Conversion① Codabar Start/Stop Character Suppression② UPC/EAN UPC Decode Only UPC/EAN 2 Digit Supplements UPC/EAN 5 Digit Supplements UPC/EAN Expand UPC E to UPC A UPC/EAN Autodiscriminate Supplements
Page 42
Chapter 5 Programming Via Escape Sequences
The default value of <n> is 0, none of the UPC/EAN options are enabled. Note: Whenever the H command is used, make sure that all of the needed configuration parameters are used in constructing the <n> number. In this case, the Full ASCII conversion and the Codabar start and stop character transmission modes need to be known before the <n> number is determined.
UPC/EAN Options Example The following examples assume that Code 39 full ASCII conversion is disabled and that the Codabar start and stop characters are transmitted. To restrict the UPC/EAN decoding to UPC only and to expand UPC E to UPC A, <n>= UPC Only
4
Expand UPC E 32 Total 36 The escape sequence to send the decoder is Esc – y 36 H
Codabar Options Esc – y 2 H
Codabar has the option to either transmit the start and stop characters with the message or to suppress them from the message. When suppressed, the start/stop characters are stripped from the decoded message. Codabar is the only bar code that has user information contained in the start and stop characters.
Codabar Options Syntax Esc – y <n> H Binary Value 0* 1 2 4 8 16 32 64 Values of n:
Function Disabled Code 39 Full ASCII Conversion Codabar Start/Stop Character Suppression UPC/EAN UPC Decode Only UPC/EAN 2 Digit Supplements UPC/EAN 5 Digit Supplements UPC/EAN Expand UPC E to UPC A UPC/EAN Autodiscriminate Supplements
0 . . . 127 *Default
The default value of <n> is 0, Codabar start/stop characters are transmitted. Note: This command allows several functions to be selected simultaneously. To determine <n> choose the wanted functions and add the corresponding binary values. 5–17
Page 43
Chapter 5 Programming Via Escape Sequences
Codabar Options Example To suppress the transmission of the Codabar start and stop characters, send the following escape sequence: Esc – y 2 H The example assumes no UPC/EAN options are enabled and Code 39 full ASCII conversion is disabled.
Code 39 Full ASCII Esc – y 1 H
Code 39 has an option that allows the full ASCII character set to be decoded using the 43 characters of the Code 39 character set. The Full ASCII conversion is done by pairing Code 39 characters. When Code 39 full ASCII conversion is enabled, all valid character pairs will be converted into their corresponding ASCII characters before being transmitted. When disabled, all decoded characters will be transmitted without being converted.
Code 39 Full ASCII Syntax Esc – y <n> H Binary Value 0* 1 2 4 8 16 32 64 Values of n:
Function Disabled Code 39 Full ASCII Conversion Codabar Start/Stop Character Suppression UPC/EAN UPC Decode Only UPC/EAN 2 Digit Supplements UPC/EAN 5 Digit Supplements UPC/EAN Expand UPC E to UPC A UPC/EAN Autodiscriminate Supplements
0 . . . 127 *Default
The default value of <n> is 0, full ASCII conversion disabled. Note: This command allows several functions to be selected simultaneously. To determine <n> choose the wanted functions and add the corresponding binary values.
Code 39 Full ASCII Example The following example assumes no UPC/EAN options are enabled and that Codabar start and stop characters are transmitted. To cause the decoder to enable Code 39 full ASCII conversion, send the following sequence: Esc – y 1 H 5–18