6F3B0250
Basic Hardware and Function 193
7. Instructions

FUN 081 RTL n bit rotate lef t

Expression
Input -[
A
RTL
n
®
B
]- Output
Function
When the input is ON, the data of r egister
A
is rotated
n
bits to the left (MSB direction) , and stored in
B
. Af ter the operat ion, if t he left most bit (MSB) is ON, t he out put is turned 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
Source ÖÖÖÖÖÖÖÖÖÖ Ö Ö
n
Shift bits 1 - 16
B
Destination ÖÖÖÖÖÖÖÖÖ Ö
Example
When X 008 is changed from O FF to ON, the data of RW18 is r otated 3 bits to t he left and the
result is st or ed in RW20.
The figure below shows an operation example.
(MSB) (LSB)
FEDCBA9876543210
1010011100111010
CF
1 0011100111010101
R002 is turned OFF
RW18
RW20 (Result)
*
*
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net