Fnc 45 - Mean / Mean - Mitsubishi Electric FX3G SERIES Programming Manual

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

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
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
MEAN
2. Set data
Operand type
S
S
1
D
n
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
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
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,
330
Mnemonic
16-bit Instruction
P
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
3U
D
S
1
FNC 45
S
D
MEAN
D
S
1
S
D
S
S
+ 2] + ......... + [{
] + [
+ 3,
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
/FX
PLCs.
3UC
is stored to
D
D
.
1
S
S
+
n
D
S
+1,
] is stored to [
1
n
S
+ n × 2 − 1}, {
n
12 Data Operation – FNC 40 to FNC 49
12.6 FNC 45 – MEAN / Mean
Mnemonic
32-bit Instruction
DMEAN
13 steps
DMEANP
Con-
Real
Index
stant
Number
V
Z Modify K H
E
S
+ 1 + ......... +
+ n − 1
n
D
D
D
D
+1,
].
1
1
S
+ n × 2 − 2}]
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Data type
16- or 32-bit binary
16- or 32-bit binary
16- or 32-bit binary
Others
Charac-
Pointer
ter String
" "
P
D
D
D
[
+ 1,
]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents