3 move bit (movb), 1 ) operation – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 185

5.7 Data Shift Instructions
5.7.3 Move Bit (MOVB)
5-116
5.7.3 Move Bit (MOVB)
( 1 ) Operation
The MOVB instruction moves the designated number of bits of data from the area that starts with the first source bit
address to the area that starts with the first destination bit address.
The bits are moved one bit at a time from the lowest relay address.
If the source area and destination area overlap, the source data that is actually moved may not be the data that
was in the source area before the instruction was executed.
Example Where the Source Area and Destination Area Overlap
1
1
0
0
0
1
1
1
0
0
0
1
Source area
Destination area
Bit data moved.
First source bit address
First destination bit address
Number of bits to move m
0
m
Number of bits to move m
d
c
b
a
0
0
0
0
0
b
a
b
a
0
0
b
a
0
c
d
e
f
0
3
4
7
1
8
2
5
6
Source area
(shaded portion)
Destination area
(shaded portion)
Overlap
Bit status is moved in the following order:
c
to
f
. This means that the status of bits 2 and 3
are moved to bits 4 and 5 (
c
and
d
) and then the status of bits 4 and 5 are moved (
e
and
f
).
First source bit address:
MB00002
First destination bit address:
MB00004
0
0
F
…
…
…