16-Bit Data Check; Dsum, Dsump - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

SUM, SUMP, DSUM, DSUMP
Program Example
(1) The following program searches D100 to D105 for the contents of D0 when X20 is ON, and stores the search results at
W0 and W1.
[Ladder Mode]
[Operation]
Search data
123
D100
D0
D101
D102
D103
D104
D105
(2) The following program searches D100 to D111 for the contents of D11 and D10 when X20 is ON, and stores the search
results at W0 and W1.
[Ladder Mode]
[Operation]
Search data
D11, D10
56789051
7.5.2
SUM, SUMP

16-bit data check

7.5.2

DSUM, DSUMP

32-bit data check
SUM, SUMP, DSUM, DSUMP
SUM, DSUM
SUMP, DSUMP
:
Head number of the devices where the total number of bits of "1" is counted (BIN 16/32 bits)
S
:
Head number of the devices where the total number of the bits will be stored (BIN 16/32 bits)
D
Setting
Internal Devices
Data
Bit
S
D
356
[List Mode]
Step
Data to be searched
500
123
300
123
32000
122
[List Mode]
Step
Data to be searched
200000
D101, D100
56789051
D103, D102
56789051
D105, D104
-30000
D107, D106
56789051
D109, D108
30000
D111, D110
Command
Command
R, ZR
Word
Bit
Instruction
Device
Search results
Position of match
W0
2
Number of matches
W1
2
Device
Instruction
Search results
W0
2
W1
3
High
Basic
performance
indicates an instruction symbol of SUM/DSUM.
P
J
\
U
\G
Word
Position of match
Number of matches
Process
LCPU
Redundant Universal
S
D
S
D
Constants
Zn
Other
K, H
––
––
––

Advertisement

Table of Contents
loading

Table of Contents