Total Calculation Of 32-Bit Data - Mitsubishi MELSEC-Q Series Programming Manual

Hide thumbs Also See for MELSEC-Q Series:
Table of Contents

Advertisement

DWSUM
7.5.14

Total calculation of 32-bit data

DWSUM(P)
Structured ladder
DWSUM
EN
ENO
s
n
Input argument,
EN:
s:
n:
Output argument,
ENO:
d:
Setting
data
s
n
d
Function
(1) Adds all 32-bit BIN data n points from the device specified for
4 points of devices (4 words) from the one specified for
7.5 Data Processing Instructions
7-98
7.5.14 Total calculation of 32-bit data
ST
ENO:=
DWSUM
d
Executing condition
Data whose total value is evaluated
Number of data
Execution result
Total value
Internal device
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)
P: Executing condition
instructions.
DWSUM
(EN, s, n, d);
:Bit
:ANY32
:ANY16
:Bit
:Array of ANY16 (0..3)
J
\
U
\G
Bit
Word
.
d
n
d
d
[3]
[0]
DWSUM
High
Universal
Performance
UD
:
indicates any of the following
DWSUMP
Constant
Zn
Others
K, H
, and stores the result to the
s
68640000 (BIN)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents