[MAX8_R] Maximum of 8 real values
Function block MAX8_R calculates the maximum value of up to 8 valid, real values.
MAX8_R calculates the maximum value of up to 8 valid, real values.
MAX8_R calculates the maximum 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.
Input | Description | Data type | Default value |
|---|---|---|---|
EnIn1…EnIn8 | Enable input 1…Enable input 8 | Boolean | 1 |
0 - The value of the corresponding input is ignored. | |||
In1…In8 | Input 1…Input 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 |
|---|---|---|---|
Out | Output | Real | 0.0 |
PrInNr | Present input number | Integer | 0 |
0: All inputs are locked [EnIn1]...[EnIn8] = No; [Out] = [DefVal]. | |||
If all inputs are locked EnIn1]...[EnIn8] = 0, [DefVal] is issued and [PrInNr] = 0 is set.