9 - using comparison instructions, Using comparison instructions, Chapter – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual
Page 152

9
Chapter
9–1
Using Comparison Instructions
This chapter contains general information about comparison instructions and
explains how they function in your application program. Each of the
comparison instructions includes information on:
•
what the instruction symbol looks like
•
typical execution time for the instruction
•
how to use the instruction
•
how to enter the instruction
In addition, the last section contains an application example for a paper
drilling machine that shows the comparison instructions in use.
Comparison Instructions
HHP
Display
Mnemonic
Function
Code
Name
Purpose
Page
EQU
LD EQU
50
EQU
AND EQU
51
Equal
Test whether two values are equal.
9–3
EQU
OR EQU
52
a
es
e er
a es are e a
9–3
NEQ
LD NEQ
53
NEQ
AND NEQ
54
Not Equal
Test whether one value is not equal to a second value.
9–4
NEQ
OR NEQ
55
a
es
e er
e a e is
e a
a sec
a e
9–4
LES
LD LES
56
LES
AND LES
57
Less Than
Test whether one value is less than a second value.
9–5
LES
OR LES
58
Less
a
es
e er
e a e is ess a a sec
a e
9–5
LEQ
LD LEQ
59
LEQ
AND LEQ
60
Less Than or
a
Test whether one value is less than or equal to a second value.
9–6
LEQ
OR LEQ
61
Equal
es
e er
e a e is ess a
r e a
a sec
a e
9–6
GRT
LD GRT
62
GRT
AND GRT
63
Greater Than
Test whether one value is greater than another.
9–7
GRT
OR GRT
64
rea er
a
es
e er
e a e is rea er a a
er
9–7
GEQ
LD GEQ
65
GEQ
AND GEQ
66
Greater Than or
a
Test whether one value is greater than or equal to a second value.
9–8
GEQ
OR GEQ
67
Equal
es
e er
e a e is rea er a
r e a
a sec
a e
9–8
Continued on following page