Table of Contents

Selection of Minimum, Maximum, or Average from Multiple Values

Full Name

Lib.Mervis.v1_0.ValueSelector

Required Project References

Description

A block used for selecting the minimum, maximum, or average value from up to four input values.

Usage in ST

program test
    var
        selector: lib.mervis.v1_0.ValueSelector;
    end_var

    selector();
end_program

Inputs

Name Data Type RetainMandatory ConnectionMeaning
In1 real No Yes Input value 1
In2 real No No Input value 2
In3 real No No Input value 3
In4 real No No Input value 4
SelectValueSelectorType Yes No Selection value

Outputs

Name Data TypeMeaning
Out real Output

Detailed Function Description

The block is used to select a value from multiple inputs. Based on the Select parameter, the minimum, maximum, or average value from the inputs is transferred to the output. If there are fewer than four actual inputs, the other inputs should be managed so they do not affect the output, for example, by connecting them to another input.