[ENSEL_4V] Enable selector for four values (2 multistate and 2 real values)

Function block ENSEL_4V allows for selectively interconnecting 8 multiple inputs (1 of 8) based on input sequence.

ENSEL_4V as a central function block allows for selective interconnection of 8 multiple inputs (1 of 8). The multiple inputs have two multistate values and two real values available. Pins with an enabled value input are switched first.

Functioning

To interconnect multiple multistate and real values, ENSEL_4V routes the values of the multistate inputs [Valxx1]…[Valxx8] to the outputs [Outxx]. The pins having the lowest numbers come first and the pins with enabled value inputs are switched first. If value input is not enabled, the outputs serve as predefined values.

Interconnection conditions

  • A multistate signal is available at the corresponding value input.
  • A real value is pending at the corresponding value input.
  • The related value inputs [Valxx1]…[Valxx8] are enabled by the corresponding enabling pin [EN1]…[En8] = 1.
  • If multiple value inputs [Valxx1]…[Valxx8] are enabled, the pin with the lowest number is switched to outputs [Outxx].
  • If all enable pins [En1]…[En8] = 0, outputs [Outxx] = [Defxx].
  • If outputs [Outxx] have a valid value, output [Enable] = 1.
  • Pin [InNr] has an integer signal according to the number of the outputs [Outxx] routed to the inputs [Valxx].
Pins

Input

Description

Data type

Default value
Value range

En1En8

Enable 1Enable 8

Values with the highest priority (lowest number) are transmitted to outputs [Outxx].

Boolean

0

0 - The impacted multiple values inputs [Valxx1...8] = "Value" are not enabled.
1 - The impacted multiple values inputs [Valxx1...8] = "Value" are enabled by the corresponding enable pin [En1...25].

Val1Ms1Val8Ms1

Value 1 with multistate 1

The enumeration must be configured. Else, only values are displayed.

Integer

1

Val1Ms2Val8Ms2

Value 1 with multistate 2

The enumeration must be configured. Else, only values are displayed.

Integer

1

Val1R1Val8R1

Value 1 with real 1

Real

0.0

Val1R2Val8R2

Value 1 with real 2

Real

0.0

DefMs1DefMs2

Default value for multistate 1Default value for multistate 2

The enumeration must be configured. Else, only values are displayed.

Integer

1

DefR1DefR2

Default value for real 1Default value for real 2

Real

0.0

 

Output

Description

Data type

Default value
Value range

Enable

Enable

Boolean

0

0 - No valid value available at the outputs Outxx.
1 - Valid value available at the outputs Outxx.

OutMs1...OutMs2

Multistate output 1...Multistate output 2

The enumeration must be configured. Else, only values are displayed.

Integer

1

OutR1OutR2

Real output 1Real output 2

Real

0.0

InNr

Input number

Integer

0