6F3B0250
Basic Hardware and Function 183
7. Instructions

FUN 069 SHL1 1 bit shift left

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 m ost bit (LSB). The pushed out bit state is stored in the carry flag (CF = S050). After t he
operation, if the left most bit (MSB) is ON, the output is t ur ned ON.
Execution condition
Input Operation Output CF
OFF No execution OFF -
ON Execution When MSB = 1 ON Set or reset
When MSB = 0 OFF Set or reset
Operand
Name Device Re
g
ister Constant Index
X Y R S T. C. XW YW RW SW T C D I J K
A
Operation data ÖÖÖÖÖÖÖÖÖ Ö
Example
When X 008 is changed from O FF to ON, the data of RW15 is shifted 1 bit t o t he left.
The figure below shows an operation example.
(MSB) (LSB)
FEDCBA9876543210
1110011100111010
CF
1 1100111001110100
R002 is turned ON 0
RW15
RW15 (Result)
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net