Bsfr, Bsfrp; 1-Bit Shift To Right Of N-Bit Data; 1-Bit Shift To Left Of N-Bit Data - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

[Operation]
X17
0
Carry flag
(SM700)
X17
1
1
7.3.2

BSFR, BSFRP

1-bit shift to right of n-bit data

7.3.2
BSFL, BSFLP

1-bit shift to left of n-bit data

BSFR, BSFRP, BSFL, BSFLP
BSFR, BSFL
BSFRP, BSFLP
: Head number of the devices to be shifted (bits)
D
n
: Number of devices to which shift is executed (BIN 16 bits)
Setting
Internal Devices
Data
Bit
D
n
Function
BSFR
(1) Shifts the data in n points from the device designated by
D
+(n-1)
D
+(n-2)
D
+(n-3)
1
1
0
+(n-1)
+(n-2)
+(n-3)
D
D
D
0
1
1
Filled with 0
(2) The device designated by
BSFL
(1) Shifts the data in n points from the device designated by
D
+(n-1)
1
Carry flag
D
+(n-1)
(SM700)
1
1
(2) The device designated by
X14
X13
X10
0
1
1
0
0
1
1
X14 X13
X12
X10
0
0
1
1
0
0
0
Filled with 0s.
Command
Command
R, ZR
Word
Bit
n
+2
D
D
+1
1
1
+2
D
D
+1
0
1
+ (n-1) is filled with 0.
D
+(n-2)
+(n-3)
D
D
D
1
0
+(n-2)
+(n-3)
D
D
D
0
0
is filled with 0.
D
BSFR, BSFRP, BSFL, BSFLP
High
Basic
performance
indicates an instruction symbol of BSFR/BSFL.
J
\
U
\G
Word
––
to the right by one bit.
D
D
0
Carry flag
D
(SM700)
0
1
to the left by one bit.
D
+2
+1
D
D
0
1
1
+2
+1
D
D
1
1
0
Filled with 0
Process
LCPU
Redundant Universal
D
n
P
n
D
Constants
Zn
K, H
1
2
3
4
4
6
Other
7
––
––
8
341

Advertisement

Table of Contents
loading

Table of Contents