Publication 1766-RM001A-EN-P - October 2008
192
Compare Instructions
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.
LES
A
≥
B
false
A
<
B
true
IMPORTANT
Only use the High Speed Counter Accumulator (HSC.ACC) for Source A in
GRT, LES, GEQ and LEQ instructions.
GRT and LES Instruction Operation
Instruction
Relationship of Source Values
Resulting Rung State
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
Execution Time for the GEQ and LEQ Instructions
Controller
Instruction
Data Size
When Rung Is:
True
False
MicroLogix 1400
GEQ
word
1.0710 µs
0.2228 µs
long word
1.0601 µs
0.2242 µs
LEQ
word
1.0640 µs
0.1847 µs
long word
1.0364 µs
0.1851 µs
GEQ and LEQ Instruction Operation
Instruction
Relationship of Source Values
Resulting Rung State
GEQ
A
≥
B
true
A < B
false
LEQ
A > B
false
A
≤
B
true
IMPORTANT
Only use the High Speed Counter Accumulator (HSC.ACC) for Source A in
GRT, LES, GEQ and LEQ instructions.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive