The text of a manual · part 32 of 44
MiniScan MS XX07 Series Integration Guide: Chapter 13 Advanced Data Formatting, pages 281 to 290
Pages 281 to 290 of 406, from MiniScan MS XX07 Series Integration Guide
The original document is the PDF (4.8 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 MS-1207
Page 281
Chapter 13 Advanced Data Formatting Introduction Advanced Data Formatting (ADF) is a means of customizing data before transmission to a host device. Scan data can be edited to suit particular requirements. ADF can be implemented in the scanner through scanning a related series of bar codes, which begin on page 13-8.
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 can consist of single or multiple criteria applied to single or multiple actions. For instance, a data formatting rule can 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 a Code 39 bar code of 1299X1559828 is scanned, the scanner transmits: 00001299<space>. If a Code 39 bar code of 1299X15598 is scanned, this rule is ignored because the length criteria is not met.
13-1
Page 282
MS XX07 Series Integration Guide
The rule specifies the editing conditions and requirements before data transmission occurs.
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 13-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 13-12.
•
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-3.
•
Save the Rule. Scan the Save Rule bar code on page 13-9. This places the rule in the “top” position in the rule buffer.
•
If you make errors during this process, some special-purpose bar codes can be useful: Erase Criteria and Start Again, Erase Actions and Start Again, Erase Previously Saved Rule, etc.
Erase criteria, actions, and entire rules by scanning the appropriate bar code (see page 139). Standard Beeper Definitions on page 3-8 help guide you through the programming steps.
13-2
Page 283
Advanced Data Formatting
ADF Bar Code Menu Example This section provides an example of how to enter and use ADF rules 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 applied by the manufacturer. The Code 128 bar codes are in the 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 a 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, use the following steps:
13-3
Page 284
MS XX07 Series Integration Guide
Rule 1: The Code 128 Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
13-8
High High
2
Code 128
13-12
High High
3
Send next 5 characters
13-24
High High
4
Send <CTRL M>
13-44
High High
5
Send next 5 characters
13-24
High High
6
Send <CTRL P>
13-45
High High
7
Send next 2 characters
13-24
High High
8
Send <CTRL D>
13-43
High High
9
Save Rule
13-9
High Low High Low
Rule 2: The UPC Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
13-8
High High
2
UPC/EAN
13-13
High High
3
Send all remaining data
13-24
High High
4
Send <CTRL M>
13-44
High High
5
Save Rule
13-9
High Low High Low
If you make a mistake while entering this rule, scan the Quit Entering Rules bar code on page 13-10. If you already saved the rule, scan the Erase Previously Saved Rule bar code on page 13-9.
Alternate Rule Sets ADF rules can 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: 245671243701500
13-4
Page 285
Advanced Data Formatting 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 keys the price manually. To implement this, first enter an ADF rule that applies to the normal situation, such as: 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. Then enter the “sale” rule, 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. To switch between the two sets of rules, program a “switching” rule that specifies what type of bar code must be scanned to switch between the rule sets. For example, in the case of the “sale” rule, 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.
13-5
Page 286
MS XX07 Series Integration Guide
The switching back to normal rules can also be done in the “sale” rule. For example: 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-11 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-11.
Rules Hierarchy (in Bar Codes) The order of programming individual rules is important. Program the most general rule 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 are created, the list is 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 occur). Input is modified into the data format specified by the first matching set of criteria it finds. 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. and a Code 128 bar code of length 12 is scanned, the THIRD rule takes effect and the SECOND rule appears to not function. Note that ADF rules are also created when using the standard data editing functions. Scan options and prefix/suffix programming in the parameter Scan Data Transmission Format are entered as ADF rules. The hierarchy mentioned above also applies to them. These rules reside in the same “rule list” as ADF Rules, so the order of their creation is also important.
13-6
Page 287
Advanced Data Formatting
Default Rules Every unit has a default rule to send all scan data. Units with custom software can have one or more default rules. 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 goes into the default rules.
13-7
Page 288
MS XX07 Series Integration Guide
Special Commands Pause Duration This parameter along with Send Pause on page 13-28 inserts a pause in the data transmission. To set a pause, which is measured in 0.1 second intervals, scan a two-digit number (i.e., two numeric bar codes). For example, scanning bar codes 0 and 1 inserts a 0.1 second pause; 0 and 5 inserts a 0.5 second delay. Numeric bar codes begin on page 10-132. To change the selection or to cancel an incorrect entry, scan Cancel on page 10134.
Pause Duration
Begin New Rule Scan this bar code to start entering a new rule.
Begin New Rule
13-8
Page 289
Advanced Data Formatting
Save Rule Scan this bar code to save the entered rule.
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-9
Page 290
MS XX07 Series Integration Guide
Quit Entering Rules Scan this bar code to quit entering rules.
Quit Entering Rules
13-10