7-44
7.3 Shift Instructions
7.3.2 1-bit right/left shift of n-bit data
BSFR, BSFL
7.3.2
1-bit right/left shift of n-bit data
BSFR, BSFL
Function
BSFR(P)
(1) Shifts the data n points from the device specified for
to the right by 1 bit.
(2) The device specified for
+ (n 1) becomes 0.
BSFR(P)
BSFL(P)
P: Executing condition
:
indicates any of the following
instructions.
BSFR
BSFRP
BSFL
BSFLP
Input argument,
EN:
Executing condition
:Bit
n:
Number of devices to be shifted
:ANY16
Output argument,
ENO:
Execution result
:Bit
d:
Start number of the device to be shifted
:Bit
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
n
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
B
SFR
EN
ENO
n
d
B
SFR
(EN,
n
, d);
ENO:=
d
d
d
d
0
C
arr
y
f
l
ag
(SM700)
Becomes
0
1
1
0
1
1
0
0
1
1
0
1
1
n
d
d
d
d
d
d
d
d
d
d
+(
n
-1)
+(
n
-2)
+(
n
-3)
+(
n
-1)
+(
n
-2)
+(
n
-3)
+2
+1
+2
+1
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......