[ENSEL_MS] Enable selector multistate (EnSwi and ValSwi)
Function block ENSEL_MS allows for selectively interconnecting 25 multistate values (1 of 25) based on input sequence.
ENSEL_MS as a central function block allows for selective interconnection of one of 25 multistate values (1 of 25). The pin with an enabled input [Val1]…[Val25] is switched first.
To interconnect multiple multistate values, block ENSEL_MS routes one of the 25 multistate inputs [Val1]…[Val25] to output [Value]. The pin with the lowest number is used first and the pin with an enabled input is switched first. If no input is enabled, the output serves as predefined value.
Interconnection conditions
- A multistate signal is available at the corresponding input.
- The related input [Val1]…[Val25] is enabled by the corresponding enabling pin [EN1]…[En25] = 1.
- If multiple inputs [Val1]...[Val25] are enabled, the pin with the lowest number is switched to output [Value].
- If all enable pins [En1]…[En25] = 0, output [Value] = [DefVal].
- If output [Value] has a valid value, output [Enable] = 1.
- Input [InNr] contains an integer signal according to the number of the input [Val] routed to output [Value].
Input | Description | Data type | Default value |
|---|---|---|---|
En1…En25 | Enable 1…Enable 25 The value with the highest priority (lowest number) is transmitted to output [Value]. | Boolean | 0 |
0 - The corresponding input [Val1]…[Val25] is not enabled. | |||
Val1…Val25 | Value 1…Value 25 The enumeration must be configured. Else, only values are displayed. | Integer | 1 |
DefVal | Default value The enumeration must be configured. Else, only values are displayed. | Integer | 1 |
Output | Description | Data type | Default value |
|---|---|---|---|
Enable | Enable | Boolean | 0 |
0 - No valid value available at the output [Value]. | |||
Value | Value The enumeration must be configured. Else, only values are displayed. | Integer | 1 |
InNr | Input number | Integer | 0 |