Mitsubishi MELSEC Q Series Programming Manual page 318

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

CML(P),DCML(P)
Program Example
(1) The following program inverts the data from X0 to X7, and transfers result to D0.
[Ladder Mode]
[Operation]
These bits are all regarded as 0.
(2) The following program inverts the data at M16 to M23, and transfers the result to Y40 to
Y47.
[Ladder Mode]
[Operation]
These bits are all regarded as 0.
(3) The following program inverts the data at D0 when X3 is ON, and stores the result at D16.
[Ladder Mode]
[Operation]
b15
D0
1
b15
D16
0
6-116
If "Number of bits of
b15
D0
1
If "Number of bits of
Y4B Y48
1
1
b8
b7
b0
1
0
1
1
0
0 1
1 0 1 0 1 1 1 1
b8
b7
b0
0
1
0
0
1
1 0
0 1 0 1 0 0 0 0
[List Mode]
Instruction
Step
S
< Number of bits of
X7
X0
1 1 0 1 0 0 0 0
b7
b8
b0
1
1
1
1
1
1 1
0 0 1 0 1 1 1 1
[List Mode]
Instruction
Step
S
< Number of bits of
M23
M16
0 1 0 1 1 1 0 0
Y47
Y40
1 1
1 0 1 0 0 0 1 1
[List Mode]
Step
Instruction
Device
D
"
Device
D
"
Device

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents