DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-61
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Helpful Hint:
— The Load Address instruction can be used to convert an octal address to a
HEX address and load the value into the accumulator.
NOTE: Two consecutive Load instructions will place the value of the first load instruction onto the
accumulator stack.
In the following example, when X1 is on, the HEX equivalent for octal 25 will be loaded into
the accumulator (this value will be placed on the stack when the Load Accumulator Indexed
instruction is executed). V-memory location V1410 will be added to the value in the first level
of the stack and the value in this location (V1435 = 2345) is loaded into the lower 16 bits of
the accumulator using the Load Accumulator Indexed instruction. The value in the lower 16
bits of the accumulator is output to V1500 using the Out instruction.
A aaa
LDX
Operand Data Type
DL06 Range
A
aaa
aaa
V-memory
V
See memory map
See memory map
Pointer
P
See memory map
See memory map
Copy the value in the lower
16 bits of the accumulator
to V1500
LDA
O 25
X1
LDX
V1410
OUT
V1500
Acc. 0
0
0
0
0
0
1
5
Hexadecimal
0
0
1
5
Octal
2
5
The unused accumulator
bits are set to zero
V1500
Acc.
Octal
1
4
3
5
2
3
4
5
0
0
0
0
2
3
4
5
V
Octal
1
4
1
0
The unused accumulator
bits are set to zero
+
1
5
HEX Value in 1st
stack location
0
0
0
0 0
0
1
5
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
V
=
Load The HEX equivalent to
octal 25 into the lower 16
bits of the accumulator
Move the offset to the stack.
Load the accumulator with
the address to be offset
The value in V1435
is 2345
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
SHFT
1
B
ENT
2
C
0
A
ENT
1
B
5
F
0
A
0
A
PREV
ANDST
L
3
D
ENT
5
F
OUT
GX
SET
X
1
B
4
E
1
B
0
A
PREV
PREV
ENT
Discrete Bit Flags
Description
SP53
On when the pointer is outside of the available range.
SP70
On anytime the value in the accumulator is negative.
SP76
On when any instruction loads a value of zero into the accumulator.
DS
Used
HPP Used
Load Accumulator Indexed (LDX)
Load Accumulator Indexed is a 16-bit instruction that specifies
a source address (V-memory) which will be offset by the value
in the first stack location. This instruction interprets the value
in the first stack location as HEX. The value in the offset address
(source a offset) is loaded into the lower 16 bits of the
accumulator. The upper 16 bits of the accumulator are set to 0.