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 4 of 7

Single/Dual-Head Enhanced Bar Code Decoders (Catalog No. 2755-DS1A, -DS4A, -DD1A, -DD4A) Series B Product Data, pages 21 to 27

Pages 21 to 27 of 40

The original document is the PDF (230 KB). 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 Allen-Bradley 2755-DS

Page 21

Product Data Bulletin 2755 Single/Dual-Head Enhanced Bar Code Decoders

Example 5: Sorting Symbols by Data Identifiers Parameter Rule #1 Value

Rule #2 Value

Rule #3 Value

Rule #4 Value

Source A|B

A|B

A|B

A|B

Symbology Any

Any

Any

Any

Symbol Number All

All

All

All

^Q( . * )

^S( . * )

^V( . . . . . )$

Qty = \1

\1

\1

0

0

0

Alignment Right

Right

Right

Right

Fill Character None

None

None

None

2

3

4

Find String ^P( . . . . . . . )$ Containing Replace Entire String \1 With Minimum Field 0 Length

Host Message Field 1 Number

This example illustrates the effects of sorting host data using data identifiers. Specifications such as AIAG and ODETTE use these unique characters to identify specific data within a group of symbols. These characters are embedded into the encoded Bar Code symbol. Although not always printed in the human readable text, they appear as the first character (or group of characters) in the symbol. In this example data are sorted so that the part number, quantity, serial number, and supplier identification are sent to the host in that particular order. By using the parentheses in the search string and the “\1” in the replace string, we are able to strip off the data identifier, and send only the data desired. In this example, if the part number does not have exactly 7 characters after the identifier, it will fail the rule and not be sent. In rule #2, we search for the quantity identifier. If the symbol Q100 was read, we would send “Qty = 100” with the replace string “Qty = \1”

21

Page 22

Product Data Bulletin 2755 Single/Dual-Head Enhanced Bar Code Decoders

Example 6: Sorting by Unique Characters and/or Strings Parameter Rule #1 Value Source A|B Symbology Any Symbol Number All Find String Containing ^6[2–9] | ^[7–9][0–9]$ Replace Entire String With & Minimum Field Length 0 Alignment Right Fill Character None Host Message Field Number 1

This rule checks symbols as they are decoded for values between 62 and 99. All other symbols would be ignored by this rule. Values between 62 and 99 are sent to the host. Note the ^ and $ are required to avoid matching strings such as 562 or 758 that do contain the desired string data (62 and 75), but are not the desired matches.

Example 7: Stripping Unwanted Characters Parameter Rule #1 Value Source A|B Symbology Any Symbol Number All Find String Containing ^0*( . * )$

($ is optional in this example)

Replace Entire String With \1 Minimum Field Length 0 Alignment Right Fill Character None Host Message Field Number 1

This example strips leading zeroes off the decoded symbols. For example, the symbol 00012345678905 would be sent to the host as 12345678905.

22

Page 23

Product Data Bulletin 2755 Single/Dual-Head Enhanced Bar Code Decoders

Example 8: Stripping Unwanted Characters Parameter Rule #1 Value Source A|B Symbology UPC-A Symbol Number All Find String Containing ^( . . . . . . )(. * ) Replace Entire String With \2 Minimum Field Length 0 Alignment Right Fill Character None Host Message Field Number 1

This rule allows the number system character (first character) and the next 5 characters (the manufacturer’s identification code) to the dropped when the data is sent to the host. This technique can be useful in obtaining maximum throughput, as it helps minimize communication and host program sorting time.

Example 9: Substituting Characters Within a String Parameter Rule #1 Value Source A|B Symbology Any Symbol Number All Find String Containing ( . * )(123)( . * ) Replace Entire String With \1ABC\3 Minimum Field Length 0 Alignment Right Fill Character None Host Message Field Number 1

This example will substitute “ABC” for “123” within the string. Note that if “123” appears more than once within the incoming data, “ABC” will be substituted only for the last occurrence. For example, “01234567” would become “0ABC4567”, and “01231237” would become “0123ABC7”.

23

Page 24

Product Data Bulletin 2755 Single/Dual-Head Enhanced Bar Code Decoders

Host Message Format Function 6 on the Select Operation menu accesses the Host Message Format configuration screen. Use this function to configure the message format of bar code data sent to the host. Host Message Parameters These settings control the message format of bar code data sent to the host.

Default No–Read String Defines a 1 to 32 character no-read message to include in each message sent to the host when a no-read occurs and a specific no-read message has not been defined for that field. No-Read Replacement Strings If Host Replacement Rules are active, these strings will be substituted for the bar code data whenever a rule fails or a no-read occurs. This allows you to generate specific no-read messages in response to particular data.

The data is sent to the host as an ASCII string. Figure 3 shows the structure of the string. For each field in the string, the figure shows:

• The type of data in each field • length of the field (in parentheses) Some of the fields are controlled by the bar code itself. However, most of the fields are controlled by the host message configuration parameters. In addition, many of these same functions can be performed using the Host Replacement Rules described earlier in this manual.

24

Page 25

Product Data Bulletin 2755 Single/Dual-Head Enhanced Bar Code Decoders

Figure 3 Bar Code Host Message Format

ASCII BAR CODE DATA

12. Transmission Check (0 to 2) 11. End Message (0 to 3) 10. Performance Indicators. (0 or 6) 9. Package Count (0 or 6–DD, 0 or 3–DS) 8. Field Delimiter (0 or 1) 7. Field Delimiter (0 or 1)

6. Bar Code Data or No-Read Message (0 to 64 characters, including start, stop, and check characters. Up to 64 characters will be sent for each field read. (Codabar Stop Character follows Codabar Check Characters, if sent.) The results of the Host Replacement Rules or the No-Read Replacement Strings (if enabled) will be sent in this position. 5. Symbology (0 or 2) 4. Field Delimiter (0 or 1) 3. Header Message (0 to 32) 2. Source Identifier (0 to 4) 1. Start Character (0 or 1)

In messages containing multiple bar code data strings, each string will be separated by a single field delimiter. A double delimiter follows the final string.

25

Page 26

Product Data Bulletin 2755 Single/Dual-Head Enhanced Bar Code Decoders

Host Communications Function 7 on the Select Operation menu accesses the Host Communications menu screen You can use this screen to control host communications settings for the HOST port. (Configuration must be saved and decoder restarted for changes in this section to take effect.) Also defines trigger characters, buffer size and when message will be sent to the host.

AUX Terminal Data Entry Function 8 on the Select Operation screen accesses the AUX Terminal Data Entry screen. With this screen you can configure the AUX terminal for manual data entry operations. These parameters are used by the terminal when the AUX port is set to manual data entry (not configuration) mode.

26

Page 27

Product Data Bulletin 2755 Single/Dual-Head Enhanced Bar Code Decoders

Display Status and Primary Counters The Display Status and Primary Counters function on the Select Operation menu allows you to monitor system status and counters maintained by the decoder.

27