EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-A series

Mitsubishi MELSEC-A series Programming Manual

Mitsubishi MELSEC-A series
508 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
Page #230 background imageLoading...
Page #230 background image
7. APPLICATION INSTRUCTIONS
7 28
MELSEC-A
Program Examples DROR
Program which rotates the contents of A0 and 1 three bits to the right when XC turns
on.
DRCR
Program which rotates the contents of A0 and 1 three bits to the right when XC turns
on.
PK
DMOV 1 A0
X00A
X00C
PK
DROR 3
0
8
Coding
0 LD X00A
1 DMOVP K1 A0
8 LD X00C
9 DRORP K3
12 END
PK
DMOV 1 A0
X00A
X00C
PK
DRCR 3
0
8
Coding
0 LD X00A
1 DMOVP K1 A0
8 LD X00C
9 DRCRP K3
12 END
Contents of B0
before execution
(
n = 1
)
Contents of B0
when n = 1
(
n = 2
)
Contents of B0
when n = 2
(
n =
3)
B
e
f
o
r
e
e
x
ecut
i
o
n
Af
te
r
e
x
ecut
i
o
n
Progress
To carry flag
To carry flag
To carry flag
* Before execution, carry flag is either 1 or 0.
Carry flag
(M9012)
Before execution
Progress
Contents of B0
before execution
(
n = 1
)
Contents of B0
when n = 1
(
n = 2
)
Contents of B0
when n = 2
(n
=
3)
To B31
To B31
To B31
Carry flag
(M9012)
After execution

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-A series and is the answer not in the manual?

Mitsubishi MELSEC-A series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-A series
CategoryController
LanguageEnglish

Related product manuals