Calculation Of Totals For 32-Bit Data (Dwsum(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

7.5.14

Calculation of totals for 32-bit data (DWSUM(P))

DWSUM(P)
DWSUM
DWSUMP
Setting
Data
S
D
n
Function
(1) Adds all 32-bit BIN data stored in n points of devices starting from the one designated by
and stores the result to 4 points of devices (4 words) starting from the one designated by
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.
• The n-bit range from the
• The device specified by
(For the Universal model QCPU, LCPU.)
Command
Command
: Head number of the devices where data to be summed are stored (BIN 32 bits)
S
: Head number of the devices where the sum will be stored (BIN 64 bits)
D
n
: Number of data blocks (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
––
S
+ 1,
S
32767000 (BIN)
S
+ 3,
S
+ 2
6000 (BIN)
S
+ 5,
S
+ 4
35392000 (BIN)
S
+ 7,
S
+ 6
11870000 (BIN)
S
+ 9,
S
+ 8
12345000 (BIN)
, or device exceeds the range of that device.
S
exceeds the range of the corresponding device.
D D
High
Basic
performance
S
DWSUM
DWSUMP
S
J
\
U
\G
Bit
Word
––
––
n
D
to
D
+ 3
68640000 (BIN)
DWSUM(P)
Process
Redundant Universal
LCPU
n
D
n
D
Constants
Zn
Other
K, H
––
––
––
––
––
S
D
(Error code: 4101)
(Error code: 4101)
7-101
1
2
3
4
6
6
7
8
,
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents