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

Page 96

Advertising
background image

Function Block Library

4–34

1336 FORCE — 5.9 August 1995

MULTIPLEXER

BLOCK TYPE 21 decimal 15 hexadecimal

Multiplexer

ID =

Exec =

NODE 0

In 1

Output

NODE 6

NODE 1

In 2

NODE 5

Sel 1

NODE 4

Sel 0

NODE 3

In 4

NODE 2

In 3

DEFINITION

Selects one of (4) input values In 1 – In 4 based on selector Sel 0
and Sel 1.

INPUTS

In 1 – In 4 — A signed input integer.

Sel 0 and Sel 1 — Selector inputs that form a two-bit binary value
used to select one of (4) inputs In 1 – In 4.

OUTPUT

Output — A signed integer.

FUNCTION

When Sel 1 is

and Sel 0 is

Output =

0

0

In 1

0

0

In 2

0

0

In 3

0

0

In 4

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

In 1

Signed Integer

Yes

0

±

32767

In 2

Signed Integer

Yes

0

±

32767

In 3

Signed Integer

Yes

0

±

32767

In 4

Signed Integer

Yes

0

±

32767

Sel 0

Logic Input

Yes

0

True/False

Sel 1

Logic Input

Yes

0

True/False

Output

Signed Integer

No

±

32767

EXAMPLES

EXAMPLE 1

EXAMPLE 2

EXAMPLE 3

EXAMPLE 4

In 1

10

10

10

10

In 2

25

25

25

25

In 3

42

42

42

42

In 4

– 60

– 60

– 60

– 60

Sel 0

False

True

False

True

Sel 1

False

False

True

True

Output

10

25

42

– 60

Advertising