13 copy word (copyw), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 205

5.7 Data Shift Instructions
5.7.13 Copy Word (COPYW)
5-136
5.7.13 Copy Word (COPYW)
( 1 ) Operation
The COPY instruction copies the specified number of words to move from the area that starts with the first source
address to the area that starts with the first destination address.
The data is copied as a block from the source to the destination. Unlike the MOVW instruction, the data is copied to the
destination as is, even if the source and destination overlap.
This instruction differs from the MOVW instruction by the way it handles overlap between the source and desti-
nation areas.
Example Where the Source Area and Destination Area Overlap
6
5
4
3
2
1
6
5
4
3
2
1
Source area
Destination area
Word data moved.
First source address
First destination address
Number of words to move m
0
m
Number of words to move m
d
c
b
a
0
0
0
0
0
b
a
b
a
0
0
d
c
0
0
3
4
7
1
8
2
5
6
Source area
(shaded portion)
Destination area
(shaded portion)
Overlap
Unlike the MOVW instruction, all of the data in the source area
is moved to the destination area, even if the two areas overlap.
First source address:
MW00002
First destination address:
MW00004
0
0
F
…
…
…