The text of a manual · part 32 of 50
DS6608 Product Reference Guide: Advanced Data Formatting, pages 239 to 248
Pages 239 to 248 of 402, from DS6608 Product Reference Guide
The original document is the PDF (4.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 Symbol DS-6608
Page 239
Advanced Data Formatting Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-3 Rules: Criteria Linked to Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-3 Using ADF Bar Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-4 ADF Bar Code Menu Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-4 Rule 1: The Code 128 Scanning Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-5 Rule 2: The UPC Scanning Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-5 Alternate Rule Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-5 Rules Hierarchy (in Bar Codes). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-6 Default Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-7 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-17 Message Containing A Specific Data String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-22 Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-27 Send Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-27 Setup Field(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-30 Modify Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-36 Pad Data with Spaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-37 Pad Data with Zeros. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-41
Page 240
15-2 DS6608 Product Reference Guide
Beeps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-46 Send Keystroke (Control Characters and Keyboard Characters) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-46 Send Right Control Key. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-82 Send Graphic User Interface (GUI) Characters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-83 Turn On/Off Rule Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-88 Alphanumeric Keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-90
Page 241
Advanced Data Formatting 15-3
Introduction Advanced Data Formatting (ADF) is a means of customizing data before transmission to the host device. Scan data can be edited to suit particular requirements. ADF can be implemented through scanning a related series of bar codes, which begin on page 15-8, or by installing the 123Scan utility (see Chapter 12, 123 Scan) which allows the digital scanner to be setup and programmed with Advanced Data Formatting (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 Add Prefix/Suffix setting. 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 If using the Wand interface with the digital scanner, in order to use ADF rules to format data, first enable Convert All Bar Codes to Code 39 on page 10-8.
Note
Rules: Criteria Linked to Actions In ADF, data is customized through rules. 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 the following: 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 a Code 39 bar code of 1299X1559828 is scanned, the following is transmitted: 00001299<space>. If a Code 39 bar code of 1299X15598 is scanned, this rule is ignored because the length criteria has not been met. The rule specifies the editing conditions and requirements before data transmission occurs.
Page 242
15-4 DS6608 Product Reference Guide
Using ADF Bar Codes 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 the Begin New Rule bar code on page 15-8. 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”). These options are described in Criteria on page 15-11. • Actions. Scan all actions related to, or affecting, these criteria. The actions of a rule specify how to format the data for transmission. These options are described in ADF Bar Code Menu Example on page 15-4. • Save the Rule. Scan the Save Rule bar code on page 15-8. This places the rule in the “top” position in the rule buffer. • Some special-purpose bar codes can be useful to correct errors during this process: Erase Criteria and Start Again, Erase Actions and Start Again, Erase Previously Saved Rule, etc. Criteria, actions, and entire rules may be erased by scanning the appropriate bar code (see page 15-9). Beeper Definitions on page 2-4 guide through the programming steps.
ADF Bar Code Menu Example This section provides an example of how ADF rules are entered and used 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 PC 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 manufacturer ID code. The following rules need to be entered: 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, follow the steps below:
Page 243
Advanced Data Formatting 15-5
Rule 1: The Code 128 Scanning Rule Step
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
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 the Quit Entering Rules bar code on page 15-9. If the rule is already saved, scan the Erase Previously Saved Rule bar code on page 15-9.
Alternate Rule Sets ADF rules may be grouped into one of four alternate sets which can be turned 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) But, when there is a sale, send only the following: 24 (class key) 56712437 (stock key)
Page 244
15-6 DS6608 Product Reference Guide and the cashier will key 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, a “switching rule” must be programmed. This rule specifies what type of bar code must be scanned to switch between the 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, a rule can be entered as follows: When scanning a bar code of length 1 that begins with “M”, select rule set number 1. Another rule could be programmed to switch back. When scanning a bar code of length 1 that begins with “N”, turn off rule set number 1. The switching back to normal rules can also be done in the “sale” rule. For example, the rule may look like this: 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 bar code 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 15-10.
Rules Hierarchy (in Bar Codes) The order of programming individual rules is important.The most general rule should be programmed last. All programmed rules are stored in a buffer. As they are programmed, they are stored at the “top” of a rules list. If three rules have been created, the list would be configured as follows: Third Rule Second Rule First Rule When data is scanned, the rules list is checked from top to bottom to determine if the criteria matches (and therefore, if the actions should occur). Input is modified into the data format specified by the first matching set of criteria it finds. Be sure to program the most general rule last. 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. If a Code 128 bar code of length 12 were scanned, the THIRD rule would be in effect. The SECOND rule would appear to not function. Note also that ADF rules are actually created when using the standard data editing functions. Scan options are entered as ADF rules, and the hierarchy mentioned above also applies to them. For the digital scanner, this applies to prefix/suffix programming in the parameter Scan Data Transmission Format.
Page 245
Advanced Data Formatting 15-7
These rules reside in the same “rule list” as ADF Rules, so the order of their creation is also important.
Default Rules Every unit has a default rule to send all scan data. Units with custom software may have one or more default rules burned in. The rules hierarchy checks user programmable rules first, then the default rules. Default rules can be disabled by entering the following general rule in the user programmable buffer: When receiving scan data, send all data. Since this rule always applies, ADF will never go into the default rules.
Page 246
15-8 DS6608 Product Reference Guide
Special Commands Pause Duration This parameter along with the Send Pause parameter on page 15-31 allows a pause to be inserted in the data transmission. Pauses are set by scanning a two-digit number (i.e., two bar codes), and are measured in 0.1 second intervals. For example, scanning bar codes “0” and “1” inserts a 0.1 second pause; “0” and “5” inserts a 0.5 second delay. See Appendix D, Numeric Bar Codes. To correct an error or change a selection, scan Cancel on page D-4.
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 247
Advanced Data Formatting 15-9
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
Page 248
15-10 DS6608 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