328
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.6 FNC 45 – MEAN / Mean
Caution
• When a device number is exceeded, "n" is handled as a smaller value in the possible range.
• Note that the 32-bit value [n+1, n] is valid when D or R is specified as "n" in a 32-bit instruction.
In the case of "DMEAN D0 D100 R0", "n" is [R1, R0].
Error
When "n" is any value outside the range from "1" to "64", an operation error (M8067) is caused.
Program example
The data of D0, D1 and D2 are summed, divided by "3", and then stored to D10.
X000
S
D
(D 0) + (D 1) + (D 2)
FNC 45
MEAN
D 0 D 10 K 3
n
(D 10)
3