![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831265.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-148
Ver. 1
6.26 Move Instruction
6.26.1 BSFT, BSFTP
Instruction
Area Available
Step
Flag
P M K F L T C S Z D.x R.x
Co
nst.
U N D R
Error
(F110)
Zero
(F111)
Carry
(F112)
BSFT(P)
St O O O - O -
-
-
- O O -
-
-
-
-
3/4
-
-
-
Ed O O O - O -
-
-
- O O -
-
-
-
-
Operand
Description
Data Type
St
Start bit of BSFT Operation
BIT
Ed
End bit of BSFT Operation
BIT
1) BSFT (Bit Shift)
(1) Shifts bits data from Start Bit (St) to End Bit (Ed) bit by bit.
(2) Bit shift direction
- S1 < Ed: left shift
- S1 > Ed: right shift
Before
After
b15
b0
St
Ed
1
0
1
1
0
0
1
0
1
1
1
0
0
1
0
1
1
0
0
1
1
0
0
1
0
1
1
1
0
0
0
1
Discarded
2) Program Example
(1) For P0070=h8000, when Input Signal P00000 is changed to On from Off status, it shifts to the right from
Start bit P0070F to End bit P00704 bit by bit because P0070F is larger than P00704 (P0070F > P00704).
BSFTP P0070F P00704
P00000
BSFT
BSFTP
S
t
means
P S
t
E
d
E
d
Command
Command
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...