[MIN8_R] Minimum of 8 real values

Function block MIN8_R calculates the minimum value of up to 8 valid, real values.

MIN8_R calculates the minimum value of up to 8 valid, real values.

Functioning

MIN8_R calculates the minimum value for inputs [In1]...[In8] and issues it at output [Out]. Only unlocked input values are considered. Inputs are unlocked if [EnIn1]...[EnIn8] = 1.

The input that presently determines the output value is available in [PrInNo] = 1..8.

Unused inputs [In1]...[In8] are disabled by setting the corresponding parameter [EnIn1]...[EnIn8] = 0.

If all inputs are locked EnIn1]...[EnIn8] = 0, [DefVal] is issued.

Pins

Input

Description

Data type

Default value
Value range

EnIn1EnIn8

Enable input 1Enable input 8

Boolean

1

0 - The value of the corresponding input is ignored.
1 - The value of the corresponding input is processed.

In1In8

Input 1Input 8

Real

3.403E38

DefVal

Default value

If all inputs are locked [EnIn1]...[EnIn8] = 0, [DefVal] is issued.

Real

3.403E38

 

Output

Description

Data type

Default value
Value range

Out

Output

Real

0.0

PrInNr

Present input number

Integer

0

0: All inputs are locked [EnIn1]...[EnIn8] = No; [Out] = [DefVal].
1...8: Number of input whose value is issued on output [Out].

Troubleshooting

If all inputs are locked EnIn1]...[EnIn8] = 0, [DefVal] is issued and [PrInNr] = 0 is set.