RCL
- 161 -
Program example
Program to rotate the D10 details 3 bits to the left when M0 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M0
11 RCL D10 K3
D10RCL K3
M0
10
(pulse coding)
14
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
10
0
00 000
0
0
0
00 0
0
0
1
000000
0
000000
00
*
Carry flag
(SM12)
D10 before execution
D10 after execution (n=3)
0
00 0 0 0 0
0
000000
0*
1
0
0000 00
0
000000
*1
0
To carry flag
(n=1)
*
To carry flag
To carry flag
(n=2)
*The carry flag is set to 1 or 0 before execution.
Transition
Left rotation of data using RCL command