beautypg.com

Rockwell Automation DeviceLogix System User Manual User Manual

Page 44

background image

44

Publication RA-UM003B-EN-P - February 2010

Chapter 2 Navigate the Function Block Editor Interface

Compare Category

The Compare category includes basic comparison functions, including
the the instruction types:

• Greater Than (GRT)

• Greater Than or Equal To (GEQ)

• Equal (EQU)

• Not Equal (NEQ)

• Less Than (LES)

• Less Than or Equal (LEQ)

• Mask (MEQ)

Operation rules [all except Mask (MEQ)]

The conditions and outputs of each function block are described
below.

Data ranges

The valid data ranges for all of these instructions are as follows.

Function Block
Type

Condition

Output

Greater Than (GRT)

Source A > Source B

1

Source A <= Source B

0

Greater Than or
Equal (GEQ)

Source A >= Source B

1

Source A < Source B

0

Equal (EQU)

Source A == Source B

1

Source A != Source B

0

Not Equal (NEQ)

Source A != Source B

1

Source A == Source B

0

Less Than (LES)

Source A < Source B

1

Source A >= Source B

0

Less Than or Equal
(LEQ)

Source A <= Source B

1

Source A > Source B

0

Parameters

Data Range

Source A

-2147483648 ~ 2147483647 (DINT)
-3.402823466e+38F ~ 3.402823466e+38F (REAL)

Source B

-2147483648 ~ 2147483647 (DINT)
-3.402823466e+38F ~ 3.402823466e+38F (REAL)

FaultOption

0, 1, 2