Sftr (Shift Right) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

SFTR (Shift Right)

SFTR
*****
S2 = 0, N_B = 16, Bits = 1
Before shift:
After shift:
Valid Devices
Device
S1 (Source 1)
S2 (Source 2)
N_B
Bits
For valid device address ranges, see "Device Addresses" on page 2-1.
Since the SFTR instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
S1
S2
N_B
Bits
*****
*****
S2
MSB
0
1
0
0
1
MSB
0
1
0
0
Function
First data for bit shift
Data to shift into the MSB
Number of bits in the data string
Quantity of bits to shift
FC6A S
MICROS
ERIES
MART
S1 → CY
When input is on, N_B-bit data string starting with source device S1 is
**
shifted to the right by the quantity of bits assigned by device Bits.
The result is set to source device S1, and the last bit status shifted out is set
to a carry (special internal relay M8003). Zero or 1 assigned by source
device S2 is set to the MSB.
S1
1
0
1
0
1
1
1
0
Shift to the right
S1
1
1
0 1
0
1
1
1
I
Q
X
X
X
L
P
M
ADDER
ROGRAMMING
9: S
/ R
HIFT
OTATE
LSB
CY
0
1
1
0
M8003
LSB
CY
0
0
1
1
0
M8003
M
R
T
C
D
P
X
X
X
X
X
X
FC9Y-B1726
ANUAL
I
NSTRUCTIONS
Constant
Repeat
0 or 1
1-65,535
1-15
9-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents