Rockwell Automation 1772-LS_LSP,D17726.8.6 PROG/OPER MANUAL-MINI PLC-2/05 User Manual

Page 84

Advertising
background image

Data Manipulation Instructions

Chapter 9

9Ć9

Greater Than

Purpose: A greater than comparison is also made with the Get/Les pair of
instructions. This time the Get instruction BCD value is the reference and the
Les instruction BCD value is the changing value. The Les value is compared
with to the Get value for a greater than condition. When the Les value is greater
than the Get value, the comparison is true and logic continuity is established.

120

03

030

YYY

010

02

G

010

000

<

Reference Value

When YYY > 100, GET/LES comparison is true and 010/02 is energized.

Keystrokes: You enter a greater than comparison by performing the
following steps.

1.

Press -[G]-.

2.

Enter <address>.

3.

Enter <reference value>.

4.

Press -[<]-.

5.

Enter <address>.

6.

Enter <reference value>.

Editing the Operation
See the editing for the Get and Less instructions

Equal To or Greater Than

Purpose: This comparison is made using the Get, Les, Equ and branching
instructions. The Get value is assigned a reference value. The Les and Equ
values are changing and are compared to the Get value. When the Les and Equ
values are greater than or equal to the Get value, the comparison is true and
logic continuity is established.

120

05

030

440

010

02

G

042

YYY

<

When YYY  440, GET/LESĆEQU comparison is true and 010/04 is energized.

042

YYY

=

Reference Value

Advertising