Allen-Bradley LOGIX 5000 Reference Manual page 383

Controllers advanced process control and drives and equipment phase and sequence instructions
Hide thumbs Also See for LOGIX 5000:
Table of Contents

Advertisement

Statistical Instructions
MOVING_AVERAGE Structure
Input Parameter
Data Type
EnableIn
BOOL
In
REAL
InFault
BOOL
Initialize
BOOL
SampleEnable
BOOL
NumberOfSamples
DINT
UseWeights
BOOL
Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
Description
Enable input. If cleared, the instruction does not execute
and outputs are not updated.
Default is set.
The analog signal input to the instruction.
Valid = any float
Default = 0.0
Bad health indicator for the input. If In is read from an
analog input, then InFault is normally controlled by fault
status on the analog input. When set, InFault indicates the
input signal has an error, the instruction sets the
appropriate bit in Status, and the instruction holds Out at
its current value. When InFault transitions from set to
cleared, the instruction initializes the averaging algorithm
and continues executing.
Default is cleared.
Initialize input to the instruction. When set, the instruction
holds Out = In, except when InFault is set, in which case,
the instruction holds Out at its current value. When
Initialize transitions from set to cleared, the instruction
initializes the averaging algorithm and continues
executing.
Default is cleared.
Enable for taking a sample of In. When set, the instruction
enters the value of In into the storage array and calculates a
new Out value. When SampleEnable is cleared and Initialize
is cleared, the instruction holds Out at its current value.
Default is set.
The number of samples to be used in the calculation. If this
value is invalid, the instruction sets the appropriate bit in
Status and holds Out at its current value. When
NumberOfSamples becomes valid again, the instruction
initializes the averaging algorithm and continues
executing.
Valid = 1 to (minimum size of StorageArray or
WeightArray, if used)
Default = 1
Averaging scheme input to the instruction. When set, the
instruction uses the weighted method to calculate the Out.
When cleared, the instruction uses the uniform method to
calculate Out.
Default is cleared.
Chapter 5
383

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents