Use Strings In An Expression - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)

Use Strings in an Expression

To use strings of ASCII characters in an expression, follow these guidelines:
· An expression lets you compare two string tags.
· You cannot enter ASCII characters directly into the expression.
· Only the following operators are permitted.
Operator
=
<
<=
>
>=
<>
· Strings are equal if their characters match.
· ASCII characters are case sensitive. Upper case 'A' ($41) is not equal to
lower case 'a' ($61).
· The hexadecimal values of the characters determine if one string is less than
or greater than another string. For the hex code of a character, see the back
cover of this manual.
· When the two strings are sorted as in a telephone directory, the order of
the strings determines which one is greater.
L
e
s
s
e
r
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Description
Equal
Less than
Less than or equal
Greater than
Greater than or equal
Not equal
ASCII Characters
1ab
1b
G
r
A
e
a
AB
t
e
B
r
a
ab
Chapter 8
Hex Codes
$31$61$62
$31$62
$41
$41$42
AB < B
$42
$61
a > B
$61$62
369

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents