EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #383 background imageLoading...
Page #383 background image
381
MEAN, MEANP, DMEAN, DMEANP
1
2
3
4
4
6
7
8
7.5 Data processing instructions
7.5.15 MEAN, MEANP, DMEAN, DMEANP
: Head number of the devices where the data to be averaged are stored (BIN16/32 bits)
: Head number of the devices where the average will be stored (BIN 16/32 bits)
n : Number of data or number of the devices where the number of data are stored (Setting range: 1 to 32767) (BIN 16 bits)
Function
MEAN(P)
(1) This instruction calculates the mean of 16-bit BIN data stored in n-point devices starting from the device specified by ,
and then stores the result into the device specified by .
(2) If the value calculated is not integer, this instruction will drop the number of decimal places.
(3) If the value specified by n is 0, the instruction will be not processed.
DMEAN(P)
(1) This instruction calculates the mean of 32-bit BIN data stored in n-point devices starting from the device specified by ,
and then stores the result into the device specified by .
(2) If the value calculated is not integer, this instruction will drop the number of decimal places.
(3) If the value specified by n is 0, the instruction will be not processed.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
7.5.15 MEAN, MEANP Calculation of averages for 16-bit data
DMEAN, DMEANP Calculation of averages for 32-bit data
7.5.15
MEAN, MEANP, DMEAN, DMEANP
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– –– –– ––
–– –– –– ––
n–– ––
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The value specified in n is other than 0 to 32767. –– –– –– ––
4101
The points specified in n exceed those of the corresponding device
specified in .
–– –– –– ––
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
MEAN, DMEAN
MEANP, DMEANP
P
n
n
S
D
D
S
Command
Command
indicates an instruction symbol of MEAN/DMEAN.
S
D
S
D
S
D
+n 1
n
+1
+2
Average value
D
S
S
S
S
S
D
n
Average value
D
D+1,
+2n 2+2n 1,
+2
+1,
+3,
S
S
S
S
S
S
S

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals