7-64
7.5 Data Processing Instructions
7.5.2 16-/32-bit data bit check
SUM, DSUM
(2) In the following program, the number of bits which are turned ON in Var_D100 are stored to
Var_D0 when X10 turns ON.
[Structured ladder]
[ST]
DSUMP(X10,Var_D100,Var_D0);
[Operation]
0 1 0 1 0 0 0 0 1 1 1 1 0 0 0 1
S
tores
the
tota
l
num
b
er
of
bi
ts
w
here
1 i
s
set
to
D
0.
Var
_
D
0
15
b15
0 0 1 1 1 1 0 0 0 0 1 1 0 0 1 1
b0
b31
b16
Var
_
D
100
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......