382
MEAN, MEANP, DMEAN, DMEANP
Program Example
(1) The following program stores the average value of 16-bit data stored from D0 to D2 into D10, when M0 is turned on.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program stores the average value of 32-bit data stored from D0 to D5 into D10 and D11, when M0 is turned
on.
[Ladder Mode] [List Mode]
[Operation]
Step
Instruction
Device
(BIN)
(BIN)
(BIN)
D1
D10
D0
D2
550
(BIN)
105
555
990
Step
Instruction
Device
(BIN)
(BIN)
(BIN)
D11,D10
D1,D0
D3,D2
D5,D4
2101176
(BIN)
623541
4753647
926342