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

Page 186

Advertising
background image

5.7 Data Shift Instructions

5.7.3 Move Bit (MOVB)

5-117

Instructions

5

( 2 ) Format

∗ C and # registers cannot be used.

( 3 ) Programming Example

In the following programming example, four bits of data are moved from the area that starts with the first source bit
address at MB000010 to the area that starts with the first destination bit address at MB000020.
The MOVB 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 bit address
(Src)

{

×

×

×

×

×

×

First destination bit address
(Dest)

{

*

×

×

×

×

×

×

Number of bits to move

×

{

×

×

×

{

{

Number of bits

to move

First source bit address

First destination bit address

Icon:

Key entry: MOVB

Source area

Destination area

Register

Data

Register

Data before Execution

of Instruction

Data after Execution of

Instruction

MB000010

0

MB000020

0

0

MB000011

1

MB000021

0

1

MB000012

1

MB000022

0

1

MB000013

1

MB000023

0

1

Advertising
This manual is related to the following products: