Publication 1762-RM001C-EN-P
Compare Instructions 9-5
GEQ - Greater Than or
Equal To
LEQ - Less Than or Equal
To
Instruction Type: input
The GEQ instruction is used to test whether one value is greater than or
equal to a second value. The LEQ instruction is used to test whether one
value is less than or equal to a second value.
GEQ
Grtr Than or Eql (A>=B)
Source A N7:0
0<
Source B N7:1
0<
GEQ
LEQ
Less Than or Eql (A<=B)
Source A N7:0
0<
Source B N7:1
0<
LEQ
Table 9.6 Execution Time for the GEQ and LEQ Instructions
Controller Data Size When Rung Is:
True False
MicroLogix 1200 word 1.3
µ
s1.1
µ
s
long word 2.8
µ
s2.7
µ
s
MicroLogix 1500 word 1.2
µ
s1.1
µ
s
long word 2.6
µ
s2.5
µ
s
Table 9.7 GEQ and LEQ Instruction Operation
Instruction Relationship of Source Values Resulting Rung State
GEQ A
≥
Btrue
A < B false
LEQ A > B false
A
≤
Btrue
IMPORTANT
Only use the High Speed Counter Accumulator (HSC.ACC)
for Source A in GRT, LES, GEQ and LEQ instructions.