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

Page 194

Advertising
background image

5.7 Data Shift Instructions

5.7.7 Byte-to-word Expansion (BEXTD)

5-125

Instructions

5

( 3 ) Programming Example

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

The following table illustrates how the byte data in the source area is expanded and moved into word data in the desti-
nation area.

Source area

Destination area

Register

Data

Register

Data

MW00010

Lower byte

10 hex

MW00020

Lower byte

10 hex

Upper byte

20 hex

Upper byte

00 hex

MW00011

Lower byte

30 hex

MW00021

Lower byte

20 hex

Upper byte

40 hex

Upper byte

00 hex

MW00022

Lower byte

30 hex

Upper byte

00 hex

MW00023

Lower byte

40 hex

Upper byte

00 hex

Advertising
This manual is related to the following products: