422
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
• The following program stores the number of bits which are ON from X8 to X17 into D0 when X10 is turned ON.
• The following program stores the number of bits which are ON in D100 and D101 into D0 when X10 is turned ON.
[Ladder Mode] [List Mode]
[Operation]
[Ladder Mode] [List Mode]
[Operation]
X17
0
0 1 0 1 0 1 1 0 0 0 001 1 1
X8
Stores the total number of bits
where 1 is set at D0.
D0
7
0
1
0
1
0 0 0 0
1 1 11
0 0 0
1
Stores the total number of bits where 1 is set into D0.
D0
15
b15
0 0
1 1 1 1
0 0 0 0
11
0 0
11
b0b31 b16
D100, D101