The text of a manual · part 33 of 50
Symbol DS3478 Smart Focus Digital Scanner Product Reference Guide: Advanced Data Formatting, pages 263 to 272
Pages 263 to 272 of 416, from Symbol DS3478 Smart Focus Digital Scanner Product Reference Guide
The original document is the PDF (9.5 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 Symbol DS-3478
Page 263
Chapter 15 Advanced Data Formatting Introduction Advanced Data Formatting (ADF) is a means of customizing data before transmission to the host device to suit particular requirements. To implement ADF, scan a related series of bar codes which begin on page 15-8, or use the 123Scan utility (see Chapter 12, 123Scan) which allows programming the digital scanner with ADF rules. Avoid using ADF formatting with bar codes containing more than 60 characters. To add a prefix or suffix value for such bar codes, use Prefix/Suffix Values and Scan Data Transmission Format on page 14-5. Using ADF with longer bar codes transmits the bar code in segments of length 252 or less (depending on the host selected), and applies the rule to each segment. NOTE
If using the wand interface with the digital scanner, in order to use ADF rules to format data, first enable Convert All to Code 39 on page 10-7.
Rules: Criteria Linked to Actions ADF uses rules to customize data. These rules perform detailed actions when the data meets certain criteria. One rule may consist of single or multiple criteria applied to single or multiple actions. For instance, a data formatting rule could be: Criteria:
When scan data is Code 39, length 12, and data at the start position is the string “129”,
Actions:
pad all sends with zeros to length 8, send all data up to X, send a space.
If the digital scanner scans a Code 39 bar code of 1299X1559828, it transmits the following: 00001299<space>. If the digital scanner scans a Code 39 bar code of 1299X15598, it ignores this rule because the bar code didn’t meet the length criteria. The rule specifies the editing conditions and requirements before data transmission occurs.
Page 264
15 - 2
Symbol DS3478 Product Reference Guide
Creating ADF Rules When programming a rule, make sure the rule is logically correct. Plan ahead before scanning. To program each data formatting rule:
• Start the Rule. Scan Begin New Rule on page 15-8. • Specify Criteria. Scan the bar codes for all pertinent criteria. Criteria can include code type (e.g., Code 128), code length, or data that contains a specific character string (e.g., the digits “129”). See Criteria on page 15-11 for options.
• Select Actions. Scan all actions related to, or affecting, these criteria. The actions of a rule specify how to format the data for transmission. See Actions on page 15-27.
• Save the Rule. Scan Save Rule on page 15-8. This places the rule in the “top” position in the rule buffer. To erase criteria, actions, and entire rules, scan the appropriate bar code on page 15-9. Beeper Definitions on page 2-2 guide through the programming steps.
ADF Programming Example This section provides an example of how to enter ADF rules to use for scan data. An auto parts distribution center wants to encode manufacturer ID, part number, and destination code into their own Code 128 bar codes. The distribution center also has products that carry UPC bar codes, placed there by the manufacturer. The Code 128 bar codes have the following format: MMMMMPPPPPDD Where:
M = Manufacturer ID P = Part Number D = Destination Code
The distribution center uses a host computer with dedicated control characters for manufacturer ID <CTRL M>, part number <CTRL P>, and destination code <CTRL D>. At this center the UPC data is treated as a manufacturer ID code. The center programs the following rules:
• When scanning data of code type Code 128, send the next 5 characters, send the manufacturer ID key <CTRL M>, send the next 5 characters, send the part number key <CTRL P>, send the next 2 characters, send the destination code key <CTRL D>.
• When scanning data of code type UPC/EAN, send all data, send the manufacturer ID key <CTRL M>. To enter these rules, see the following section.
Page 265
Advanced Data Formatting
15 - 3
Rule 1: The Code 128 Scanning Rule Step
Scan Bar Code
On Page
Beep Indication
1
Begin New Rule
15-8
High High
2
Code 128
15-11
High High
3
Send next 5 characters
15-28
High High
4
Send <CTRL M>
15-48
High High
5
Send next 5 characters
15-28
High High
6
Send <CTRL P>
15-48
High High
7
Send next 2 characters
15-27
High High
8
Send <CTRL D>
15-47
High High
9
Save Rule
15-8
High Low High Low
Rule 2: The UPC Scanning Rule Step
Scan Bar Code
On Page
Beep Indication
1
Begin New Rule
15-8
High High
2
UPC/EAN
15-12
High High
3
Send all remaining data
15-27
High High
4
Send <CTRL M>
15-48
High High
5
Save Rule
15-8
High Low High Low
To correct any errors made while entering this rule, scan Quit Entering Rules on page 15-9, or after saving the rule, scan Erase Previously Saved Rule on page 15-9.
Alternate Rule Sets You can group ADF rules into one of four alternate sets to turn on and off when needed. This is useful to format the same message in different ways. For example, a Code 128 bar code contains the following information: Class (2 digits), Stock Number (8) digits, Price (5 digits) This bar code might look like this: 245671243701500 where: Class = 24 Stock Number = 56712437 Price = 01500 Ordinarily, data is sent as follows: 24 (class key) 56712437 (stock key) 01500 (enter key)
Page 266
15 - 4
Symbol DS3478 Product Reference Guide
But, when there is a sale, send only the following: 24 (class key) 56712437 (stock key) and the cashier enters the price manually. To implement this, first enter an ADF rule that applies to the normal situation, such as: Scan Rule Belongs to Set 1. When scanning a bar code of length 15, send the next 2 characters, send the class key, send the next 8 characters, send the stock key, send the data that remains, send the Enter key. The “sale” rule may look like this: Scan Rule Belongs to Set 2. When scanning a bar code of length 15, send the next 2 characters, send the class key, send the next 8 characters, send the stock key. To switch between the two sets of rules, program a “switching rule” to specify what type of bar code to scan to switch between rule sets. For example, in the case of the “sale” rule above, the rule programmer wants the cashier to scan the bar code “M” before a sale. To do this, enter the rule as follows: When scanning a bar code of length 1 that begins with “M”, select rule set number 1. Program another rule to switch back: When scanning a bar code of length 1 that begins with “N”, turn off rule set number 1. Or include the switching back to normal rules in the “sale” rule: When scanning a bar code of length 15, send the next 2 characters, send the class key, send the next 8 characters, send the stock key, turn off rule set 1. For optimal results, scan the Disable All Rule Sets on page 15-10 after programming a rule belonging to an alternate rule set. In addition to enabling and disabling rule sets within the rules, enable or disable them by scanning the appropriate bar codes on page 15-10.
Page 267
Advanced Data Formatting
15 - 5
Rules Hierarchy (in Bar Codes) When programming rules, be sure to program the most general rule first, as rules are stored at the “top” of a rules list in a buffer as they are entered. For example, if you create three rules, the list is configured as follows: Third Rule Second Rule First Rule After scanning data, the rules hierarchy checks the rules list from top to bottom to determine if the criteria matches (and therefore, whether to apply the actions). Actions modify the data format specified by the first matching set of criteria it finds, then disregard subsequent rules. For this reason, be sure to program the most general rule first. For example, if the THIRD rule states: When scanning a bar code of any length, send all data, then send the ENTER key. and the SECOND rule states: When scanning a Code 128 bar code of length 12, send the first four characters, then send the ENTER key, then send all remaining data. and you scan a Code 128 bar code of length 12, the THIRD rule applies and the SECOND rule does not function. Note standard data editing functions (scan options) are considered ADF rules, and the previous hierarchy applies to them. Scan options include prefix/suffix programming in the parameter Scan Data Transmission Format on page 14-5. These rules reside in the same “rule list” as ADF rules, so the order you create them is also important.
Default Rules Every scanner has a default rule to send all scan data. Scanners with custom software may have one or more default rules burned in. The rules hierarchy checks user programmable rules first, then the default rules. To disable default rules enter the following general rule in the user programmable buffer: When receiving scan data, send all data. Since this rule always applies, ADF never applies the default rules.
Special Considerations for Multipoint Networks ADF rules scanned by an individual scanner are NOT broadcast to other scanners in the piconet, as are other parameters; however, ADF rules that 123Scan generates ARE broadcast to all scanners in the piconet. 123Scan rules transmitted from the base are stored at the BEGINNING of the ADF rule buffer, regardless of the presence of existing rules, while rules scanned by the scanner are appended to the existing buffer. For this reason, transmit rules to be shared by all scanners from 123Scan FIRST. Then, scan rules to customize an individual scanner.
Page 268
15 - 6
Symbol DS3478 Product Reference Guide
ADF Bar Codes Table 15-1 lists the bar codes available through ADF. Table 15-1 ADF Bar Codes
Parameter
Page Number
Special Commands
15-8
Pause Duration
15-8
Begin New Rule
15-8
Save Rule
15-8
Erase
15-9
Quit Entering Rules
15-9
Disable Rule Set
15-10
Criteria
15-11
Code Types
15-11
Code Lengths
15-18
1 Character - 6 Characters
15-18
7 Characters - 13 Characters
15-19
14 Characters - 20 Characters
15-20
21 Characters - 27 Characters
15-21
28 Characters - 30 Characters
15-22
Specific String at Start
15-23
Specific String, Any Location
15-23
Any Message OK
15-23
Numeric Keypad
15-24
Rule Belongs To Set
15-26
Actions Send Data
15-27 15-27
Send Data Up To Character
15-27
Send Next Character
15-27
Send All Data That Remains
15-27
Send Next 2 Characters - Send Next 20 Characters
15-27
Move Cursor
15-31
Page 269
Advanced Data Formatting
Table 15-1 ADF Bar Codes (Continued)
Parameter
Page Number
Send Pause
15-31
Skip Ahead
15-32
Skip Back
15-33
Send Preset Value
15-35
Remove All Spaces
15-36
Crunch All Spaces
15-36
Stop Space Removal
15-36
Remove Leading Zeros
15-36
Stop Zero Removal
15-36
Pad Data with Spaces
15-37
Pad Data with Zeros
15-41
Beeps
15-46
Send Keystroke (Control Characters and Keyboard Characters)
15-46
Keyboard Characters
15-51
Send ALT Characters
15-65
Send Keypad Characters
15-70
Send Function Key
15-75
Send F1 Key - Send F24 Key
15-75
Send PF1 Key - Send PF30 Key
15-78
Send Right Control Key
15-82
Send Graphic User Interface (GUI) Characters
15-83
Send GUI 0 - Send GUI 9
15-83
Send GUI A - Send GUI Z
15-84
Turn On Rule Sets
15-88
Alphanumeric Keyboard
15-90
Space - ‘
15-90
0-9
15-94
A-Z
15-95
Cancel
15-99
15 - 7
Page 270
15 - 8
Symbol DS3478 Product Reference Guide
Table 15-1 ADF Bar Codes (Continued)
Page Number
Parameter End of Message
15-99 a-z
15-99
{-~
15-103
Special Commands Pause Duration This parameter, along with Send Pause on page 15-31, inserts a pause in the data transmission. To set pauses scan a two-digit number (i.e., two bar codes) representing a 0.1 second interval in the range of 0.1 to 9.9. For example, scan bar codes 0 and 1 to insert a 0.1 second pause; 0 and 5 to insert a 0.5 second delay. The default is 1 second. See Appendix D, Numeric Bar Codes. To correct an error or change a selection, scan Cancel on page D-3.
Pause Duration
Begin New Rule Scan this bar code to start entering a new rule.
Begin New Rule
Save Rule Scan this bar code to save the rule.
Save Rule
Page 271
Advanced Data Formatting
Erase Use these bar codes to erase criteria, actions, or rules.
Erase Criteria And Start Again
Erase Actions And Start Again
Erase Previously Saved Rule
Erase All Rules
Quit Entering Rules Scan this bar code to quit entering rules.
Quit Entering Rules
15 - 9
Page 272
15 - 10
Symbol DS3478 Product Reference Guide
Disable Rule Set Use these bar codes to disable rule sets.
Disable Rule Set 1
Disable Rule Set 2
Disable Rule Set 3
Disable Rule Set 4
Disable All Rule Sets