Analog Control Blocks > Input Selector function block

Input Selector function block execution

The Input Selector function block supports up to 4 inputs and selects the inputs either by direct selecting (OP_SELECT) or by applying a selected algorithm (SELECT_TYPE).

Direct selecting inputs

The parameter OP_SELECT is used to select a particular input by setting the value of OP_SELECT to the input number (1 through 4). For example, set OP_SELECT to 2 and IN_2 is direct selected. If OP_SELECT is zero, then the value of SELECT_TYPE is used.

Selection types

The parameter SELECT_TYPE is configured for the selection algorithm for the block. The selection algorithms supported by Input Selector are as follows:
  • MAX Selects the highest valued input from those inputs that are not bad and are not disabled.

  • MIN Selects the lowest valued input from those inputs that are not bad and are not disabled.

  • MID Selects the mid valued input from those inputs that are not bad and are not disabled. If there is an even number of usable inputs, OUT is the average of the inputs. in this case SELECTED is the lowest numbered input.

  • FIRST_GOOD Selects the first not disabled and not bad input, starting from IN_1.

  • AVG Averages those inputs that are not bad and are not disabled.

  • HOT_BACKUP Maintains the input selected from the previous scan, provided it is still usable. If it is not usable, HOT_BACKUP advances to the next usable input, counting up from the selected input number from the previous scan.