DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-161
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The following diagram shows the scan-by-scan results of the execution for our example
program. In our example, we show the table counter set to 4, initially. (Remember, you can
set the table counter to any value that is within the range of the table.) The table counter
automatically decrements from 4 to 0 as the instruction is executed. Notice how the last two
table positions, 5 and 6, are not moved up through the table. Also, notice that SP56, which
comes on when the table counter is zero, is only on until the end of the scan.
V1401 8 9 8 9
V1402 8 9 8 9
V1403 8 9 8 9
V1404 8 9 8 9
V1405 1 0 1 0
V1406 2 0 4 6
V1407 X X X X
V1401
8 9 8 9
V1402
8 9 8 9
V1403
8 9 8 9
V1404
8 9 8 9
V1405
1 0 1 0
V1406
2 0 4 6
V1407
X X X X
V1401 8 9 8 9
V1402 8 9 8 9
V1403 8 9 8 9
V1404 8 9 8 9
V1405 1 0 1 0
V1406 2 0 4 6
V1407 X X X X
V1401
4 0 7 9
V1402
8 9 8 9
V1403
8 9 8 9
V1404
8 9 8 9
V1405
1 0 1 0
V1406
2 0 4 6
V1407
X X X X
V1401 9 9 9 9
V1402 4 0 7 9
V1403 8 9 8 9
V1404 8 9 8 9
V1405 1 0 1 0
V1406 2 0 4 6
V1407 X X X X
1
2
3
4
5
6
1
2
3
4
5
6
V1401
0 5 0 0
V1402
9 9 9 9
V1403
3 0 7 4
V1404
8 9 8 9
V1405
1 0 1 0
V1406
2 0 4 6
V1407
X X X X
V1500
X X X X
1
2
3
4
5
6
V1400
0 0 0 4
V1401 9 9 9 9
V1402 4 0 7 9
V1403 8 9 8 9
V1404 8 9 8 9
V1405 1 0 1 0
V1406 2 0 4 6
V1407 X X X X
V1500
0 5 0 0
Destination
V1400
0 0 0 3
V1500
9 9 9 9
Destination
V1400
0 0 0 2
V1500
4 0 7 9
V1400
0 0 0 1
V1500
0 5 0 0
1
2
3
4
5
6
V1400
0 0 0 3
V1500
9 9 9 9
1
2
3
4
5
6
V1400
0 0 0 2
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
V1500
8 9 8 9
V1400
0 0 0 0
V1500
4 0 7 9
1
2
3
4
5
6
V1400
0 0 0 1
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
Table Counter
(Automatically d ecremented)
V1401 4 0 7 9
V1402 8 9 8 9
V1403 8 9 8 9
V1404 8 9 8 9
V1405 1 0 1 0
V1406 2 0 4 6
V1407 X X X X
1
2
3
4
5
6
0
5
0
0
9
9
9
9
4
0
7
9
1
2
3
4
5
6
8
9
8
9
Before RFT Execution
Table
Table Counter
Destination
Table Counter
indicates that
these 4
positions will
be
used
After RFT Execution
Table
Before RFT Execution
Table
After RFT Execution
Table
Before RFT Execution
Table
After RFT Execution
Table
Before RFT Execution
Table
After RFT Execution
Table
Table Counter
Table Counter
Table Counter
Destinatio
Destination
Destination
Start here
Start here
Start here
Start here
Scan N+3
Scan N+2
Scan N+1
Scan N
Destination
Destination
SP56 = ON
until end of scan
or next instruction
that uses SP56
Table Counter
(Automatically decremented)
Table Counter
(Automatically decremented)
Table Counter
(Automatically decremented)
..
..
..
..
..
..
..
..