![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831268.webp)
Chapter 6 Instruction Details
XBC E-Type Main Unit
6-151
Ver. 1
6.26.3 BSFL4, BSFL4P, BSFL8, BSFL8P
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)
BSFL4(P)
BSFL8(P)
D O O O - O -
-
-
- O O -
-
-
-
-
3~5
-
-
O
n O O O - O O O - O -
- O O O O O
Operand
Description
Data Type
D
Start bit position of BSFL Operation
NIBBLE/BYTE
n
Number of bits among 4/8 bits to shift to the left from specified D bit position.
WORD
[Flag Set]
Flag
Description
Device
Number
Carry
Carry Flag will be On/Off based on the bit cut away last.
F112
1) BSFL4 (Nibble Bit Shift Left)
(1) Shifts n bits among 4 bits to the left from specified D bit position.
Before
After
b15
b0
D 0
1
0
0
1
0
0
1
0
0
1
0
1
0
1
1
0
1
0
0
1
0
0
1
0
0
1
0
0
0
1
1
When N=2
D
0
0
D: Start bit
CY
4 Bit
2) BSFL8 (Byte Bit Shift Left)
(1) Shifts D’s 8-bit data’s individual bit to the left for the number of specified n bits bit by bit.
(2) Carry Flag will be On/Off based on the bit cut away last.
3) Program Example
(1) For P0100=‘h00F0’, it shifts 4 bits from No. 4 bit to the left and ‘h03C0’ will be saved in P0100.
BSFL4 P01004 2
P00000
BSFL4, BSFL8
BSFL4P, BSFL8P
D
means BSFL4/BSFL8
P D
n
n
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...