Mitsubishi Electronics FX3G User Manual

Page of 964
331
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.6 FNC 45 – MEAN / Mean
11
FN
C30
-FN
C3
9
R
ota
tion and 
Shi
ft
12
FN
C40-FN
C49
D
ata O
perati
on
13
FNC
50-FNC
59
High-Speed
 
Proc
essing
14
FM
C60-FN
C69
H
andy 
In
struction
15
FN
C70-FN
C79
E
xternal
 F
X
 I/O
 
De
vice
16
FNC
80-FNC
89
External
 FX 
Dev
ice
17
FNC1
00-
FNC10
9
Dat
Transfer 2
18
FNC1
10-
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
 
Operation 2
20
FNC1
50-
FNC159
Pos
itioning 
Control
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
(D  0) + (D  1) + (D  2)
FNC 45
MEAN
D  0
D 10
K  3
n
(D 10)
3