Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual

Page 94

Advertising
background image

Function Block Library

4–32

1336 FORCE — 5.9 August 1995

MINMAX

BLOCK TYPE 13 decimal 0D hexadecimal

Min/Max

ID =

Exec =

Output

NODE 0

In #1

NODE 1

In #2

NODE 2

Select

NODE 3

DEFINITION

Chooses the minimum or maximum of two input values In #1, In #2
according to the Select Input.

INPUTS

In #1 — A signed integer that is compared to In #2.

In #2 — A signed integer that is compared to In #1.

Select — When = 0 will select the minimum function.
When

0 will select the maximum function.

OUTPUT

Output — A signed integer that is the minimum or maximum of
In #1 and In #2.

FUNCTION

1. If Select is false and In #1 < In #2, then Output = In #1.

2. If Select is false and In #1 > In #2, then Output = In #2.

3. If Select is true and In #1 < In #2, then Output = In #2.

4. If Select is true and In #1 > In #2, then Output = In #1.

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

In #1

Signed Integer

Yes

0

±

32767

In #2

Signed Integer

Yes

0

±

32767

Select

Logic Input

Yes

0

True/False

Output

Signed Integer

No

±

32767

EXAMPLES

EXAMPLE 1

EXAMPLE 2

In #1

5

5

In #2

– 8

– 8

Select

0

1

Output

– 8

5

Advertising