Relational operations, Two operand functions, Multiple operand operations – Banner PresencePLUS P4 Series User Manual

Page 139

Advertising
background image

Relational Operations

If (X

1

> X

2

) returns True, else False.

Greater Than

If (X

1

>= X

2

) returns True, else False.

Greater Than or Equal To

If (X

1

< X

2

) returns True, else False.

Less Than

If (X

1

>= X

2

) returns True, else False.

Less Than or Equal To

If (X

1

= X

2

) returns True, else False.

Equal To

If the output of relational operation is used as an input for another Math Tool, True interpreted as 1 and False
interpreted as 0.

Two Operand Functions

Returns Abs(X

1

- X

2

).

Returns the difference - absolute value of the difference between two operands.

Diff (Difference)

Returns Mod(X

1

/ X

2

).

The modulus, or remainder, operator divides operand1 by operand2 and returns
the remainder.

Mod (Modulus)

Returns Div(X

1

÷ X

2

).

Returns the integer part of division, remainder is discarded.

Div (Integer Division)

Multiple Operand Operations

Multiple Operand Operations allow the user to make a long list of input data. All of these pieces of information
are inputs to the selected Operation.

For example, select Min as the Operation, and select an input tool. A tab is created for the input tool. Click on
this tab to specify the attribute(s) of the vision tool that will be the Operands. Multiple tools can contribute
multiple Operands to the list as shown in the examples below.

139

Banner Engineering Corp. - Minneapolis, MN USA - www.bannerengineering.com

Tel: 763.544.3164

P/N 000000

PresencePLUS Software Tools

7/2009

Advertising