Rockwell Automation 2755 Enhanced Decoder Series B User Manual
Page 152

10–17
Configuration: Host Message Replacement Rules
Publication 2755-833
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
Find String
Containing
^P( . . . . . . .
)$
^Q( . * )
^S( . * )
^V( . . . . . )$
Replace Entire
String With
\1
Qty = \1
\1
\1
Minimum Field
Length
0
0
0
0
Alignment Right
Right
Right
Right
Fill Character None
None
None
None
Host Message
Field Number
1
2
3
4
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”