The Select function block is provided with 6 input pins (input 0 through input 5), an input pin x and a Default pin. An offset value is provided along with the input. The OUTPUT pin gives an output obtained from the input value at ' input (x - offset)'. This function selects one of the 6 input values to be transferred to the output. The input selected depends on the values of x and the offset.
The default input allows multiple Select function blocks to be tied together by chaining the output of one block to the default input of the next. When Select function blocks are chained, all chained blocks receive the same input, but different offsets, so they examine different ranges of the input value. When (x-offset) selects one of the 6 inputs, the output equals the value on input (x-offset). Otherwise, the output equals the value on the default input.
Analog Inputs
| Range | ||||
| Input Name | Low | High | Input Value | Description |
| x | 0 | 255 | selection index | |
| unconnected | val = invalid | |||
| invalid | val = invalid | |||
| default | >=- infinity | <+ infinity | default value to be output when inputs are invalid or out of range | |
| unconnected | val = invalid | |||
| invalid | val = invalid | |||
| input 0-5 | >=- infinity | <+ infinity | inputs selected by the index (x - offset) | |
| unconnected | val = invalid | |||
| invalid | val = invalid | |||
Output
| Output Name | Range | Description |
| OUTPUT | Any floating point value | Output = input (x-offset) |
Setpoint
| Name | Range | Description |
| offset | 0 - 255 | Used to determine the output as Output = input (x-offset) |
Note: If any input is invalid, the output is invalid.
Output = Position determined by the value (X - Offset). If the value of (X - Offset) is greater than 6, the default value is taken as the Output.
If the value (X - Offset) is a floating point number between 0 and 6, the position is determined thus:
Example 1:
X = 100, Offset = 97, default = 10
Output = 100 - 97 = 3, and hence Input 3 is taken as the output.
Example 2:
X = 100.6, Offset = 95.2, default = 10
Output = 100.6 - 95.2 = 5.4, and hence Input 5 is taken as the output.
Example 3:
X = 100, Offset = 5.2, default = 10
Output = 100 - 5.2 = 94.4, and hence default value 10, is taken as the output.