Publication 1763-RM001C-EN-P - October 2009
182
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.
MEQ - Mask Compare
for Equal
Instruction Type: input
IMPORTANT
Only use the High Speed Counter Accumulator
(HSC.ACC) for Source A in GRT, LES, GEQ and LEQ
instructions.
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
Data Size
When Rung Is:
True
False
MicroLogix 1100
word
8.96
μ
s
0.87
μ
s
long word
9.09
μ
s
0.87
μ
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.
MEQ
Masked Equal
Source
N7:0
0<
Mask
N7:1
0000h<
Compare
N7:2
0<
MEQ
Execution Time for the MEQ Instructions
Controller
Data Size
When Rung Is:
True
False
MicroLogix 1100
word
36.0
μ
s
0.9
μ
s
long word
36.65
μ
s
0.9
μ
s
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive