12 bit shift right (shftr), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual
Page 203

5.7 Data Shift Instructions
5.7.12 Bit Shift Right (SHFTR)
5-134
5.7.12 Bit Shift Right (SHFTR)
( 1 ) Operation
The SHFTR instruction shifts the bits specified by the first bit address and bit width to the right by the specified num-
ber of bits to shift.
Data that overflows from the bit width is discarded and insufficient bits are padded with 0’s.
( 2 ) Format
∗ C and # registers cannot be used.
f
e
d
c
b
a
g
0
0
0
g
f
e
d
c
0
0
0
0
1
2
3
4
5
6
7
8
…
a
b
Number of bits to shift
Bit width
First bit
address
Before Shift
After Shift
Bits that overflow are discarded.
Insufficient bits are padded with 0’s.
Number of bits to shift
Bit width
First bit address
Icon:
Key entry: SHFTR
Parameter Name
Applicable Data Types
B
W
L
F
A
Index
Constant
First bit address (Adr)
{
*
×
×
×
×
×
×
Number of bits to shift
(Num)
×
{
×
×
×
{
{
Bit width (Width)
×
{
×
×
×
{
{