6 - 92 6 - 92
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
[Operation Errors]
(1) There are no errors associated with the XCH (P) and DXCH (P) instructions.
[Program Example]
(1) The following program exchanges the present value of T0 with the contents of D0 when X8
goes ON.
[Ladder Mode] [List Mode]
Device
Instruction
Steps
(2) The following program exchanges the contents of D0 with the data from M16 to M31 when X10
goes ON.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
(3) The following program exchanges the contents of D0 and D1 with the data at M16 to M47
when X10 goes ON.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
(4) The following program exchanges the contents of D0 and D1 with those of D9 and D10 when
M0 goes ON.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com