EasyManuals Logo

LS Industrial Systems XBC-E Series User Manual

LS Industrial Systems XBC-E Series
542 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #265 background imageLoading...
Page #265 background image
Chapter 6 Instruction Details
XBC E-Type Main Unit 6-148 Ve r. 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 b0St 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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LS Industrial Systems XBC-E Series and is the answer not in the manual?

LS Industrial Systems XBC-E Series Specifications

General IconGeneral
BrandLS Industrial Systems
ModelXBC-E Series
CategoryController
LanguageEnglish

Related product manuals