Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-70
SUM(P),DSUM(P)
Operation Error
(1) There are no operation errors associated with the SUM(P) or DSUM(P) instructions.
Program Example
(1) The following program stores the number of bits which are ON from X8 to X17 into D0 when
X10 is turned ON.
[Ladder Mode] [List Mode]
[Operation]
(2) 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]
Step
Instruction
Device
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
Step
Instruction
Device
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