Bit Shift Left - Toshiba PROSEC T1-16S User Manual

Programmable controller basic hardware and function
Hide thumbs Also See for PROSEC T1-16S:
Table of Contents

Advertisement

FUN 069
SHL1
Expression
Input
[ SHL1 A ]
Output
Function
When the input is ON, the data of register A is shifted 1 bit to the left (MSB direction). 0 is stored in
the right most bit (LSB). The pushed out bit state is stored in the carry flag (CF = S050). After the
operation, if the left most bit (MSB) is ON, the output is turned ON.
Execution condition
Input
OFF
No execution
ON
Execution
When MSB = 1
When MSB = 0
Operand
Name
X
A Operation data
Example
When X008 is changed from OFF to ON, the data of RW15 is shifted 1 bit to the left.
The figure below shows an operation example.
(MSB)
F
E
D
1 1 1 0 0 1 1 1 0 0 1 1 1 0 1 0
CF
1
1 1 0 0 1 1 1 0 0 1 1 1 0 1 0 0

1 bit shift left

Operation
Device
Y
R
S
T.
C. XW YW RW SW T
C
B
A
9
8
7
6
5
R002 is turned ON
Output
OFF
ON
OFF
Register
C
(LSB)
4
3
2
1
0
RW15
RW15 (Result)
0
Basic Hardware and Function
7. Instructions
CF
Set or reset
Set or reset
Constant Index
D
I
J
K
6F3B0253
165

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents