Omron SYSMAC CP Series Instruction & Reference Manual page 154

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Function
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)).
Hint
• 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).
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.
0.00
XFER
&10
D100
D200
2-118
S
S+(N-1)
XFER
D100
D102
XFER
&1000
D0
D1000
D100
D101
D102
10
words
D109
N words
D+(N-1)
D100
&10
D109
D200
D201
D202
D209
CP1E CPU Unit Instructions Reference Manual(W483)
D
D102
D111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents