DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-55
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Using Pointers
Many of the DL06 series instructions will allow V-memory pointers as operands
(commonly known as indirect addressing). Pointers allow instructions to obtain data from
V-memory locations referenced by the pointer value.
NOTE: DL06 V-memory addressing is in octal. However, the pointers reference a V-memory location
with values viewed as HEX. Use the Load Address (LDA) instruction to move an address into the
pointer location. This instruction performs the Octal to Hexadecimal conversion automatically.
In the following example we are using a pointer operand in a Load instruction. V-memory
location 2000 is being used as the pointer location. V2000 contains the value 440 which the
CPU views as the Hex equivalent of the Octal address V-memory location V2100. The CPU
will copy the data from V2100, which (in this example) contains the value 2635, into the
lower word of the accumulator.
Acc.
POP the 1st value on the stack into the
accumulator and move stack values
up one location
POP
X1
POP
POP
V2000
4 5 4 5
X X X X X X X
X X X X
Acc. 0
0
0
0
4
5
4 5 4 5
Previous Acc. value
Current Acc. value
0
0
0
0
3
7
9
2
Level 1
0
0
0
0
7
9
3
0
Level 2
X X X X X X X X
Level 3
X X X X X X X X
Level 4
X X X X X X X X
Level 5
X X X X X X X X
Level 6
X X X X X X X X
Level 7
X X X X X X X X
Level 8
Accumulator Stack
0
0
0
0
7
9
3
0
Level 1
X X X X X X X X
Level 2
X X X X X X X X
Level 3
X X X X X X X X
Level 4
X X X X X X X X
Level 5
X X X X X X X X
Level 6
X X X X X X X X
Level 7
X X X X X X X X
Level 8
Accumulator Stack
X X X X X X X X
Level 1
X X X X X X X X
Level 2
X X X X X X X X
Level 3
X X X X X X X X
Level 4
X X X X X X X X
Level 5
X X X X X X X X
Level 6
X X X X X X X X
Level 7
X X X X X X X X
Level 8
Accumulator Stack
POP the 1st value on the stack into the
accumulator and move stack values
up one location
POP the 1st value on the stack into the
accumulator and move stack values
up one location
OUT
V2000
OUT
V2001
Acc.
V2001
3 7 9 2
0
0
0
0
4
5
4
5
4 5 4 5
Acc. 0
0
0
0
3
7
9
2
3 7 9 2
Previous Acc. value
Current Acc. value
Acc.
V2002
7 9 3 0
0
0
0
0
3
4
6
0
3 7 9 2
Acc. X X X X 7 9 3 0
7 9 3 0
Previous Acc. value
Current Acc. value
OUT
V2002
Copy data from the accumulator to
V2000
Copy data from the accumulator to
V2001.
Copy data from the accumulator to
Copy data from the accumulator to
V2002