Toshiba PROSEC T1-16S User Manual page 176

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

Advertisement

7. Instructions
FUN 080
RTR
Expression
Input
[ A RTR n
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
When LSB = 1
When LSB = 0
Operand
Name
X
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
E
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)
174
T1-16S User's Manual
n bit rotate right
B ]
Output
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
D
C
B
A
9
8
7
6
Output
OFF
ON
OFF
Register
C
(LSB)
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
6F3B0253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents