384 Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
Output
Parameter
Data Type Description
EnableOut BOOL Indicates if instruction is enabled. Cleared to false if Out
overflows.
Out REAL The calculated output of the algorithm.
Status DINT Status of the function block.
InstructFault
(Status.0)
BOOL The instruction detected one of the following execution
errors. This is not a minor or major controller error. Check
the remaining status bits to determine what occurred.
InFaulted (Status.1) BOOL In health is bad (InFault is set).
NumberOfSampInv
(Status.2)
BOOL NumberOfSamples invalid or not compatible with array
size.
Structured Text
Operand Type Format Description
MAVE tag MOVING_AVERAGE structure MAVE structure
storage REAL array Holds the moving average
samples. This array must be at
least as large as
NumberOfSamples.
weight REAL array (optional)
Used for weighted averages.
This array must be at least as
large as NumberOfSamples.
Element [0] is used for the
newest sample; element [n] is
used for the oldest sample.