EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 424

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
422
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
Program example
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]
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

Table of Contents

Related product manuals