10: S
HIFT
/ R
OTATE
I
NSTRUCTIONS
10-4
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
Example: SFTR
Data Type: Word
Data Type: Double Word
M8120 is the initialize pulse special internal relay.
When the CPU starts operation, the MOV (move) instruction sets
29 to data register D10.
Each time input I0 is turned on, 16-bit data of data register D10
is shifted to the right by 2 bits as designated by device Bits. The
last bit status shifted out is set to a carry (special internal relay
M8003). Zeros are set to the MSB.
M8120
REP
SOTU
I0
S1 –
29
D1 –
D10
S1
D10
Bits
2
SFTR
MOV(W)
S2
0
N_B
16
0
Before shift: D10 = 29
0
0
0
0
0
0
0
0 0
0
0
1
1
0
1
1
CY
M8003
MSB
LSB
D10
0
After first shift: D10 = 7
1
0
0
0
0
0
0
0 0
0
1
0
0
0
0
1
CY
M8003
MSB
LSB
D10
Bits to shift = 2
0
1
0
0
0
0
0
0
0 0
0
0
0
0
0
0
0
After second shift: D10 = 1
CY
M8003
MSB
LSB
D10
1
0
0
Shift to the right
M8120 is the initialize pulse special internal relay.
When the CPU starts operation, the MOV (move) instructions set
65535 and 0 to data registers D10 and D11, respectively.
Each time input I0 is turned on, 32-bit data of data registers D10
and D11 is shifted to the right by 1 bit as designated by device
Bit. D10 is the low word, and D11 is the high word.
The last bit status shifted out is set to a carry (special internal
relay M8003). Ones are set to the MSB.
M8120
REP
SOTU
I0
S1 –
65535
D1 –
D10
S1
D10
Bits
1
SFTR
MOV(W)
S2
1
N_B
32
REP
S1 –
0
D1 –
D11
MOV(W)
Bits to shift = 1
1
Before shift:
1
1
1
1
1
1
1
1 1
1
1
1
1
1
1
1
CY
M8003
MSB
LSB
D10
1
After shift:
1
1
1
1
1
0
1
1 1
1
1
1
1
1
1
1
CY
M8003
MSB
LSB
D10·D11
Shift to the right
0
0
0
0
0
1
0
0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0 0
0
0
0
0
0
0
0
D11
D11
D10
S2
Summary of Contents for microsmart pentra
Page 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Page 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...