Toshiba PROSEC T1-16S User Manual page 174

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

Advertisement

7. Instructions
FUN 078
RTR1
Expression
Input
[ RTR1 A ]
Output
Function
When the input is ON, the data of register A is rotated 1 bit to the right (LSB direction). The pushed
out bit state is stored in the left most bit (MSB) and in the carry flag (CF = S050). 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 Operation data
Example
When X007 is changed from OFF to ON, the data of RW15 is rotated 1 bit to the right.
The figure below shows an operation example.
(MSB)
F
E
RW15
0 1 0 0 0 0 1 0 1 0 0 0 1 0 1 0
RW15
0 0 1 0 0 0 0 1 0 1 0 0 0 1 0 1
(Result)
172
T1-16S User's Manual
1 bit rotate right
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
CF
0
R001 is turned ON
6F3B0253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents