Applied Instructions
MEAN D0 D10 K3
S· D·
X0
n
(D0) + +
3
(D10)
(D1) (D2)
Function & Action
z The value of all the devices within the source range is summed and then divided by the
number of devices summed, i.e. n.. This generates an integer mean value which is stored
in the destination device (D) The remainder of the calculated mean is ignored.
z If the value of n is specified outside the stated range (1 to 64) an error is generated.
[MEAN]
16 bits instruction:MEAN 32 bits instruction:-
Suitable Models:
XC1、XC3、XC5
Zero M8020
Borrow M8021
Flag
Carry M8022
Word
Device
Bit
Device
S·
n
D
FD
DM
DX
DY
DS
TD
CD
K/H
D·
X
Y
M
S
T
C
Dn.m
96