Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 219
Chapter
5
Compare Instructions
(CMP, EQU, GEQ, GRT, LEQ, LES, LIM, MEQ, NEQ)
The compare instructions let you compare values by using an expression or a
specific compare instruction.
Topic Page
Compare (CMP) 221
Equal To (EQU) 226
Greater Than or Equal To (GEQ) 230
Greater Than (GRT) 234
Less Than or Equal To (LEQ) 238
Less Than (LES) 242
Limit (LIM) 246
Mask Equal To (MEQ) 252
Not Equal To (NEQ) 257
If you want to Use this instruction Available in these languages Page
Compare values based on an expression CMP Relay ladder
Structured text
(1)
221
Test whether two values are equal EQU Relay ladder
Structured text
(2)
Function block
226
Test whether one value is greater than or equal
to a second value
GEQ Relay ladder
Structured text
(1)
Function block
230
Test whether one value is greater than a
second value
GRT Relay ladder
Structured text
(1)
Function block
234