[MUX8_R] Multiplexer 1 of 8 real values

Function block MUX8_R switches 8 real inputs to one output in dependence of a selector.

MUX8_R switches 8 real inputs to one output in dependence of a selector.

Functioning

MUX8_R switches the input [In0]…[In7] defined by selector [K] to output [Out].

If the value of selector [K] is smaller than 0 or greater than 7, the output [Out] is set to 0.

Selector

Output

K < 0

0

K = 0

In0

K = 1

In1

K = 2

In2

K = 3

In3

K = 4

In4

K = 5

In5

K = 6

In6

K = 7

In7

K > 7

0

Pins

Input

Description

Data type

Default value
Value range

K

Selector

Integer

0

In0In7

Input 0Input 7

Real

0.0

 

Output

Description

Data type

Default value
Value range

Out

Output

Real

0.0