Allen-Bradley 2755-DS1A Product Data page 18

Single/dual-head enhanced bar code decoders
Table of Contents

Advertisement

Product Data
Bulletin 2755
Single/Dual-Head Enhanced Bar Code Decoders
18
Table 4
Replacement String Metacharacters
Character
\n
The backslash plus a number 1 through 9 recalls a previously saved string. Any
character, string or expression that is surrounded by parentheses in the search
pattern (as described earlier) can be recalled by the replace pattern using the "\n"
format. Since the parentheses may be nested, the number "n" represents the order
of the groupings as defined by the order of the left parenthesis in the search pattern.
Examples
Search Pattern =
Replace Entire String With =
Incoming String =
Result for Host Message =
The search pattern above matches the incoming string. The Replace Entire String
With value states that the string identified within the first parentheses should be sent
to the host.
Search Pattern =
Replace Entire String With =
Incoming String =
Result for Host Message =
The search pattern above matches the incoming string. The Replace Entire String
With value states that the string identified within the first parentheses (123ABC),
plus the string identified by the second parentheses(ABC) should be sent to the
host.
&
When the ampersand ( & ) is used in a replacement pattern, it indicates that the part
of the string that matches the search pattern should be sent to the host. Therefore,
if the string read contains more characters than the search pattern, then the
additional characters are discarded.
Examples
Search Pattern =
Replace Entire String With =
Incoming String =
Result for Host Message =
The search pattern matches the incoming string. The Replace Entire String With
value states that the string identified in the search pattern should be sent to the
host.
Search Pattern =
Replace Entire String With =
Incoming String =
Result for Host Message =
The search pattern matches the incoming string. The Replace Entire String With
value states that the string identified in the search pattern should be sent to the
host. This does not include the digits 456.
Description and Use
123(ABC)
\1
123ABC456
ABC
(123(ABC))
\1\2
123ABC456
123ABCABC
123ABC
&
123ABC
123ABC
123ABC
&
123ABC456
123ABC

Advertisement

Table of Contents
loading

This manual is also suitable for:

2755-ds4a2755-dd1a2755-dd4a

Table of Contents