EasyManuals Logo

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 #169 background imageLoading...
Page #169 background image
6. BASIC INSTRUCTIONS
6 57
MELSEC-A
Execution Conditions
Program Examples XCH
(1) Program which interchanges the present value of T0 and the content of D0
when X8 turns on.
(2) Program which interchanges the content of D0 and the data of M16 to 31 when
X10 turns on.
DXCH
(1) Program which interchanges the content of D0 and 1 and the data of M16 to 47
when X10 turns on.
(2) Program which interchanges the content of D0 and 1 with that of D9 and 10
when M0 turns on.
0
X008
P
XCH T0 D0
Coding
0 LD X008
1 XCHP T0 D0
6 END
0
X010
P K4
XCH D0 M16
Coding
0 LD X010
1 XCHP D0 K4M16
6 END
Coding
0 LD X010
1 DXCHP D0 K8M16
8 END
0
X010
P K8
DXCH D0 M16
Coding
0 LD M0
1 DXCHP D0 D9
8 END
0
M0
P
DXCH D0 D9
Interchange command
Executed
per scan
Executed
per scan
Executed
only once
Executed
only once
P
OFF
ON

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