Greater than (grt), Entering the instruction – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual
Page 158
Chapter 9
Using Comparison Instructions
9–7
Use the GRT instruction to test whether one value (source A) is greater than
another (source B). If the value at source A is greater than the value of
source B, the instruction is logically true. If the value at source A is less than
or equal to the value of source B, the instruction is logically false.
Source A must be a word address. Source B can be either a constant or word
address. Negative integers are stored in two’s complement form.
Entering the Instruction
HHP Display
Mnemonic
Function
Code
Use This Instruction When the Input:
GRT
LD GRT
62
appears first on a rung or block
GRT
AND GRT
63
is placed in series with any previous input
instruction in the current rung or block
GRT
OR GRT
64
is placed in parallel with any previous in-
put instruction in the current rung or block
You enter the instruction from within the program monitor functional area.
The example below shows how to enter the LD GRT instruction. Use the
same procedure to enter the other GRT instructions, only substitute the
function code with one from the table above.
P 0 0 0
G R T
S R C A
N 1 1
0
P 0 0 0
G R T
S R C B
1 0 0
24.00
False
23.60
True
6.60
LD GRT
7.00
AND GRT
24.00
7.00
OR GRT
GRT
GREATER THAN
Source A
N7:11
0
Source B
100
Execution Times (
µ
sec) when:
Ladder representation:
Greater Than (GRT)
2
L
6
FUN
ENT
To enter the function code, press: