EasyManua.ls Logo

Vigor VS Series - Page 345

Vigor VS Series
484 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
339
S F R P
D
n
S F L P
D
n
FNC
213
FNC
214
1
1
2
2
M
M
3
3
n
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
D
n
0 15
D : the word data device to be shifted
n : the number of the bits to be shifted
When X0 = “OFF” “ON”, the 16-bit data of (D0) will be shifted by 4 bits to the right, and the status of the highest
bit that shifted out will be copied to the Carry Flag M9022. All blank bits will be filled with 0 at every blank bit.
The bit format of the designated device executes to shift to the left by the number of bits.
When X1 = “OFF” “ON”, the 16-bit data of (D1) will be shifted by 4 bits to the left, and the status of the lowest bit
that shifted out will be copied to the Carry Flag M9022. All blank bits will be filled with 0 at every blank bit.
The bit format of the designated device executes to shift to the right by the number of bits.
1 1
1 1 1
1 1
1
1 1
1
1 1
1
1 1
0
0 0 0 0
0 0 0 0
0
0
0
0
0 0
b15
b0
D0
D0
Shift right bits
After execution of a bits shift
1
M9022
0
M9022
0
1 1 1 1 1 1 1 1
0
0 0 0 0
1111
0 0 0 0
0 0 0 0 0 0
0000
b15
b0
D1
D1
Shift left bits
0
M9022
1
M9022
0
SFRP D0 K4
X0
D
n
n
SFLP D1 K4
X1
D
n
D
n
D
n
Fill in 0 at every blank bit
n
Operand
Devices
Shift n Bit Right in 16-bit Word Data
with Carry
Shift n Bit Left in 16-bit Word Data
with Carry
D : the word data device to be shifted
n : the number of the bits to be shifted
After execution of a bits shift
Fill in 0 at every blank bit

Table of Contents