Fnc 45 - Mean / Mean - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
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,
344
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
Digit Specification
FNC 45
S
D
MEAN
S
D
S
S
+ 2] + ......... + [{
] + [
+ 3,
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Description
n
64)
Word Devices
Special
System User
Unit
/FX
PLCs.
3U
3UC
D
S
is stored to
D
D
.
1
1
S
S
+
n
+1,
] is stored to [
D
S
D
S
1
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
16- or 32-bit binary
16- or 32-bit binary
16- or 32-bit binary
Con-
Real
Index
stant
Number
V Z Modify K H
E
+ 1 + ......... +
S
+ n − 1
n
+1,
].
D
D
D
D
1
1
S
+ n × 2 − 2}]
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
Data type
Others
Charac-
Pointer
ter String
" "
P
D
D
D
[
+ 1,
]

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents