382 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 8 Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Execution:
Condition Relay Ladder Action
Prescan The .EN bit is cleared.
The .DN bit is cleared.
The .ER bit is cleared.
The rung-condition-out is set to false.
Rung-condition-in is true The AVE instruction calculates the average by adding all the specified elements in the array and
dividing by the number of elements.
Internally, the instruction uses a FAL instruction to calculate the average:
Expression = average calculation
Mode = ALL
For details on how the FAL instruction executes, see page 351
.
Postscan The rung-condition-out is set to false.
Examine .DN Bit
.DN Bit = 0
.DN Bit = 1
Rung-condition-in is false.
Rung-condition-out is set
to false.
.EN bit is cleared.
.ER bit is cleared.