IDEC MICROSmart FC6A Series Ladder Programming Manual page 189

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

Advertisement

Example: ROTL
• Data Type: Word
MOV(W)
S1 –
40966
M8120
ROTL(W)
SOTU
I0
Bits to rotate = 1
Before rotation: D10 = 40966
After first rotation: D10 = 16397
After second rotation: D10 = 32794
• Data Type: Double Word
ROTL(D)
SOTU
I1
Bits to rotate = 1
Before rotation: D10·D11 = 2,684,788,742
CY
MSB
1
M8003
After rotation: D10·D11 = 1,074,610,189
CY
MSB
1
0
M8003
D1 –
REP
D10
S1
bits
D10
1
S1
bits
D10
1
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0 0
0
0
FC6A S
MICROS
ERIES
MART
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).
CY
MSB
1
0
1
0
M8003
CY
MSB
1
0
1
0
0
M8003
CY
MSB
0
1
0
0
0
M8003
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).
D10·D11
0
0
0
1
1
0
1
0
Rotate to the left
D10·D11
0
0
1
1
0
1
0
1
L
P
M
ADDER
ROGRAMMING
9: S
/ R
HIFT
OTATE
D10
0
0
0
0
0
0
0
0
D10
0
0
0
0
0
0
0
0
D10
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0 0
0
0
0
FC9Y-B1726
ANUAL
I
NSTRUCTIONS
LSB
0
1
1
0
LSB
1
1
0
1
LSB
1
0
1
0
LSB
0
0
1
1
0
LSB
0
1
1
0
1
9-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents