Fnc 45 - Mean / Mean - Mitsubishi FX3G Series Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
12.6
FNC 45 – MEAN / Mean
Outline
This instruction obtains the mean value of data.
1. Instruction format
FNC 45
D
P
MEAN
2. Set data
Operand type
S
S
1
D
n
3. Applicable devices
Bit Devices
Oper-
System User
and
Type
X Y M T C S D .b KnX KnY KnM KnS T
S
S
1
S
D
2
n
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (MEAN and MEANP)
The mean value of "n" 16-bit data from
• The sum is obtained as algebraic sum, and divided by "n".
• The remainder is ignored.
Command
input
FNC 45
MEAN
2. 32-bit operation (DMEAN and DMEANP)
The mean value of "n" 32-bit data from [
• The sum is obtained as algebraic sum, and divided by "n".
• The remainder is ignored.
Command
input
FNC 45
DMEAN
S
S
[
+ 1,
Series
Mnemonic
16-bit Instruction
7 steps MEAN
MEANP
Head word device number storing data to be averaged
Word device number storing the mean value result
Number of data to be averaged (1 ≤ n ≤ 64)
Digit Specification
/FX
3U
3UC
D
S
is stored to
1
S
D
D
S
+1,
1
S
D
+ 2] + ......... + [{
S
S
] + [
+ 3,
n
Operation Condition
32-bit Instruction
Continuous
13 steps
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
C D R U \G
V
PLCs.
D
D
.
1
+ 1 + ......... +
S
S
+
n
D
S
] is stored to [
D
D
+1,
1
1
n
+ n × 2 − 1}, {
S
S
12 Data Operation – FNC 40 to FNC 49
12.6 FNC 45 – MEAN / Mean
Mnemonic
Operation Condition
Continuous
DMEAN
Operation
Pulse (Single)
DMEANP
Operation
Data type
16- or 32-bit binary
16- or 32-bit binary
16- or 32-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
Z Modify K H
E
" "
+ n − 1
S
n
D
D
].
1
+ n × 2 − 2}]
D
[
+ 1,
11
12
13
14
Pointer
15
P
16
17
D
18
19
D
]
20
323

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents