EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 299

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
266
Data Movement Instructions Section 3-7
Description XCHG(073) exchanges the contents of E1+1 and E1 with the contents of
E2+1 and E2.
To exchange 3 or more words, use XFER(070) to transfer the words to a third
set of words (a buffer) as shown in the following diagram.
Flags There are no flags affected by this instruction.
Example When CIO 0.01 is ON in the following example, the contents of D100 and
D101 are exchanged with the contents of D200 and D201.
Index Registers IR0 to IR15
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
Area E1 E2
E2E1 E1+1 E2+1
E2
E1
Buffer
1
st
XFER(070)
operation
2
nd
XFER(070)
operation
3
rd
XFER(070)
operation
0.01
D100
D200
D100
D101
D100
D101
D200
D201
D200
D201

Table of Contents

Related product manuals