388 Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
Example
Each scan, the instruction places input_value in array storage. The instruction
calculates the average of the values in array storage, optionally using the weight
values in array weight, and places the result in Out.
Function Block
Structu
red Text
MAVE_01.In := input_value;
MAVE(MAVE_01,storage,weight);
output_value := MAVE_01.Out;
See also
Function Block Attributes on page 491
Common Attributes on page 537
Structured Text Syntax on page 508
This information applies to the CompactLogix 5370, ControlLogix 5570,
Compact GuardLogix 5370, GuardLogix 5570, Compact GuardLogix 5380,
CompactLogix 5380, CompactLogix 5480, ControlLogix 5580, and GuardLogix
5580 controllers.
The MAXC instruction retains the maximum value of the input over time and
allows the user to re-establish a maximum as needed.
Available Languages
Ladder Diagram
This instruction is not available in ladder diagram logic.