7. APPLICATION INSTRUCTIONS
7 − 35
MELSEC-A
7.3.2 n-bit data 1-bit right shift, left shift
(BSFR, BSFRP, BSFL, BSFLP)
Available Device
Bit device Word (16-bit) device Constant Pointer
Level
Carry
flag
Error
flag
X Y M L S B F T C D W R A0 A1 Z V K H P I N
Digit specification
Index
M9012 (M9010, M9011)
(D) O O O O O O
n O O
O O O
Functions BSFR
Shifts "n" bits, which begins with the bit device specified at (D), to the right by one
bit.
BSFL
Shifts "n" bits, which begin with the bit device specified at (D), to the left by one bit.
Applicable
CPU
All CPUs
(D)
n
(D)
n
P
Shift commands
(D)
Head number of device
which stores data to be
shifted
n Number of shift device
Setting data
BSFR, BSFL
Indicates the instruction symbol.
Before execution
After execution
Shift range (n points)
0 is entered.
Carry flag
(M9012)
Before execution
After execution
Carry flag
(M9012)
0 is entered.
Shift range (n points)