FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
9-9
9: S
HIFT
/ R
OTATE
I
NSTRUCTIONS
Example: ROTL
• 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 40,966 to data register
D10.
Each time input I0 is turned on, 16-bit data of data register D10 is rotated to the left by
1 bit as assigned by device bits.
The status of the MSB is set to special internal relay M8003 (carry or borrow).
M8120
REP
SOTU
I0
S1 –
40966
D1 –
D10
S1
D10
bits
1
ROTL(W)
MOV(W)
Before rotation: D10 = 40966
1
1
0
0
0
0
0
0 0
0
1
1
0
0
0
0
CY
M8003
MSB
LSB
D10
After first rotation: D10 = 16397
Bits to rotate = 1
After second rotation: D10 = 32794
1
0
0
0
0
0
1
0
0 0
0
0
1
0
0
1
1
CY
M8003
MSB
LSB
D10
0
1
0
0
0
0
0
0
0 0
0
1
0
1
0
1
0
CY
M8003
MSB
LSB
D10
Each time input I1 is turned on, 32-bit data of data registers D10 and D11 is rotated to
the left by 1 bit as assigned by device bits.
The status of the MSB is set to special internal relay M8003 (carry or borrow).
SOTU
I1
S1
D10
bits
1
ROTL(D)
Bits to rotate = 1
Before rotation: D10·D11 = 2,684,788,742
After rotation: D10·D11 = 1,074,610,189
1
1
0
0
0
0
0
0 0
0
1
1
0
0
0
0
CY
M8003
MSB
LSB
D10·D11
1
1
1
0
0
0
0
0
0 0
0
1
1
0
0
0
0
CY
M8003
MSB
LSB
D10·D11
Rotate to the left
1
1
0
0
0
0
0
0 0
0
1
1
0
0
0
0
1
1
0
0
0
0
0
0 0
0
1
1
0
0
0
0
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...