Allen-Bradley Logix5000 Reference Manual page 220

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

Advertisement

Chapter 5
Compare Instructions (CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
If you want to
Test whether one value is less than or equal to
a second value
Test whether one value is less than a
second value
Test whether one value is between two
other values
Pass two values through a mask and test
whether they are equal
Test whether one value is not equal to a
second value
(1) There is no equivalent structured text instruction. Use other structured text programming to achieve the same result. See the description for the instruction.
(2) There is no equivalent structured text instruction. Use the operator in an expression.
220
Use this instruction
LEQ
LES
LIM
MEQ
NEQ
REAL values are rarely absolutely equal. If you need to determine the
IMPORTANT
equality of two REAL values, use the LIM instruction.
You can compare values of different data types, such as floating point
and integer.
For relay ladder instructions, bold data types indicate optimal data types. An
instruction executes faster and requires less memory if all the operands of the
instruction use the same optimal data type, typically DINT or REAL.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Available in these languages
Relay ladder
(1)
Structured text
Function block
Relay ladder
(1)
Structured text
Function block
Relay ladder
(1)
Structured text
Function block
Relay ladder
(1)
Structured text
Function block
Relay ladder
(1)
Structured text
Function block
Page
238
242
246
252
257

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents