6 set words instruction (setw), Program example, Outline – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual
Page 116

1 Ladder Program Instructions
1.6.6 SET WORDS Instruction (SETW)
1-106
Program Example
The contents of MW00000 to MW00009 are exchanged to MW00100 to MW00109.
1.6.6 SET WORDS Instruction (SETW)
Outline
The SETW instruction stores the designated data (Set Data) in all registers designated by the
transfer destination register number (Dest) and the number of destination registers (Width).
The storage process is performed one word at a time in the direction in which the register
number increases.
After
transfer
1031H
1032H
1033H
1034H
1035H
1036H
1037H
1038H
1039H
1030H
1031H
1032H
1033H
1034H
1035H
1036H
1037H
1038H
1039H
1030H
2050H
2051H
2052H
2053H
2054H
2055H
2056H
2057H
2058H
2059H
2050H
2051H
2052H
2053H
2054H
2055H
2056H
2057H
2058H
2059H
MW00000
MW00001
MW00002
MW00003
MW00004
MW00005
MW00006
MW00007
MW00008
MW00009
MW00100
MW00101
MW00102
MW00103
MW00104
MW00105
MW00106
MW00107
MW00108
MW00109
MW00100
MW00101
MW00102
MW00103
MW00104
MW00105
MW00106
MW00107
MW00108
MW00109
MW00000
MW00001
MW00002
MW00003
MW00004
MW00005
MW00006
MW00007
MW00008
MW00009
x x x x x
Transfer data
Transfer destination area
V = S, I, O, M, D
Transfer
destination
register no.
x x x x x
x x x x x
x x x x x
x x x x x
x x x x x
x x x x x
Number of
transfers
V W x x x x x + (n - 1 )
V W x x x x x + n
V W x x x x x
V W x x x x x + 1
V W x x x x x + 2
V W x x x x x + 3
• • •