Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 19 of 35

P 300STD/FZY/PRO Scanner Product Reference Guide: Chapter 3 Advanced Data Formatting (ADF), pages 173 to 182

Pages 173 to 182 of 325, from P 300STD/FZY/PRO Scanner Product Reference Guide

The original document is the PDF (3.0 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 P300

Page 173

Chapter 3 Advanced Data Formatting (ADF) Introduction Advanced Data Formatting (ADF) is a means of customizing, or editing, the data scanned by the scanner before transmitting the data to your host device. Scanned data can be edited to suit your particular requirements. ADF is implemented by scanning a related series of bar codes to create rules to apply to the scanned data. These bar codes appear later in this chapter.

Rules: Criteria Linked to Actions In ADF, data is customized through rules. These rules perform specific actions when the data meets certain criteria. One rule may consist of single or multiple actions applied to single or multiple criteria. 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.

In this example, 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 (10 characters) does not pass the criteria. The rule specifies the editing conditions and requirements before data transmission occurs. 3-1

Page 174

P 300 STD/FZY/PRO Scanner 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: 1. Start the Rule. Scan the Begin New Rule bar code on page 3-11. 2. 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 3-14. 3. 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 3-25. 4. Save the Rule. Scan the Save Rule bar code on page 3-11. 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, and Erase All Rules. See Erase on page 3-12. Beeper Definitions for ADF on page 3-8 help guide you through the programming steps.

3-2

Page 175

Advanced Data Formatting (ADF)

ADF Bar Code Menu Example This section provides an example of how to enter an ADF rule to apply to scanned 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 these steps:

3-3

Page 176

P 300 STD/FZY/PRO Scanner Product Reference Guide

Rule 1: The Code 128 Scanning Rule Table 3-1. Code 128 Scanning Rule Step

Bar Code

On Page

Beep Indication

1

Begin New Rule

3-11

High High

2

Code 128

3-14

High High

3

Send next 5 characters

3-26

High High

4

Send <CTRL M>

3-51

High High

5

Send next 5 characters

3-26

High High

6

Send <CTRL P>

3-51

High High

7

Send next 2 characters

3-25

High High

8

Send <CTRL D>

3-49

High High

9

Save Rule

3-11

High Low High Low

Rule 2: The UPC Scanning Rule Table 3-2. UPC Scanning Rule Step

Bar Code

On Page

Beep Indication

1

Begin New Rule

3-11

High High

2

UPC/EAN

3-15

High High

3

Send all remaining data

3-25

High High

4

Send <CTRL M>

3-51

High High

5

Save Rule

3-11

High Low High Low

If you made any mistakes while entering this rule, scan the Quit Entering Rules bar code on page 3-12. If you already saved the rule, scan the Erase Previously Saved Rule bar code on page 3-12.

3-4

Page 177

Advanced Data Formatting (ADF)

Alternate Rule Sets ADF rules may be grouped into one of five alternate sets that 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 keys the price manually. To implement this, first enter an ADF rule that applies in 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,

3-5

Page 178

P 300 STD/FZY/PRO Scanner Product Reference Guide 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 disable them by scanning the appropriate bar codes in Disable Rule Set on page 3-13.

Rules Hierarchy (in Bar Codes) The order of programming individual rules is important. The most general rule should be programmed first. 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 first 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.

3-6

Page 179

Advanced Data Formatting (ADF)

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 P 300, 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.

3-7

Page 180

P 300 STD/FZY/PRO Scanner Product Reference Guide

Beeper Definitions for ADF The following table defines beep sequences that occur during rule entry. Table 3-3. Beeper Definitions Beeper Sequence

Indication

Normal Data Entry. Duration of tones are short. 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.

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. 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.

3-8

Page 181

Advanced Data Formatting (ADF)

ADF Bar Codes The following table helps you locate the bar codes you need to create an ADF rule. Table 3-4. ADF Bar Codes Bar Code

Description

Page

Special Commands Begin New Rule

Starts data formatting rule.

3-11

Save Rule

Completes and saves rule.

3-11

Erase

Erases criteria, actions, or rules.

3-12

Quit Entering Rules

Quits entering rules.

3-12

Disable Rule Set

Disables rule sets.

3-13

Code Types

Selects code types to be affected by rule.

3-14

Code Lengths

Defines the number of characters each code type must contain.

3-17

Message Containing A Specific Data String

Select whether formatting affects data that begins with or contains a specific character or data string.

3-22

Numeric Keypad

Used for specifying a data string.

3-23

Rule Belongs To Set

Selects which set a rule belongs to.

3-24

Send Data

Sends all data that remains, sends all data up to a specific character, or sends N characters.

3-25

Send Pause

Inserts a pause.

3-29

Setup Field(s)

Moves the cursor in relation to a specified character.

3-29

Send Preset Value

Sends prefix and suffix values.

3-36

Criteria

Actions

3-9

Page 182

P 300 STD/FZY/PRO Scanner Product Reference Guide

Table 3-4. ADF Bar Codes Bar Code

Description

Page

Modify Data ! Remove All Spaces ! Crunch All Spaces ! Stop Space Removal ! Remove Leading Zeros ! Stop Zero Removal ! Pad Data With Spaces ! Pad Data With Zeros

Modifies data as follows: ! Removes all spaces in the send commands. ! Leaves one space between words. ! Stops space removal. ! Removes all leading zeros. ! Stops removal of zeros. ! Pads data to the left with spaces. ! Pads data to the left with zeros.

3-36 3-36 3-36 3-37 3-37 3-37 3-38 3-43

Beeps

Selects beep sequence for each rule.

3-48

Send Keystroke Specifies control and keyboard characters to send. ! Control Characters ! Sends control characters. ! Keyboard Characters ! Sends keyboard characters. ! Send ALT Characters ! Sends ALT characters. ! Send Command ! Sends command characters. Characters ! Send Special Characters ! Sends special characters. ! Send Keypad Characters ! Sends keypad characters. ! Send Function Keys ! Sends function keys.

3-49 3-49 3-54 3-66 3-70

Turn On/Off Rule Sets

Turns rule sets on and off.

3-83

Alphanumeric Keyboard

Used to specify characters and strings when creating a rule.

3-84

3-10

3-72 3-73 3-77