beautypg.com

Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 128

background image

Data Manipulation Instructions

Chapter 6

6Ć6

Figure 6.6

GreaterĆThan Comparison

|ą|

02

(ą)

01

120 010

| G |

100

030

| < |

YYY

031

Reference Value

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

Equal To – An equal-to comparison is made with the Get and Equ
instructions (Figure 6.7). The Get value is the changing variable and is
compared to the reference value of the Equ instruction for an equal-to
condition. When the Get value equals the Equ value, the comparison is true
and logic continuity is established.

Figure 6.7

EqualĆTo Comparison

|ą|

03

(ą)

02

120 010

| G |

YYY

030

| = |
100

035

Reference Value

When YYY=100, GET/EQU comparison is true and 010/02 is energized.

Less Than or Equal To – This comparison is made using the Get, Les
and Equ instructions. The Get value is the changing value. The Les and
Equ instructions are assigned a reference value (Figure 6.8). When the
Get value is either less than or equal to the value at the Les and Equ
instructions, the comparison is true and logic continuity is established.

NOTE: Only one Get instruction is required for a parallel comparison. The
Les and Equ instructions are programmed on parallel branches.