Mitsubishi MELSEC-A Series Programming Manual page 232

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS
Program Examples
DROL
Program which rotates the contents of A0 and 1 three bits to the left when XC turns
on.
X00A
P
H
DMOV
80000000
0
X00C
8
Before
To B0
execution
Carry flag
(M9012)
(n = 1)
To B0
(n = 2)
To B0
After
(n = 3)
execution
DRCL
Program which rotates the contents of A0 and 1 three bits to the left when XC turns
on.
X00A
P
H
0
DMOV
80000000
X00C
8
Before execution
To carry flag
(n = 1)
To carry flag
(n = 2)
To carry flag
After
(n = 3)
execution
• Coding
0
A0
1
P
K
8
DROL
3
9
12
• Coding
0
A0
1
P
K
8
DRCL
3
9
12
* Before execution, carry flag is either 1 or 0.
7 − 30
MELSEC-A
LD
X00A
DMOVP H80000000
LD
X00C
DROLP K3
END
Contents of
B31 before
execution
Contents of
B31 when
n = 1
Contents of
B31 when
n = 2
LD
X00A
DMOVP H80000000
LD
X00C
DRCLP K3
END
Carry flag
(M9012)
A0
A0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents