Adding 32-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Adding 32-bit binary data

DWSUM(_U)
These instructions add the (n) points of 32-bit binary data in the devices starting from the specified one.
ST
ENO:=DWSUM(EN,s,n,d);
■Execution condition
Instruction
DWSUM
DWSUM_U
Setting data
■Descriptions, ranges, and data types
Operand
(s)
DWSUM
DWSUM_U
(d)
DWSUM
DWSUM_U
(n)
EN
ENO
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices/labels
Operand
(s)
(d)
(n)
Processing details
• These instructions add the (n) points of 32-bit binary data in the device starting from the one specified by (s), and store the
result in the device specified by (d).
(s)+1, (s)
32767000 (BIN)
(s)+3, (s)+2
6000 (BIN)
(s)+5, (s)+4
35392000 (BIN)
-11870000 (BIN)
(s)+7, (s)+6
(s)+9, (s)+8
12345000 (BIN)
Operation error
There is no operation error.
8 DATA PROCESSING
98
8.1 Data Processing Instructions
Execution condition
Description
Start device where the data for calculating the total value are
stored
Start device for storing the total value
Number of data
Execution condition
Execution result
Bit
(d)
(d)+1
(n)
68640000 (BIN)
(d)+2
(d)+3
ENO:=DWSUM_U(EN,s,n,d);
Range
0 to 65535
Word
Data type
*1
ANY32_S
*1
ANY32_U
ANY32_ARRAY
(Number of elements: 2)
ANY16
BOOL
BOOL
Constant

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents