IDEC MICROSmart FC6A Series Ladder Programming Manual page 186

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

Advertisement

9: S
/ R
I
HIFT
OTATE
NSTRUCTIONS
Example: BCDLS
MOV(W)
S1 –
123
M8120
MOV(W)
S1 –
4567
BCDLS
SOTU
I0
When S2 = 1 (digits to shift)
9-6
D1 –
REP
D10
D1 –
REP
D11
S1
S2
D10
1
Before shift:
After first shift:
After second shift:
FC6A S
MICROS
ERIES
MART
M8120 is the initialize pulse special internal relay.
When the CPU starts operation, the MOV (move) instructions set 123 and 4,567 to
data registers D10 and D11, respectively.
Each time input I0 is turned on, the 32-bit binary data of data registers D10 and D11
assigned by S1 is converted into 8 BCD digits, shifted to the left by 1 digit as assigned
by device S2, and converted back to 32-bit binary data.
Zero is set to the lowest digit after each shift.
D10
0
1
2 3
0
1
2
3 4
1
2
3
4 5
MSD
L
P
M
ADDER
ROGRAMMING
ANUAL
D11
4
5
6 7
Shift to the left
5
7 0
6
6
7
0 0
LSD
FC9Y-B1726
0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents