EasyManua.ls Logo

Allen-Bradley Micro800

Allen-Bradley Micro800
652 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 13 Data manipulation instructions
298 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
AVERAGE stores a value at each cycle and calculates the average value of all
already stored values. Only the N last values are stored.
Average function block operation
The number of samples (N) cannot exceed 128.
If the RUN command is FALSE (reset mode), the output value is equal to
the input value.
When the maximum number of stored values is reached, the first stored
value is erased by the last one.
Arguments
Parameter Parameter type Data type Description
RUN Input BOOL TRUE = run/FALSE = reset.
XIN Input REAL Any real variable.
N Input DINT Application defined number of samples.
XOUT Output REAL Running average of XIN value.
ENO Output BOOL Enable out.
Applies only to LD programs.
Tip: Using floating-point data types could result in inaccurate calculations due to the rounding limitations inherent in floating-point mathematics.
Tip: When setting or changing the value for N, you need to set RUN to FALSE, then set it back to TRUE.
AVERAGE

Table of Contents

Other manuals for Allen-Bradley Micro800

Related product manuals