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.
V
1401
0
500
V
1402
9
999
V
1403
X
XXX
V
1404
X
XXX
V
1405
X
XXX
V1406
XXXX
V1407
XXXX
T
able
V1401
0500
V1402
XXXX
V1403
XXXX
V1404
XXXX
V1405
XXXX
V1406
XXXX
V1407
XXXX
Table
V
1401
0
500
V
1402
X
XXX
V
1403 X
XXX
V
1404
X
XXX
V
1405
X
XXX
V1406
XXXX
V1407
XXXX
T
able
V1401
XXXX
V1402
XXXX
V1403
XXXX
V1404
XXXX
V1405
XXXX
V1406
XXXX
V1407
XXXX
06
1
2
3
4
5
Table
After STT Execution
After STT Execution
A
fter STT Execution
Befor e STT Execution
Befor e STT Execution
Table Pointer (Automatical ly Increm ented)
T
able Poi nter (Automati cal l y Increm ented)
V1500
050 0
Befor e STT Execution After STT Executi onScan N
1
2
3
4
5
Scan N+1
Scan N+5
Source
V1400
000 0
Table Pointer
V1500
0500
0
1
2
3
4
5
Source
V1400
0001
Table Pointer (Automatical ly Increm ented)
V
1500
9
999
0
6
1
2
3
4
5
S
ource
V
1400
0
002
V1401
0500
V1402 9999
V1403
3074
V1404
8989
V1405 1010
V1406
2046
V1407
XXXX
V15002046
06
1
2
3
4
5
Source
V14000006
Table
B
efor e STT Executi on
V
1500
9
99 9
0
6
1
2
3
4
5
S
ource
V
1400
0
00 1
T
able Poi nter
V1401
0500
V1402 9999
V1403
3074
V1404
8989
V1405 1010
V1406
XXXX
V1407
XXXX
V1500204 6
06
1
2
3
4
5
Source
V1400000 5
Table PointerTable
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = ON
SP56
Table Pointer (R esets to 1, not 0)
Scan N+6
V1401
1234
V1402 9999
V1403
3074
V1404
8989
V1405
1010
V1406
2046
V1407 XXXX
V1500
1234
1
2
3
4
5
Source
V1400
0001
Table
V1401
0500
V1402 9999
V1403
3074
V1404
8989
V1405
1010
V1406
2046
V1407 XXXX
V1500
123 4
06
1
2
3
4
5
Source
V1400
000 6
Table PointerTable
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
SP56 = OFF
SP56
6
06
until end of scan
or next instr uction
that uses SP56
Example of Execution
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.