Chapter 5: Standard RLL Instructions
Load Address (LDA)
1
1
The Load Address instruction is a 16 bit instruction. It converts
DS5
Used
any octal value or address to the HEX equivalent value and
HPP
Used
2
2
loads the HEX value into the accumulator. This instruction is
useful when an address parameter is required since all addresses
for the DL05 system are in octal.
3
3
4
4
Octal Address ⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠⸠O
5
5
Discrete Bit Flags
6
6
NOTE: Two consecutive Load instructions will place the value of the first load instruction onto the
7
7
accumulator stack.
8
8
In the following example when X1 is on, the octal number 40400 will be converted to a HEX
4100 and loaded into the accumulator using the Load Address instruction. The value in the
lower 16 bits of the accumulator is copied to V2000 using the Out instruction.
9
9
DirectSOFT 5
10
10
Direct SOFT32
X1
11
11
12
12
13
13
14
14
A
a
Handheld Programmer Keystrokes
B
b
$
STR
C
c
SHFT
E
4
D
D
GX
OUT
5-56
DL05 Micro PLC User Manual, 6th Edition, Rev. D
Operand Data Type
SP70
On anytime the value in the accumulator is negative.
SP76
On when the value loaded into the accumulator by any instruction is zero.
LDA
O 40400
Load The HEX equivalent to
the octal number into the
lower 16 bits of the
accumulator
OUT
V2000
Copy the value in lower 16
bits of the accumulator to
V2000
B
ENT
1
L
D
A
ANDST
3
0
A
E
A
A
0
4
0
0
V
C
SHFT
AND
2
Description
4
0
ENT
A
A
A
ENT
0
0
0
LDA
O aaa
DL05 Range
aaa
See memory map
Octal
Hexadecimal
4
0
0
4
The unused accumulator
bits are set to zero
0
0
0
0
4
Acc.
4
1
0
0
1
0
0
1
0
0
V2000
Need help?
Do you have a question about the DL05 and is the answer not in the manual?