7.5 Data Processing Instructions
7.5.14 Total calculation of 32-bit data
7-99
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
DWSUM
DWSUM
O
peration Error
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The range of n points from the device specified for
exceeds the corresponding device.
(Error code: 4101)
• The device specified for
exceeds the corresponding device range. (For Universal
model QCPU only)
(Error code: 4101)
Program Example
The following program adds the 32-bit BIN data in Var_D100, and stores the result to Var_D10
when X20 is turned ON.
[Structured ladder]
[ST]
DWSUMP(X20,Var_D100,4,Var_D10);
[Operation]
s
d
11245600 (
B
IN)
Var
_
D
100
27543200 (
B
IN)
558800 (
B
IN)
15675000 (
B
IN)
23672600 (
B
IN)
Var
_
D
10
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......