The text of a manual · part 27 of 42
LS1900T/LS1908X Product Reference Guide: Chapter 13 Advanced Data Formatting, pages 231 to 240
Pages 231 to 240 of 356, from LS1900T/LS1908X Product Reference Guide
The original document is the PDF (3.9 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 LS-1900 and Symbol LS-1908
Page 231
Chapter 13 Advanced Data Formatting Introduction Advanced Data Formatting (ADF) is a means of customizing data before transmission to your host device. Scan data can be edited to suit your particular requirements. ADF can be implemented through scanning a related series of bar codes, which begin on page 13-7, or by installing the 123Scan utility (see Chapter 10, 123Scan) which allows the scanner to be setup and programmed with Advanced Data Formatting (ADF) Rules. Note: If you are using the Wand interface with your scanner, you can not use ADF rules to format your data.
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.
13-1
Page 232
LS1900T/LS1908X Product Reference Guide
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.
Using ADF Bar Codes When you program a rule, make sure the rule is logically correct. Plan ahead before you start scanning. To program each data formatting rule: •
Start the Rule. Scan the Begin New Rule bar code on page 13-7.
•
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 13-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 13-2.
•
Save the Rule. Scan the Save Rule bar code on page 13-8. This places the rule in the “top” position in the rule buffer.
•
If you make errors during this process, some special-purpose bar codes may be useful: 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 13-8). Beeper Definitions on page 2-2 help guide you 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
13-2
Page 233
Advanced Data Formatting 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:
Rule 1: The Code 128 Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
13-7
High High
2
Code 128
13-12
High High
3
Send next 5 characters
13-24
High High
4
Send <CTRL M>
13-46
High High
5
Send next 5 characters
13-24
High High
6
Send <CTRL P>
13-47
High High
7
Send next 2 characters
13-24
High High
8
Send <CTRL D>
13-45
High High
9
Save Rule
13-8
High Low High Low
13-3
Page 234
LS1900T/LS1908X Product Reference Guide
Rule 2: The UPC Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
13-7
High High
2
UPC/EAN
13-12
High High
3
Send all remaining data
13-24
High High
4
Send <CTRL M>
13-46
High High
5
Save Rule
13-8
High Low High Low
If you made any mistakes while entering this rule, scan the Quit Entering Rules bar code on page 13-9. If you already saved the rule, scan the Erase Previously Saved Rule bar code on page 13-8.
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 when you want 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 you would send this data as follows: 24 (class key) 56712437 (stock key) 01500 (enter key) But, when there is a sale, you may want to send only the following: 24 (class key) 56712437 (stock key) and the cashier will key the price manually.
13-4
Page 235
Advanced Data Formatting
To implement this, you would first enter an ADF rule that applies to the normal situation. This 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, send the data that remains, send the Enter key. The “sale” 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. 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. It is recommended that you scan the Disable All Rule Sets bar code on page 13-10 after programming a rule belonging to an alternate rule set. In addition to enabling and disabling rule sets within the rules, you can enable or disable them by scanning the appropriate bar codes on 13-10.
Rules Hierarchy (in Bar Codes) The order of programming individual rules is important.The most general rule should be programmed last.
13-5
Page 236
LS1900T/LS1908X Product Reference Guide
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 that your most general rule is the last one programmed. 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 you use the standard data editing functions. Scan options are entered as ADF rules, and the hierarchy mentioned above also applies to them. For the LS1900T, 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.
13-6
Page 237
Advanced Data Formatting
Special Commands Pause Duration This parameter 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” gives you a 0.5 second delay. Numeric bar codes begin on page D-1 in Numeric Bar Codes. If you make an error or wish to change your selection, scan Data Format Cancel on page 12-8.
Pause Duration
Begin New Rule Scan this bar code to start entering a new rule.
Begin New Rule
13-7
Page 238
LS1900T/LS1908X Product Reference Guide
Save Rule Scan this bar code to save the rule you entered.
Save Rule
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
13-8
Page 239
Advanced Data Formatting
Quit Entering Rules Scan this bar code to quit entering rules.
Quit Entering Rules
13-9
Page 240
LS1900T/LS1908X 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
13-10