3 move bits instruction (movb) – Yaskawa Ladder Works Programming Manual User Manual

Page 103

Advertising
background image

6.3 MOVE BITS Instruction (MOVB)

6-6

6.3 MOVE BITS Instruction (MOVB)

[Outline]

The MOVB instruction moves the designated number of bits (Width) from the beginning of the move
source bits (Source) to the beginning of the move destination bits (Dest). The move process is
performed one bit at a time in the direction in which the relay number increases.
Unless the move source bits overlap with the move destination bits, the move source bit table is stored.

If there is overlap between them, the move source bit table may not be stored.

Transfer source
data area

Transfer
destination
data area

Source

Dest

Width

Number of transfers (m)

(a)

(b)

c

d

e

f

g

(h)

(f)

(g)

(h)

c

d

e

f

g

Transfer source

(a)

(b)

a

b

c

d

e

(h)

Transfer destination

(f)

(g)

(h)

a

b

c

d

e

Whe the transfer source and
transfer desitnation overlap (2)

1

1

1

0

1

0

1

0

5

1

0

4

3

2

m-1 m-2 m-3

Address of the had
transfer source bit

1

1

1

0

1

0

1

0

Address of the
head transfer
destination bit

1

1

Transfer source

Transfer destination

Whe the transfer source and
transfer desitnation overlap (1)

[Format]

Symbol : MOVB
Full Name : Move Bit
Category : MOVE

Icon :

[Parameter]

Parameter Name

Setting

Source

· Any bit type register
· Any bit type register with subscript

Dest

· Any bit type register (except for # and C registers)
· Any bit type register with subscript (except for # and C registers)

Width

· Any integer type register
· Any integer type register with subscript
· Constant

Advertising