2 bit rotation right instruction (rotr), Program example, Outline – Yaskawa MP900 Series Machine Controller New Ladder Editor User Manual
Page 109
Advertising

1.6 Data Manipulation Instructions
1-99
1
Program Example
The data having MB00000A (bit A of MW00000) as the head address and a bit width of 10
are rotated five times to the left.
1.6.2 BIT ROTATION RIGHT Instruction (ROTR)
Outline
The ROTR instruction is used to rotate bits to the right the number of times designated in the
bit table designated by the leading bit address and bit width.
Rotation symmetry range (Bit width
= 10)
F
C
9
4
0
F
0
0
1
1
1
0
1
0
0
0
0
1
0
0
0
0
C
9
4
0
MW00000
MW00000
MW00001
Before
execution
After
execution
0
1
1
1
MW00001
4
3
2
1
0
m - 3
m - 2
m - 1
Bit width (m)
Head bit address
Number of rotations
Advertising
This manual is related to the following products: