Wsum, Wsump - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

WSUM, WSUMP

[Operation]
Data before sort
D1, D0
456789
D3, D2
-1111
D5, D4
5000
-1
D7, D6
D9, D8
-99999
7.5.13
WSUM, WSUMP
Calculation of totals for 16-bit data
7.5.13
WSUM, WSUMP
WSUM
WSUMP
: Head number of the devices where data to be summed are stored (BIN 16 bits)
S
: Head number of the devices where the sum will be stored (BIN 32 bits)
D
n
: Number of data blocks (BIN 16 bits)
Internal Devices
Setting
Data
Bit
––
S
D
n
Function
(1) Adds all 16-bit BIN data for n blocks from 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.
Error
code
The points specified in n exceed those of the corresponding device
4101
specified in
.
S
378
Data after sort
D1, D0
-99999
D3, D2
X0
OFF
D5, D4
D7, D6
D9, D8
456789
D1, D0
456789
D3, D2
X0
ON
D5, D4
D7, D6
D9, D8
-99999
Command
Command
R, ZR
Word
Bit
S
4444 (BIN)
3333 (BIN)
S
+ 1
1234 (BIN)
S
+ 2
n
5426 (BIN)
S
+ 3
329 (BIN)
S
+ 4
10000 (BIN)
S
+ 5
Error details
-1111
1
5000
5000
1
-1111
High
Basic
performance
S
WSUM
S
WSUMP
J
\
U
\G
Word
––
, and stores it in the device designated at
S
D
+ 1,
D
13914 (BIN)
Q00J/
Q00/
QnH
Q01
Process
Redundant Universal
LCPU
n
D
n
D
Constants
Zn
Other
K, H
––
––
––
––
––
D
QnPH QnPRH
QnU
LCPU
.

Advertisement

Table of Contents
loading

Table of Contents