936
7 APPLICATION INSTRUCTIONS
7.20 Data Processing Instructions
Adding 32-bit binary data
DWSUM(P)(_U)
These instructions add the (n) points of 32-bit binary data in the devices starting from the specified one.
■Execution condition
■Descriptions, ranges, and data types
*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
Ladder ST ST
ENO:=DWSUM(EN,s,n,d);
ENO:=DWSUMP(EN,s,n,d);
ENO:=DWSUM_U(EN,s,n,d);
ENO:=DWSUMP_U(EN,s,n,d);
FBD/LD
Instruction Execution condition
DWSUM
DWSUM_U
DWSUMP
DWSUMP_U
Operand Description Range Data type Data type (label)
(s) DWSUM(P) Start device where the data for calculating the
total value are stored
32-bit signed binary ANY32_S
*1
DWSUM(P)_U 32-bit unsigned binary ANY32_U
*1
(d) DWSUM(P) Start device for storing the total value 64-bit signed binary ANY32_ARRAY
(Number of elements: 2)
DWSUM(P)_U 64-bit unsigned binary
(n) Number of data 0 to 65535 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s)
(d)
(n)
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)