Publication 1763-RM001C-EN-P - October 2009
Compare Instructions
181
EQU - Equal
NEQ - Not Equal
Instruction Type: input
The EQU instruction is used to test whether one value is equal to a
second value. The NEQ instruction is used to test whether one value is
not equal to a second value.
GRT - Greater Than
LES - Less Than
Instruction Type: input
The GRT instruction is used to test whether one value is greater than a
second value. The LES instruction is used to test whether one value is less
than a second value.
EQU
Equal
Source A
N7:0
0<
Source B
N7:1
0<
EQU
NEQ
Not Equal
Source A
N7:0
0<
Source B
N7:1
0<
NEQ
Execution Time for the EQU and NEQ Instructions
Controller
Instruction
Data Size
When Rung Is:
True
False
MicroLogix 1100
EQU
word
8.78
μ
s
0.87
μ
s
long word
9.09
μ
s
0.87
μ
s
NEQ
word
8.78
μ
s
0.9
μ
s
long word
9.128
μ
s
0.9
μ
s
EQU and NEQ Instruction Operation
Instruction
Relationship of Source Values
Resulting Rung State
EQU
A = B
true
A
≠
B
false
NEQ
A = B
false
A
≠
B
true
GRT
Greater Than (A>B)
Source A
N7:0
0<
Source B
N7:1
0<
GRT
LES
Less Than (A<B)
Source A
N7:0
0<
Source B
N7:1
0<
LES
Execution Time for the GRT and LES 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
GRT and LES Instruction Operation
Instruction
Relationship of Source Values
Resulting Rung State
GRT
A > B
true
A
≤
B
false
LES
A
≥
B
false
A
<
B
true
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive