DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-164
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. The table counter is set to 2 initially, and it will automatically increment from 2 to 6
as the instruction is executed. Notice how SP56 comes on when the table counter is 6, which
is equal to the table length. Plus, although our example does not show it, we are assuming that
there is another part of the program that changes the value in V1500 (data source) prior to the
execution of the ATT instruction.
V1401 7 7 7 7
V1402 4 3 4 3
V1403 5 6 7 8
V1404 1 2 3 4
V1405 0 5 0 0
V1406 9 9 9 9
V1407 X X X X
1
2
3
4
5
6
7
7
7
7
V1401
4 3 4 3
V1402
5 6 7 8
V1403
1 2 3 4
V1404
0 5 0 0
V1405
9 9 9 9
V1406
3 0 7 4
V1407
X X X X
V1401 4 3 4 3
V1402 5 6 7 8
V1403 1 2 3 4
V1404 0 5 0 0
V1405 9 9 9 9
V1406 3 0 7 4
V1407 X X X X
1
2
3
4
5
6
V1401
5 6 7 8
V1402
1 2 3 4
V1403
0 5 0 0
V1404
9 9 9 9
V1405
3 0 7 4
V1406
8 9 8 9
V1407
X X X X
V1401 5 6 7 8
V1402 1 2 3 4
V1403 0 5 0 0
V1404 9 9 9 9
V1405 3 0 7 4
V1406 8 9 8 9
V1407 X X X X
V1401 1 2 3 4
V1402 0 5 0 0
V1403 9 9 9 9
V1404 3 0 7 4
V1405 8 9 8 9
V1406 1 0 1 0
V1407 X X X X
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
1 2 3 4
1
2
3
4
5
6
V1400
0 0 0 2
V1401 1 2 3 4
V1402 0 5 0 0
V1403 9 9 9 9
V1404 3 0 7 4
V1405 8 9 8 9
V1406 1 0 1 0
V1407 X X X X
V1500
1 2 3 4
V1400
0 0 0 3
Table
V1500
5 6 7 8
Data Source
V1400
0 0 0 4
V1500
4 3 4 3
V1400
0 0 0 5
V1500
5 6 7 8
1
2
3
4
5
6
V1400
0 0 0 3
V1500
4 3 3 4
1
2
3
4
5
6
V1400
0 0 0 4
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 =
SP56
V1500
7 7 7 7
V1400
0 0 0 6
V1500
7 7 7 7
1
2
3
4
5
6
V1400
0 0 0 5
SP56 =
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
1
2
3
4
1
2
3
4
5
6
5
6
7
8
3074
8989
2046
1010
Discard Bucket
Discard Bucket
3
4
3
4
Table
After ATT Execution
Table counter
(Automatically Incremented)
Data Source
Discard Bucket
OFF
Discard Bucket
Data Source
ON
until end of scan
or next instruction
that uses SP56
Table counter
(Automatically Incremented)
Table counter
(Automatically Incremented)
Table counter
(Automatically Incremented)
Data Source
After ATT Execution
After ATT Execution
Table
After ATT Execution
Table
Before ATT Execution
Table
Before ATT Execution
Table
Before ATT Execution
Table
Before ATT Execution
Table
Table counter
Data Source
Table counter
Data Source
Table counter
Data Source
Data Source
Table counter
Example of Execution
Scan N
Scan N+1
Scan N+2
Scan N+3
..
..
..
..
..
..
..
..