DL205 User Manual, 4th Edition, Rev. B
5–168
Chapter 5: Standard RLL Instructions - Table
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
7777
V1402
4 3 4 3
V1403
5 6 7 8
V1404
1 2 3 4
V1405
0 5 0 0
V1406
9999
V1407
XXXX
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
9999
V1406
3 0 7 4
V1407
XXXX
V1401
4 3 4 3
V1402
5 6 7 8
V1403
1 2 3 4
V1404
0 5 0 0
V1405
9999
V1406
3 0 7 4
V1407
XXXX
1
2
3
4
5
6
V1401
5 6 7 8
V1402
1 2 3 4
V1403
0 5 0 0
V1404
9999
V1405
3 0 7 4
V1406
8 9 8 9
V1407
XXXX
V1401
5 6 7 8
V1402
1 2 3 4
V1403
0 5 0 0
V1404
9999
V1405
3 0 7 4
V1406
8 9 8 9
V1407
XXXX
V1401
1 2 3 4
V1402
0 5 0 0
V1403
9999
V1404
3 0 7 4
V1405
8 9 8 9
V1406
1 0 1 0
V1407
XXXX
1
2
3
4
5
6
V1401
0 5 0 0
V1402
9999
V1403
3
0 7
4
V1404
8 9 8 9
V1405
1 0 1 0
V1406
2 0 4 6
V1407
XXXX
V1500
1 2 3 4
1
2
3
4
5
6
V1400
000 2
V1401
1 2 3 4
V1402
0 5 0 0
V1403
9
99
9
V1404
3 0 7 4
V1405
8 9 8 9
V1406
1 0 1 0
V1407
XXXX
V1500
1 2 3 4
V1400
0003
Table
V1500
5 6 7 8
Data Source
V1400
0004
V1500
4 3 4 3
V1400
0005
V15005 6 7 8
1
2
3
4
5
6
V1400
000 3
V1500
4 33 4
1
2
3
4
5
6
V1400
000 4
SP56 = OFF
SP5
6
SP56 = OFF
SP5
6
SP56
=
SP5
6
V1500
7777
V1400
0006
V1500
777 7
1
2
3
4
5
6
V1400
000 5
SP56 =
SP5
6
SP56 = OFF
SP5
6
SP56 = OFF
SP5
6
SP56 = OFF
SP5
6
SP56
= OFF
SP5
6
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
T
able
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 Execu tion
Scan N
Scan N+1
Scan N+2
Scan N+3