Panasonic FP Series Programming Manual page 469

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

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 calculates the sum = 2.0 +
3.45 + (-6.91) + 5.44 + 1.3 = 5.28 and the mean = Sum/5 = 5.28/5 = 1.056 of the elements of the
data_field.
LD
ST
IF
start
THEN
F352_FMEAN( s1_Start:= data_field[0] ,
s2_End:= data_field[4] ,
Sum=>
Mean=>
END_IF;
468
sum
,
mean
);

Advertisement

Table of Contents
loading

Table of Contents