Arithmetic instructions
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out. It then searches the data_field
for a maximum value and its position. The result here is: max_value = 5.44 and position = 3.
LD
ST
IF
start
THEN
F350_FMAX( s1_Start:= data_field[0],
s2_End:=
Max=>
Pos=> position);
END_IF;
456
data_field[4],
max_value,