The text of a manual · part 15 of 24
LS 4800/4900 Product Reference Guide: Chapter 6 Advanced Data Formatting
Pages 138 to 151 of 239, from LS 4800/4900 Product Reference Guide
The original document is the PDF (2.6 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-4804 and Symbol LS-4904
Page 138
Chapter 6 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 appear in Chapter 7, ADF Bar Codes.
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. The rule specifies the editing conditions and requirements before data transmission occurs.
6-1
Page 139
LS 4800/4900 Product Reference Guide
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 7-1.
!
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 6-4.
!
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 Actions on page 6-5.
!
Save the Rule. Scan the SAVE RULE bar code on page 7-2. 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 Erase on page 7-2). Beeper Definitions on page 6-12 help guide you through the programming steps.
6-2
Page 140
Advanced Data Formatting
Special Commands Begin New Rule Scan this bar code first when programming a data formatting rule.
Save Rule Scan this bar code to complete a data formatting rule.
Erase Use these bar codes to erase criteria, actions, and rules.
Quit Entering Rules Scan this bar code to quit entering rules.
Disable Rule Set These bar codes allow you to disable particular rule sets.
6-3
Page 141
LS 4800/4900 Product Reference Guide
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. If you don't select a code type, all code types will be affected.
Code Lengths Define the number of characters the selected code type must contain. If you don't select a code length, selected code types of any length will be affected.
Message Containing A Specific Data String Select whether the formatting affects data that begins with a specific character or data string, or contains a specific character or data string.
Specific String at Start Scan this bar code, then scan the bar codes representing the desired character or characters (up to a total of 8) in the Alphanumeric Keyboard beginning on page 7-50.
Specific String, Any Location Scan this bar code, then, using the Numeric Keypad on page 7-12, scan a two-digit number representing the position (use a leading “zero” if necessary). Then scan the desired character or characters (up to a total of 8) on the Alphanumeric Keyboard beginning on page 7-50, followed by the END OF MESSAGE bar code on page 7-56.
Any Message OK By not scanning any bar code, all selected code types are formatted, regardless of information contained.
Rule Belongs To Set Select the set a rule belongs to.
6-4
Page 142
Advanced Data Formatting
Actions Select how to format the data for transmission.
Send Data Send all data that remains, send all data up to a specific character selected from the Alphanumeric Keyboard on page 7-50, or send the next N characters. N = any number from 1 to 254, selected from the Alphanumeric Keyboard on page 7-50.
Setup Field(s) Define fields as follows:
Move Cursor To a Character Scan the MOVE CURSOR TO CHARACTER bar code on page 7-17, then any printable ASCII character from the Alphanumeric Keyboard on page 7-50. When this is used, the cursor moves to the position after the matching character. If the character is not there, the rule fails and ADF tries the next rule.
Move Cursor to Start of Data Scan this bar code to move cursor to the beginning of the data.
Move Cursor Past a Character This parameter moves the cursor past all sequential occurrences of a selected character. Scan the MOVE CURSOR PAST CHARACTER bar code on page 7-17, then select a character from the Alphanumeric Keyboard on page 7-50. If the character is not there, the cursor does not move (i.e., has no effect).
Skip Ahead “N” Characters Scan one of these bar codes to select the number of positions ahead you wish to move the cursor.
Skip Back “N” Characters Scan one of these bar codes to select the number of positions back you wish to move the cursor.
6-5
Page 143
LS 4800/4900 Product Reference Guide
Send Preset Value Send Values 1 through 6 by scanning the appropriate bar code. These values must be set using Prefix / Suffix Values on page A-5. Value 1 = Scan Suffix Value 2 = Scan Prefix
Modify Data Modify data in the ways listed. The following actions work for all send commands that follow it within a rule. If you program pad zeros to length 6, send next 3 characters, stop padding, send next 5 characters, three zeros are added to the first send, and the next send is unaffected by the padding. These options do not apply to the Send Keystroke or Send Preset Value options.
Remove All Spaces To remove all spaces in the send commands that follow, scan this bar code.
Crunch All Spaces To leave one space between words, scan this bar code. This also removes all leading and trailing spaces.
Stop Space Removal Scan this bar code to disable space removal.
Remove Leading Zeros Scan this bar code to remove all leading zeros.
Stop Zero Removal Scan this bar code to disable the removal of zeros.
Pad Data With Spaces To pad data to the left, scan the bar code containing the desired number of spaces. This parameter is activated by Send commands.
6-6
Page 144
Advanced Data Formatting
Pad Data With Zeros To pad data to the left, scan the bar code containing the desired number of zeros. This parameter is activated by Send commands.
Beeps Select a beep sequence for each ADF rule.
Send Keystroke (Control Characters and Keyboard Characters) Scan the “Send __” bar code for the keystroke you wish to send.
Turn On/Off Rule Sets Use these bar codes to turn rule sets on and off.
6-7
Page 145
LS 4800/4900 Product Reference Guide
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:
6-8
Page 146
Advanced Data Formatting
Rule 1: The Code 128 Scanning Rule Table 6-1. Code 128 Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
7-1
High High
2
Code 128
7-5
High High
3
Send next 5 characters
7-14
High High
4
Send <CTRL M>
7-34
High High
5
Send next 5 characters
7-14
High High
6
Send <CTRL P>
7-35
High High
7
Send next 2 characters
7-14
High High
8
Send <CTRL D>
7-33
High High
9
Save Rule
7-2
High Low High Low
Rule 2: The UPC Scanning Rule Table 6-2. UPC Scanning Rule Step
Bar Code
On Page
Beep Indication
1
Begin New Rule
7-1
High High
2
UPC/EAN
7-6
High High
3
Send all remaining data
7-14
High High
4
Send <CTRL M>
7-34
High High
5
Save Rule
7-2
High Low High Low
If you made any mistakes while entering this rule, scan the QUIT ENTERING RULES bar code on page 7-3. If you already saved the rule, scan the ERASE PREVIOUSLY SAVED RULE bar code on page 7-2.
6-9
Page 147
LS 4800/4900 Product Reference Guide
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. 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,
6-10
Page 148
Advanced Data Formatting 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 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 Code Lengths on page 7-7.
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 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.
6-11
Page 149
LS 4800/4900 Product Reference Guide
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 LS 4800, 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.
Beeper Definitions The following table defines beep sequences which occur during data entry. Table 6-3. Beeper Definitions Normal Data Entry. Duration of tones are short. Beeper Sequence
6-12
Indication
High-Low
Entry of a number is expected. Enter another digit. Add leading zeros to the front if necessary.
Low-Low
Entry of an alphabetic character is expected. Enter another character or scan the End of Message bar code.
High-High
Entry of Criterion/Action is expected. Enter another criterion or action, or scan the Save Rule bar code.
High-Low-High-Low
Rule saved. Rule entry mode exited.
High-Low-Low
All criteria or actions were cleared for rule currently being entered; continue entry of rule.
Page 150
Advanced Data Formatting
Table 6-3. Beeper Definitions (Continued) Normal Data Entry. Duration of tones are short. Low
Last saved rule was successfully deleted. The rule presently being entered is left intact.
Low-High-High
All rules are now deleted. The rule presently being entered is left intact. (This beep sequence has a different meaning outside of ADF.)
Error Indications. Duration of tones are very long. Beeper Sequence
Indication
Low-High-Low-High
Out of rule memory. Erase some existing rules, then try to save rule again. (The current rule need not be re-entered.)
Low-High-Low
Cancel rule entry. Rule entry mode exited because of an error or the user asked to exit rule entry.
Low-High
Entry error, wrong bar code scanned. Re-enter criterion or action. All previously entered criteria and actions are retained. Criteria or action list is too long for a rule.
6-13
Page 151
LS 4800/4900 Product Reference Guide
6-14