EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Calculation of Totals 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...
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
449
7
Calculation of totals for 32-bit data
DWSUM(P)
Processing details
Adds all 32-bit BIN data stored in n points of devices starting from the one designated by (S), and stores the result to 4
points of devices (4 words) starting from the one designated by (D).
Operation error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program example
The following program adds the 32-bit BIN data at D100 to D107, and stores the result at D10 and D13 when X20 is turned
ON.
(S): Head number of the devices where data to be summed are stored (BIN 32 bits)
(D): Head number of the devices where the sum will be stored (BIN 64 bits)
n: Number of data blocks (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S)  
(D) 
n 
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101 The points specified in n exceed those of the corresponding device specified
in (S).

The device specified in (D) exceeds the range of the corresponding device. 
[Ladder Mode] [List Mode]
[Operation]
Basic
Process
High
performance
Redundant
Universal
LCPU
n
n
DWSUM
DWSUMP
D
D
Command
Command
DWSUMP
DWSUM
S
S
11870000 (BIN)
32767000 (BIN)
6000 (BIN)
35392000 (BIN)
12345000 (BIN)
68640000 (BIN)
D
n
+ 3
D
+
2
+ 4
+ 6
+ 8
S
S
S
S
S
+ 1
,
+ 3
,
+ 5
,
+ 7
,
+ 9
,
S
S
S
S
S
to
Step
Instruction
Device
11245600 (BIN)
D101,D100
27543200 (BIN)
558800 (BIN)
15675000 (BIN)
23672600 (BIN)
D103,D102
D105,D104
D107,D106
D10
D13 to

Table of Contents

Related product manuals