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 μs0.9 μs
long word 9.128 μs0.9 μs
EQU and NEQ Instruction Operation
Instruction Relationship of Source Values Resulting Rung State
EQU A = B true
A ≠Bfalse
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 ≥ Bfalse
A < B true
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive