[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.
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].
Input | Description | Data type | Default value |
|---|---|---|---|
En1…En8 | Enable 1…Enable 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. | |||
Val1Ms1…Val8Ms1 | Value 1 with multistate 1 The enumeration must be configured. Else, only values are displayed. | Integer | 1 |
Val1Ms2…Val8Ms2 | Value 1 with multistate 2 The enumeration must be configured. Else, only values are displayed. | Integer | 1 |
Val1R1…Val8R1 | Value 1 with real 1 | Real | 0.0 |
Val1R2…Val8R2 | Value 1 with real 2 | Real | 0.0 |
DefMs1…DefMs2 | Default value for multistate 1…Default value for multistate 2 The enumeration must be configured. Else, only values are displayed. | Integer | 1 |
DefR1…DefR2 | Default value for real 1…Default value for real 2 | Real | 0.0 |
Output | Description | Data type | Default value |
|---|---|---|---|
Enable | Enable | Boolean | 0 |
0 - No 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 |
OutR1…OutR2 | Real output 1…Real output 2 | Real | 0.0 |
InNr | Input number | Integer | 0 |