[SELMS_4V] Multistate selector for four values

Function block SELMS_4V switches multistate inputs to outputs depending on a selector and a corresponding input selector condition.

SELMS_4V switches multistate inputs to outputs depending on a selector and a corresponding input selector condition. The multiple inputs have two multistate values and two real values available.

Functioning

SELMS_4V switches the input [In0xx]...[In7xx] whose selector condition [KCnd0]...[KCnd7] matches selector [K] to output [Outxx]. If there is no match, the default value [Defxx] is output at outputs [Outxx]. If several input selector conditions [KCnd0]...[KCnd7] are the same and selector [K] corresponds to a condition, input [In0xx]...[In7xx] of the lowest selector condition [KCnd0xx]...[KCnd7xx] is switched to output [Outxx].

Pins

Input

Description

Data type

Default value
Value range

K

Selector

Integer

0

KCnd0...KCnd7

Selector condition for input 0...Selector condition for input 7

Integer

0

In0Ms1...In0Ms2

Input 0 with multistate 1...Input 0 with multistate 2

Integer

0

In0R1...In0R2

Input 0 with real 1...Input 0 with real 2

Real

0.0

KCnd1...KCnd7

Selector condition for input 1...Selector condition for input 7

Integer

0

In1Msx...In7Msx

Input 1...7, multistate 1 and 2

Integer

0

In1Rx...In7Rx

Input 1...7, real 1 and 2

Real

0.0

DefMs1...DefMs2

Default value for multistate 1...Default value for multistate 2

Integer

0

DefR1DefR2

Default value for real 1Default value for real 2

Real

0.0

 

Output

Description

Data type

Default value
Value range

OutMs1...OutMs2

Multistate output 1...Multistate output 2

Integer

0

OutR1OutR2

Real output 1Real output 2

Real

0.0