Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-101
DWSUM(P)
1
2
3
4
6
6
7
8
7.5 Data processing instructions
7.5.14 Calculation of totals for 32-bit data (DWSUM(P))
7.5.14 Calculation of totals for 32-bit data (DWSUM(P))
DWSUM(P)
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 , or device exceeds the range of that device.
(Error code: 4101)
The device specified by exceeds the range of the corresponding device.
(For the Universal model QCPU only.) (Error code: 4101)
: Head number of the devices where data to be summed are stored (BIN 32 bits)
: 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 Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
–– –– –– ––
–– –– ––
n ––
Basic
Process
High
performance
Redundant
Universal
n
n
DWSUM
DWSUMP
D
D
Command
Command
DWSUMP
DWSUM
S
S
S
D
S
D
S
D
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
S
DD