Toshiba PROSEC T1 User Manual page 194

Programmable controller
Hide thumbs Also See for PROSEC T1:
Table of Contents

Advertisement

7. Instructions
FUN 080
Expression
Input -[ A RTR n ® B ]- Output
Function
When the input is ON, the data of register A is rotated n bits to the right (LSB direction), and stored in
B . After the operation, if the right most bit (LSB) is ON, the output is turned ON.
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
A Source
n Shift bits
B Destination
Example
When X007 is changed from OFF to ON, the data of RW18 is rotated 5 bits to the right and the
result is stored in RW20.
The figure below shows an operation example.
(MSB)
F
RW18
0 1 0 0 0 0 1 0 1 0 0 1 1 0 1 0
RW20
1 1 0 1 0 0 1 0 0 0 0 1 0 1 0 0
(Result)
192
T1/T1S User's Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
RTR
n bit rotate right
Operation
When LSB = 1
When LSB = 0
Device
X
Y
R
S
T.
C. XW YW RW SW T
E
D C
B
A
9
8
7
*
Output
OFF
ON
OFF
Register
C
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
(LSB)
6
5
4
3
2
1
0
CF
-
Set or reset
Set or reset
Constant Index
D
I
J
K
Ö
Ö
Ö
Ö
Ö
1 - 16
Ö
Ö
Ö
Ö
Ö
*
CF
1
R001 is turned OFF
6F3B0250
Ö
Ö
Ö

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents