Publication 1766-RM001A-EN-P - October 2008
Compare Instructions
191
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 1400
EQU
word
1.0814 µs
1.0854 µs
long word
1.0674 µs
1.0828 µs
NEQ
word
1.5056 µs
0.1880 µs
long word
1.3892 µs
0.2070 µ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
Instruction
Data Size
When Rung Is:
True
False
MicroLogix 1400
GRT
word
1.0682 µs
0.2414 µs
long word
1.0942 µs
0.2212 µs
LES
word
1.0772 µs
0.2106 µs
long word
1.0935 µs
0.2137 µs
GRT and LES Instruction Operation
Instruction
Relationship of Source Values
Resulting Rung State
GRT
A > B
true
A
≤
B
false
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive