EasyManua.ls Logo

Mitsubishi MELSEC-A series - Page 169

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
Loading...
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

Related product manuals