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 #232 background imageLoading...
Page #232 background image
7. APPLICATION INSTRUCTIONS
7 30
MELSEC-A
Program Examples DROL
Program which rotates the contents of A0 and 1 three bits to the left when XC turns
on.
DRCL
Program which rotates the contents of A0 and 1 three bits to the left when XC turns
on.
PH
DMOV 80000000 A0
X00A
X00C
PK
DROL 3
0
8
Coding
0 LD X00A
1 DMOVP H80000000 A0
8 LD X00C
9 DROLP K3
12 END
Carry flag
(M9012)
Contents of
B31 before
execution
Contents of
B31 when
n = 1
Contents of
B31 when
n = 2
To B0
(n = 1)
(n = 2)
(n = 3)
To B0
To B0
Progress
Before
execution
After
e
x
ecu
tion
PH
DMOV 80000000 A0
X00A
X00C
PK
DRCL 3
0
8
Coding
0 LD X00A
1 DMOVP H80000000 A0
8 LD X00C
9 DRCLP K3
12 END
* Before execution, carry flag is either 1 or 0.
To carry flag
To carry flag
To carry flag
(n = 1)
(n = 2)
(n = 3)
Afte
r
execution
Before execution
Progress
Carry flag
(M9012)

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