EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 294

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...
261
Data Movement Instructions Section 3-7
Description XFER(070) copies N words beginning with S (S to S+(N–1)) to the N words
beginning with D (D to D+(N–1)).
It is possible for the source words and destination words to overlap, so
XFER(070) can perform word-shift operations.
Flags
Precautions Be sure that the source words (S to S+N–1) and destination words (D to
D+N–1) do not exceed the end of the data area.
Some time will be required to complete XFER(070) when a large number of
words is being transferred. In this case, the XFER(070) transfer might not be
completed if a power interruption occurs during execution of the instruction.
Example When CIO 0.00 is ON in the following example, the 10 words D100 through
D109 are copied to D200 through D209.
Indirect DM addresses
in BCD
*D0 to *D32767
Constants #0000 to #FFFF
(binary) or &0 to
&65535
--- ---
Data Registers DR0 to DR15 ---
Index Registers ---
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 N S D
D+
S+(N1)
(N1)
to
to
N words
&10
D100
D102
D100
D109
D102
D111
Name Label Operation
Error Flag ER OFF
&10
0.00
D100
D200
D109
D100
D101
D102
D209
D200
D201
D202
10
words

Table of Contents

Related product manuals