SEL_VAL1: Selector 1 for values, input , 1.FB
Block SEL_VAL1 (FB500) forms a selector function (n-to-1 assignment) together with SEL_VAL2 and SEL_VAL3.
Block SEL_VAL1 bundles 24 inputs (8xBoolean, 8xInteger, 8xReal) and permits their enable using just one signal [EnInVal].
Principle of operation
Blocks SEL_VAL1 and SEL_VAL2 bundle 24 inputs each. The enabled input values [EnInVal] = True, are read in sequence by block SEL_VAL3 and outputted.

Inputs
Pin | E | Description |
EnInVal | pa | Enable input values Block SEL_VAL3 outputs all input values of this block. |
Bool1..8 | pa | Bool 1 Boolean input value |
Itgr1..8 | pa | Integer 1 Integer input value |
Real1..8 | pa | Real 1 Real input value |
Outputs
Pin | E | Description | |
BlkRefO | a | Block reference output Interconnection with SEL_VAL2 or SEL_VAL3. This implements selector function (n-to-1). | |
ErrRef | a | Reference error | |
1 (Yes) | No values are outputted at block SEL_VAL3.
| ||
0 (No) | Normal function. | ||
Engineering selector function (n-to-1)
Together, blocks SEL_VAL1, SEL_VAL2 and SEL_VAL3 form a selector function (n-to-1).
The following interconnection is important for the correct function.

- Block SEL_VAL1 is the first block in the interconnection sequence. It bundles the first 24 inputs.
- One or more SEL_VAL2 each bundle additional inputs. Blocks are interconnected to one another via [BlkRefIn] and [BlkRefO].
- Block SEL_VAL3 concludes the selector function. It is interconnected via [BlkRefIn] and [BlkRefO] with SEL_VAL1 or SEL_VAL2.
- The processing sequence is important to proper functioning and must be optimized prior to compiling the chart using the CFC command Optimize chart.
- Only a single block (SEL_VAL1, SEL_VAL2) is enabled (the last enabled SEL_VAL2 in the processing sequence has precedence).
Note: During the initial programming loop, it checks whether interconnection is correct and whether the version of the three blocks is identical. If not, [ErrRef] = 1 (Yes) and no input values are outputted on block SEL_VAL3.
Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).