DL205 User Manual, 4th Edition, Rev. B
5–162
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. Notice how the pointer automatically cycles from 0 to 6, and then starts over at 1
instead of 0. Also, notice how SP56 is affected by the execution. 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 STT instruction. This is not required,
but it makes it easier to see how the data source is copied into the table.
V1401 0 5 0 0
V1402 9 9 9 9
V1403 X X X X
V1404 X X X X
V1405 X X X X
V1406 X X X X
V1407 X X X X
Table
V1401 0 5 0 0
V1402 X X X X
V1403 X X X X
V1404 X X X X
V1405 X X X X
V1406 X X X X
V1407 X X X X
Table
V1401 0 5 0 0
V1402 X X X X
V1403 X X X X
V1404 X X X X
V1405 X X X X
V1406 X X X X
V1407 X X X X
Table
V1401 X X X X
V1402 X X X X
V1403 X X X X
V1404 X X X X
V1405 X X X X
V1406 X X X X
V1407 X X X X
0 6
1
2
3
4
5
Table
After STT Execution
After STT Execution
After STT Execution
Before STT Execution
Before STT Execution
Table Pointer (Automatically Incremented)
Table Pointer (Automatically Incremented)
V1500
0 5 0 0
Before STT Execution
After STT Execution
Scan N
1
2
3
4
5
Scan N+1
Scan N+5
Source
V1400
0 0 0 0
Table Pointer
V1500
0 5 0 0
0
1
2
3
4
5
Source
V1400
0 0 0 1
Table Pointer (Automatically Incremented)
V1500
9 9 9 9
0 6
1
2
3
4
5
Source
V1400
0 0 0 2
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
2 0 4 6
0 6
1
2
3
4
5
Source
V1400
0 0 0 6
Table
Before STT Execution
V1500
9 9 9 9
0 6
1
2
3
4
5
Source
V1400
0 0 0 1
Table Pointer
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
X X X X
V1407
X X X X
V1500
2 0 4 6
0 6
1
2
3
4
5
Source
V1400
0 0 0 5
Table Pointer
Table
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = ON
SP56
Table Pointer (Resets to 1, not 0)
Scan N+6
V1401 1 2 3 4
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
Source
V1400
0 0 0 1
Table
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
0 6
1
2
3
4
5
Source
V1400
0 0 0 6
Table Pointer
Table
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
6
0 6
until end of scan
or next instruction
that uses SP56
Example of Execution
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.