EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Calculation of Averages for 16-Bit Data, Calculation of Averages for 32-Bit Data

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
450
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
Calculation of averages for 16-bit data, calculation of averages
for 32-bit data
MEAN(P), DMEAN(P)
Processing details
MEAN(P)
This instruction calculates the mean of 16-bit BIN data stored in n-point devices starting from the device specified by (S),
and then stores the result into the device specified by (D).
If the value calculated is not integer, this instruction will drop the number of decimal places.
If the value specified by n is 0, the instruction will be not processed.
DMEAN(P)
This instruction calculates the mean of 32-bit BIN data stored in n-point devices starting from the device specified by (S),
and then stores the result into the device specified by (D).
If the value calculated is not integer, this instruction will drop the number of decimal places.
If the value specified by n is 0, the instruction will be not processed.
QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
(S): Head number of the devices where the data to be averaged are stored (BIN16/32 bits)
(D): 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)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S) 
(D)  
n  
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.
+n 1
n
+1
+2
Average value
D
S
S
S
S
n
Average value
D
D+1,
+2n 2+2n 1,
+2
+1,
+3,
S
S
S
S
S
S

Table of Contents

Related product manuals