Toshiba PROSEC T1-16S User Manual page 172

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

Advertisement

7. Instructions
FUN 075
DSR
Expression
Data input
DSR
D
Shift input
(n)
S
Enable input
E
Direction input
L
Function
While the enable input (E) is ON, this instruction shifts the data of the bit table, size n starting with
A, 1 bit when the shift input (S) is ON. The shift direction is determined by the state of the direction
input (L).
When L is OFF, the direction is right (lower address direction).
When L is ON, the direction is left (upper address direction).
The state of the data input (D) is stored in the highest bit if right shift, and stored in the lowest bit A
if left shift. The pushed out bit state is stored in the carry flag (CF = S050).
When the enable input (E) is OFF, all bits in the table and the carry flag are reset to OFF.
Execution condition
Enable
input
OFF
Resets all bits in the bit table
ON
S = ON
L = ON
L = OFF
S = OFF
No execution
Operand
Name
X
A Leading device
n Device size
Example
170
T1-16S User's Manual
Bi-directional shift register
Output
Q
A
Operation
Shift left execution
Shift right execution
Device
Y
R
S
T.
C. XW YW RW SW T
Output
CF
OFF
Reset
Highest bit state Set or reset
Lowest bit state Set or reset
Highest bit state
Register
C
D
I
J
6F3B0253
Constant Index
K
1 - 64

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents