7-99
WSUM(P)
1
2
3
4
6
6
7
8
7.5 Data processing instructions
7.5.13 Calculation of totals for 16-bit data (WSUM(P))
7.5.13 Calculation of totals for 16-bit data (WSUM(P))
WSUM(P)
Function
(1) Adds all 16-bit BIN data for n blocks from the device designated at , and stores it in the
device designated at .
Operation Error
(1) In the following case, 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)
: Head number of the devices where data to be summed are stored (BIN 16 bits)
: Head number of the devices where the sum will be stored (BIN 32 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
WSUM
WSUMP
D
D
Command
Command
WSUMP
WSUM
S
S
S
D
S
D
S
D
4444 (BIN)
+ 1
+ 2
3333 (BIN)
1234 (BIN)
5426 (BIN)
329 (BIN)
+ 3
+ 4
13914 (BIN)
10000 (BIN)
+ 5
S
S
D
S
S
S
n
D
S
+ 1
,
S