SELT_8MS: Table value selection for 8 MS values
Block SELT_8MS (FB881) provides 8 parameterized Multistate values based on one input value (selector).
Principle of operation
The block is parameterized in the value table containing rows [ValRow1..24] at max. 8 Multistate values to be output [ValOut1..8] each.
At runtime, input value [Row] determines row [ValRow1..24] whose parameterized Multistate values are output to outputs [Out1..8].
IF | THEN | |||||||
[Out1]= | [Out2]= | [Out3]= | [Out4]= | [Out5]= | [Out6]= | [Out7]= | [Out8]= | |
[Row]=1 | [ValRow1] | [ValRow1] | [ValRow1] | [ValRow1] | [ValRow1] | [ValRow1] | [ValRow1] | [ValRow1] |
[Row]=2 | [ValRow2] | [ValRow2] | ... |
|
|
|
|
|
... |
|
|
|
|
|
|
|
|
Another table [RowCnd] allows for assigning input values [Row] to a particular row [_Row..].
IF | AND | THEN | |||
Name | Value | [Out1]= | … | [Out8]= | |
[Row]=1 | [RowCnd] |
| [ValRow1] | … | [ValRow1] |
[Row]=7 | [RowCnd] |
| [ValRow2] | … | [ValRow2] |
[Row]=2 | [RowCnd] |
| [ValRow3] | … | [ValRow3] |
... |
|
|
|
|
|
If input value [Row] does not contain a valid row value, or if no valid assignment to a row is possible, exception values [EcptVal _Out1]..[EcptVal _ValOut8] are output and [Ecpt]=1 is set.
Inputs
Pin | E | Description |
Row | pa | Row (selector value) |
RowCnd | pa | Row condition Assignment table input value -> Row Specific input values [Row] are assigned to a specific row [_Row..]. |
ValRow1 | pa | Value row 1 8 parameterizable Multistate values of a row 8 Multistate values [_ValOut1]..[_ValOut8] are assigned to one row [ValRow1..24]. |
EcptVal |
| Exception value |
Outputs
Pin | E | Description |
Out1..8 | a | Output 1..8 |
Ecpt |
| Exception |
DataBlkItf |
| Data block interface |
Input values
Pin | Description | Data type | Standard value | E.g. engineering unit or text group | Min. | Max. |
Row | Row | Multistate | Off | Off...Stage15, Max | 1 | 32767 |
RowCnd | Row condition |
|
|
| 1 | 16 |
ValRow1..24 | Value row 1 |
|
|
| 1 | 16 |
EcptVal | Exeption value |
|
|
|
| 32767 |
Output values
Pin | Description | Data type | Standard value | E.g. engineering unit or text group | Min. | Max. |
Out1..8 | Output 1 | Real |
| Off...Stage15, Max | 1 | 32767 |
Ecpt | Exception | Boolean | Inactive | Inactive, Active |
|
|
DataBlkItf | Data block interface |
|
|
|
|
|
Use


Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).