Chapter 8
Array (File)/Misc. Instructions (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)
Condition
Prescan
Rung-condition-in is false.
Examine .DN Bit
.EN bit is cleared.
.ER bit is cleared.
Rung-condition-out is set
to false.
Rung-condition-in is true
Postscan
382
Execution:
Relay Ladder Action
The .EN bit is cleared.
The .DN bit is cleared.
The .ER bit is cleared.
The rung-condition-out is set to false.
.DN Bit = 0
.DN Bit = 1
End
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
The rung-condition-out is set to false.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
page
351.