Download Print this page

Adding 32-Bit Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Adding 32-bit data

DWSUM(P)(_U)
These instructions add the (n) point(s) 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).
Ladder diagram
(s)
FBD/LD
EN
ENO
s
d
n
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
DWSUM(P)
Head device number where the addition target data are
stored
DWSUM(P)_U
(d)
DWSUM(P)
Head device number storing sum
DWSUM(P)_U
(n)
Number of data
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
(n)
Processing details
• These instructions add the (n) point(s) 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)
(s)+7, (s)+6
-11870000 (BIN)
(s)+9, (s)+8
12345000 (BIN)
Precautions
In the 32-bit operation, the acquired sum is 64-bit data. The FX5 CPU module cannot handle 64-bit data. When the sum is
within the numeric range of 32-bit data (K-2147483648 to K2147483647), however, the FX5 CPU module can handle the low-
order 32 bits of 32-bit data as the sum while ignoring the high-order 32 bits.
8 APPLICATION INSTRUCTION
674
8.22 Data Operation Instruction
(d)
(n)
Word
T, ST, C, D, W,
U\G
SD, SW, R
(n)
(d)+3 to (d)
Structured text
ENO:=DWSUM(EN,s,n,d);
ENO:=DWSUMP(EN,s,n,d);
Range
Double word Indirect
Z
LC
LZ
68640000 (BIN)
ENO:=DWSUM_U(EN,s,n,d);
ENO:=DWSUMP_U(EN,s,n,d);
Data type
Data type (label)
32-bit signed binary
ANY32_S
32-bit unsigned binary
ANY32_U
64-bit signed binary
ANY32_ARRAY
64-bit unsigned binary
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
K, H
E
Others
$

Hide quick links:

Advertisement

loading