2 ) format, 3 ) programming example – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 188

Advertising
background image

5.7 Data Shift Instructions

5.7.4 Move Word (MOVW)

5-119

Instructions

5

( 2 ) Format

∗ C and # registers cannot be used.

( 3 ) Programming Example

In the following programming example, four words of data from the area that starts with the first source address at
MW00010 are moved to the area that starts with the first destination address at MW00020.
The MOVW instruction is executed when switch 1 (DB000000) turns ON.

The following table illustrates how the data in the source area is moved to the destination area.

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

First source address
(Src)

×

{

×

×

×

×

×

First destination address
(Dest)

×

{

*

×

×

×

×

×

Number of words to
move (Width)

×

{

×

×

×

{

{

Number of words to move

First destination address

First source address

Icon:

Key entry: MOVW

Source area

Destination area

Register

Data

Register

Data before Execution

of Instruction

Data after Execution of

Instruction

MW00010

10

MW00020

0

10

MW00011

20

MW00021

0

20

MW00012

30

MW00022

0

30

MW00013

40

MW00023

0

40

Advertising
This manual is related to the following products: