[MUX2_R] Multiplexer 1 of 2 real values

Function block MUX2_R switches 2 real inputs to one output in dependence of a selector.

MUX2_R switches 2 real inputs to one output in dependence of a selector.

Functioning

MUX2_R switches the input [In0]…[In1] defined by selector [K] to the output [Out].

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

Selector

Output

K < 0

0

K = 0

In0

K = 1

In1

K > 1

0

Pins

Input

Description

Data type

Default value
Value range

K

Selector

Integer

0

In0In1

Input 0Input 1

Real

0.0

 

Output

Description

Data type

Default value
Value range

Out

Output

Real

0.0