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

Page 204

Advertising
background image

5.7 Data Shift Instructions

5.7.12 Bit Shift Right (SHFTR)

5-135

Instructions

5

( 3 ) Programming Example

In the following programming example, four bits from the first bit address at MB00001E are shifted two bits to the
right when switch 1 (DB000000) turns ON.

The following figure illustrates the result when the above instructions are executed.

0

0

1

1

0

1

0

0

0

0

1

1

E

F

0

1

2

1

0

Number of bits
to shift = 2

Bit width = 4

First bit address:

MB00000E

Before Shift

After Shift

Bits that overflow are discarded.

Advertising
This manual is related to the following products: