AC10FdMaxArr
A = Array
C = Calculation
The AC10FdMaxArr function Find highest value among the elements of an array and puts it on a variable (“valmax”).
IMPLEMENTATION
AC10FdMaxArr (array, valmax, done)
Parameters:
IN/OUT | VARIABLE TYPE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
IN | ARRSYS | array | L/S | Arrays for which you want to find the major element |
OUT | SYSTEM | valmax | L | Maximum detected value in array (OUT) |
OUT | GLOBAL | done | F | Flag of operation executed |
Example
Find the maximum value of the array and puts on the 'value' variable, when the “ gfFind ” flag is set to 1.
IF gfFind gfFind = 0 AC10FdMaxArr (array, valmax, done) value = valmax ENDIF
Operation notes
-
The function executes a WAIT a time every 180 milliseconds.