Chapter 5
Statistical Instructions
384
Output
Data Type
Parameter
EnableOut
BOOL
Out
REAL
Status
DINT
InstructFault
BOOL
(Status.0)
InFaulted (Status.1) BOOL
NumberOfSampInv
BOOL
(Status.2)
Structured Text
Operand
Type
MAVE tag
MOVING_AVERAGE
storage
REAL
weight
REAL
Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
Description
Indicates if instruction is enabled. Cleared to false if Out
overflows.
The calculated output of the algorithm.
Status of the function block.
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.
In health is bad (InFault is set).
NumberOfSamples invalid or not compatible with array
size.
Format
Description
structure
MAVE structure
array
Holds the moving average
samples. This array must be at
least as large as
NumberOfSamples.
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.