2 Instructions
2-118 CP1E CPU Unit Instructions Reference Manual(W483)
Function
Hint
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 trans-
ferred. Even if an interrupt occurs, execution of this instruction will not be interrupted and execution of
the interrupt task will be started after execution of XFER(070) has been completed. If power is inter-
rupted during execution of XFER(070), execution may not be completed, i.e., all of the specified data
may not be transferred.
Sample Program
When CIO 0.00 is ON in the following example, the 10 words D100 through D109 are copied to D200
through D209.
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 desti-
nation words to overlap, so XFER(070) can
perform word-shift operations.
The specified source and destination data
areas can overlap (word shift).
S
S+(N-1)
D
D+(N-1)
N words
D100
D109
D102
D111
XFER
&10
D100
D102
XFER
&1000
D0
D1000
XFER
&10
D100
D200
0.00
D100
D101
D102
D109
D200
D201
D202
D209
10
words