3 ) programming example – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 190
Advertising

5.7 Data Shift Instructions
5.7.5 Exchange (XCHG)
5-121
Instructions
5
( 3 ) Programming Example
In the following programming example, four words of data are exchanged between table 1, which starts at MW00010,
and table 2, which starts at MW00020.
The XCHG instruction is executed when switch 1 (DB000000) turns ON.
The following table illustrates how the data is exchanged between table 1 and table 2.
Table 1
Table 2
Register
Data before
Execution of
Instruction
Data after
Execution of
Instruction
Register
Data before
Execution of
Instruction
Data after
Execution of
Instruction
MW00010
10
123
MW00020
123
10
MW00011
20
234
⇔ MW00021
234
20
MW00012
30
345
MW00022
345
30
MW00013
40
456
MW00023
456
40
Advertising
This manual is related to the following products: