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

Page 196

Advertising
background image

5.7 Data Shift Instructions

5.7.8 Word-to-byte Compression (BPRESS)

5-127

Instructions

5

( 3 ) Programming Example

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

The following table illustrates how the word data in the source area is compressed and moved into byte data in the des-
tination area.

Source area

Destination area

Register

Data

Register

Data

MW00010

Lower byte

12 hex

MW00020

Lower byte

12 hex

Upper byte

23 hex

Upper byte

34 hex

MW00011

Lower byte

34 hex

MW00021

Lower byte

56 hex

Upper byte

45 hex

Upper byte

78 hex

MW00012

Lower byte

56 hex

Upper byte

67 hex

MW00013

Lower byte

78 hex

Upper byte

89 hex

Advertising
This manual is related to the following products: