FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
10-11
10: S
HIFT
/ R
OTATE
I
NSTRUCTIONS
Example: ROTR
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 13 to data register
D20.
Each time input I1 is turned on, 16-bit data of data register D20 is rotated to the right by
2 bits as designated by device bits.
The last bit status rotated out is set to a carry (special internal relay M8003).
M8120
REP
SOTU
I1
S1 –
13
D1 –
D20
S1
D20
bits
2
ROTR(W)
MOV(W)
Before rotation: D20 = 13
0
0
0
0
0
0
0
0 0
0
0
1
0
0
1
1
CY
M8003
MSB
LSB
D20
After first rotation: D20 = 16387
Bits to rotate = 2
After second rotation: D20 = 53248
0
0
0
0
0
0
1
0
0 0
0
1
0
0
0
0
1
CY
M8003
MSB
LSB
D20
1
1
0
0
0
1
1
0
0 0
0
0
0
0
0
0
0
CY
M8003
MSB
LSB
D20
Each time input I1 is turned on, 32-bit data of data registers D20 and D21 is rotated to
the right by 1 bit as designated by device bits.
The last bit status rotated out is set to a carry (special internal relay M8003).
SOTU
I1
S1
D20
bits
1
ROTR(D)
Bits to rotate = 1
Before rotation: D20·D21 = 851,981
After rotation: D20·D21 = 2,147,909,638
0
0
0
0
0
0
0
0 0
0
0
1
0
0
1
1
CY
M8003
MSB
LSB
D20·D21
1
CY
M8003
MSB
LSB
D20·D21
Rotate to the right
0
0
0
0
0
0
0
0 0
0
0
1
0
0
1
1
0
0
0
0
1
0
0 0
0
1
0
0
0
0
1 0
0
0
0
0
1
0
0 0
0
1
0
0
0
0
1 0
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...