Rockwell Automation 2755 Enhanced Decoder Series B User Manual
Page 153

10–18
Configuration: Host Message Replacement Rules
Publication 2755-833
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.