The text of a manual · part 28 of 46
Symbol DS6607 Product Reference Guide: Advanced Data Formatting, pages 215 to 224
Pages 215 to 224 of 370, from Symbol DS6607 Product Reference Guide
The original document is the PDF (6.7 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-6607
Page 215
Chapter 11 Advanced Data Formatting 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 11-6, or by installing the 123Scan utility (see Chapter 9, 123Scan) 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
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 216
11 - 2 Symbol DS6607 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 11-6. • 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 11-9.
• 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 11-2.
• Save the Rule. Scan the Save Rule bar code on page 11-6. 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 11-7). Beeper Definitions on page 2-2 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 217
Advanced Data Formatting 11 - 3
Rule 1: The Code 128 Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
11-6
High High
2
Code 128
11-9
High High
3
Send next 5 characters
11-26
High High
4
Send <CTRL M>
11-46
High High
5
Send next 5 characters
11-26
High High
6
Send <CTRL P>
11-46
High High
7
Send next 2 characters
11-25
High High
8
Send <CTRL D>
11-45
High High
9
Save Rule
11-6
High Low High Low
Rule 2: The UPC Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
11-6
High High
2
UPC/EAN
11-10
High High
3
Send all remaining data
11-25
High High
4
Send <CTRL M>
11-46
High High
5
Save Rule
11-6
High Low High Low
To correct any errors made while entering this rule, scan the Quit Entering Rules bar code on page 11-7. If the rule is already saved, scan the Erase Previously Saved Rule bar code on page 11-7.
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)
Page 218
11 - 4 Symbol DS6607 Product Reference Guide
But, when there is a sale, send only the following: 24 (class key) 56712437 (stock key) 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 11-8 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 11-8.
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.
Page 219
Advanced Data Formatting 11 - 5
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. 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 220
11 - 6 Symbol DS6607 Product Reference Guide
Special Commands Pause Duration This parameter along with the Send Pause parameter on page 11-29 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-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 221
Advanced Data Formatting 11 - 7
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 222
11 - 8 Symbol DS6607 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
Page 223
Advanced Data Formatting 11 - 9
Criteria Code Types Select any number of code types to be affected. All selected codes must be scanned in succession, prior to selecting other criteria. To select all code types, do not scan any code type.
Scan the bar codes for all code types desired before selecting other criteria.
Code 39
Codabar
GS1 DataBar-14
GS1 DataBar Limited
GS1 DataBar Expanded
Code 128
D 2 OF 5
Page 224
11 - 10 Symbol DS6607 Product Reference Guide
Code Types (continued)
IATA 2 OF 5
I 2 OF 5
Code 93
UPC-A
UPC-E
EAN-8
EAN-13