Chapter 5: Standard RLL Instructions - Table
The following diagram shows the scan-by-scan results of the execution for our example
1
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
2
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.
3
Example of Execution
Scan N
4
5
6
7
Scan N+1
8
9
10
11
Scan N+5
12
13
14
A
Scan N+6
B
C
D
5–162
DL205 User Manual, 4th Edition, Rev. B
Before STT Execution
Table
Table Pointer
0
0
0
V1401
X
X
X
X
0 6
X
X
X
X
1
1
V1402
Source
X
X
X
X
2
2
V1403
0
5
0
X
X
X
X
3
3
V1404
X
X
X
X
4
4
V1405
SP56
V1406
X
X
X
X
5
5
X
X
X
X
V1407
.
.
Before STT Execution
Table
Table Pointer
0
5
0
0
V1401
0 6
0
0
0
X
X
X
X
V1402
1
Source
V1403
X
X
X
X
2
9
9
9
X
X
X
X
V1404
3
X
X
X
X
V1405
4
SP56
V1406
X
X
X
X
5
X
X
X
X
V1407
.
.
Before STT Execution
Table
Table Pointer
0
5
0
0
0 6
0
0
0
V1401
V1402
9
9
9
9
1
Source
3
0
7
4
2
V1403
2
0
4
8
9
8
9
3
V1404
V1405
1
0
1
0
4
X
X X
X
5
SP56
V1406
X
X X
X
V1407
.
.
Before STT Execution
Table
Table Pointer
0
0
0
0
5
0
0
0 6
V1401
V1402
9
9
9
9
1
Source
3
0
7
4
2
V1403
1
2
3
8
9
8
9
3
V1404
1
0
1
0
4
V1405
2
0
4
6
5
SP56
V1406
V1407
X
X X
X
.
.
After STT Execution
Table
0
V1400
V1401
0
5
X
X
V1402
X
X
V1403
0
V1500
X
X
V1404
X
X
V1405
V1406
X
X
SP56 = OFF
X
X
V1407
.
.
After STT Execution
Table
1
V1400
V1401
0
5
9
9
V1402
X
X
V1403
9
V1500
V1404
X
X
X
X
V1405
X
X
V1406
SP56 = OFF
X
X
V1407
.
.
.
.
.
After STT Execution
Table
5
V1400
0
5
V1401
V1402
9
9
3
0
V1403
6
V1500
8
9
V1404
V1405
1
0
2
0
V1406
SP56 = OFF
X
X
V1407
.
.
After STT Execution
Table
6
V1400
1
2
V1401
V1402
9
9
3
0
V1403
4
V1500
8
9
V1404
1
0
V1405
2
0
V1406
SP56 = OFF
V1407
X
X
.
.
Table Pointer (Automatically Incremented)
0
0
0
1
0
0
0
6
V1400
X
X
1
Source
X
X
2
0
5
0
0
V1500
X
X
3
X
X
4
SP56
X
X
5
SP56 = OFF
X
X
Table Pointer (Automatically Incremented)
0 6
0
0
0
2
V1400
0
0
9
9
1
Source
2
X
X
9
9
9
9
V1500
3
X
X
X
X
4
SP56
5
X
X
SP56 = OFF
X
X
Table Pointer (Automatically Incremented)
0
0
0 6
0
0
0
6
V1400
9
9
1
Source
7
4
2
2
0
4
6
V1500
8
9
3
1
0
4
4
6
5
SP56
SP56 = ON
X
X
until end of scan
or next instruction
that uses SP56
Table Pointer (Resets to 1, not 0)
0
0
0
1
3
4
0 6
V1400
9
9
1
Source
7
4
2
1
2
3
4
V1500
8
9
3
1
0
4
4
6
5
SP56
SP56 = OFF
X
X
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?