EasyManuals Logo

Automationdirect.com DirectLOGIC DL205 Series User Manual

Automationdirect.com DirectLOGIC DL205 Series
587 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 #279 background imageLoading...
Page #279 background image
DL205 User Manual, 4th Edition, Rev. B
5–62
Chapter 5: Standard RLL Instructions - Accumulator/Stack Load and Output Data
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 1st. 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 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.
0000 001 5
Hexadecimal
001 5
Octal
2 5
The unused accumulator
bits are set to zero
V1500
Acc.
Octal
1 4 3 5
2 3 4 5
0000 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
0000001 5
Level 1
XXXXXXXX
Level 2
XXXXXXXX
Level 3
XXXXXXXX
Level 4
XXXXXXXX
Level 5
XXXXXXXX
Level 6
XXXXXXXX
Level 7
XXXXXXXX
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
ý
ý
þ
þ
230
240
250-1
260
DS Used
HPP Used

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Automationdirect.com DirectLOGIC DL205 Series and is the answer not in the manual?

Automationdirect.com DirectLOGIC DL205 Series Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDirectLOGIC DL205 Series
CategoryController
LanguageEnglish

Related product manuals