ENSEL_MS: Enable selector multistate
Block ENSEL_MS (FB453) as a central block allows for selective interconnection of one of 25 multistate values (1 of 25) to a particular priority.
Functionality
To interconnect multiple multistate values to a particular priority, block ENSEL_MS routes one of the 25 multistate inputs [Val1..25] to output [Value].

The following conditions apply:
- A multistate signal is available at the corresponding value input (Off..Stage15).
- The corresponding value input [Val1..25] = Off..Stage15 is enabled by the corresponding enabling pin [En1..25] =1 (Yes).
- There is no higher-value input [Val1..25] at output [Value].
- If multiple value inputs [Val1..25] are enabled [En1..25], the pin with the lowest number is switched to output [Value].
- Output [InNr] contains an integer number according to the number of the input [Val] routed to output [Value].
- If all enable pins [En1..25] = 0 (No), output [Value] is set to the default value [DefVal].
- If the output [Value] represents a valid value, output [Enable] = 1 (Yes).
Function table
Inputs | Outputs | |||
En1..25 (Boolean) | Val1..25 (Multistate) | Enable (Boolean) | Value (Multistate) | InNr (Integer) |
0 (No) | Off..Stage15 | 0 (No) | DefVal | 0 |
1 (Yes) | Off..Stage15 | 1 (Yes) | Off..Stage15 | 1 of 25 |
Inputs
Pin | E | Description |
En1..En25 | pa | Enable 1..25. |
Val1..Val25 | pa | Values (1..25). |
DefVal | pa | Default value. |
Outputs
Pin | E | Description |
Enable | a | Enable. |
Value | a | Value. |
InNr | a | Input number. |
Input values
Pin | Description | Data type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
En1..En25 | Enable 1..25. | Boolean | 0 (No) | No, Yes |
|
|
Val1..Val25 | Values (1..25). | Multistate | 1 (Off ) | Off...Stage15 |
|
|
DefVal | Default value. | Multistate | 1 (Off ) | Off...Stage15 |
|
|
Output values
Pin | Description | Data type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
Enable | Enable. | Boolean | 0 (No) | No, Yes |
|
|
Value | Value. | Multistate | 1 (Off ) | Off...Stage15 |
|
|
InNr | Input number. | Integer | 0 |
|
|
|
Engineering
If Enable1 then | Value:=Value1; Enable:=Yes. |
elseif Enable 2 then | Value:=Value2; Enable:=Yes. |
elseif Enable 3 then | Value:=Value3; Enable:=Yes. |
... |
|
else | Enable:=No. |
endif |
|
Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).