EasyManuals Logo

AutomationDirect DL205 User Manual

Default Icon
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #286 background imageLoading...
Page #286 background image
DL205 User Manual, 4th Edition, Rev. D
5-62
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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 address + offset) is loaded into the lower 16 bits of the
accumulator. The upper 16 bits of the accumulator are set to 0.
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
230
240
250-1
260
Operand Data Type DL250-1 Range DL260 Range
A aaa aaa
V-memory V
All. See
memory map
All. See
memory map
Pointer P
All V-memory.
See memory map
All V-memory.
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.
000 0 001 5
Hexadecimal
001 5
Octal
2 5
The unused accumulator
bits are set to zero
V1500
Acc.
Octal
143 5
234 5
000 0 234 5
V
Octal
141 0
The unused accumulator
bits are set to zero
+
1 5
HEX Value in 1st
stack location
000000
15
Level 1
XXXXXX
XX
Level 2
XXXXXX
XX
Level 3
XXXXXX
XX
Level 4
XXXXXX
XX
Level 5
XXXXXX
XX
Level 6
XXXXXX
XX
Level 7
XXXXXX
XX
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
DS Used
HPP Used

Table of Contents

Other manuals for AutomationDirect DL205

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AutomationDirect DL205 and is the answer not in the manual?

AutomationDirect DL205 Specifications

General IconGeneral
BrandAutomationDirect
ModelDL205
CategoryController
LanguageEnglish

Related product manuals