Automationdirect.com DirectLOGIC DL205 Series User Manual page 285

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Accumulator/Stack Load and Output Data
Out Indexed (OUTX)
1
The Out Indexed instruction is a 16-bit instruction. It
230
copies a 16-bit or 4-digit value from the first level of the
240
accumulator stack to a source address offset by the value in
2
the accumulator(V-memory + offset).This instruction
250-1
interprets the offset value as a HEX number. The upper 16
260
3
bits of the accumulator are set to zero.
DS
Used
4
HPP Used
5
V-memory
Pointer
6
In the following example, when X1 is on, the constant value 3544 is loaded into the
accumulator. This is the value that will be output to the specified offset V-memory location
7
(V1525). The value 3544 will be placed onto the stack when the Load Address instruction is
executed. Remember, two consecutive Load instructions places the value of the first load
8
instruction onto the stack. The Load Address instruction converts octal 25 to HEX 15 and
places the value in the accumulator. The Out Indexed instruction outputs the value 3544
which resides in the first level of the accumulator stack to V1525.
9
DirectSOFT
10
X1
11
12
13
14
A
B
C
D
5–68
DL205 User Manual, 4th Edition, Rev. B
Operand Data Type
LD
K3544
Load the accumulator with
the value 3544.
LDA
O25
Load the HEX equivalent to
octal 25 into the lower 16 bits
of the accumulato r. This is the
offset for the Out Indexed
instruction, which determines
the final destinaltion address.
OUTX
V1500
Copy the value in the first
level of the stack to the
offset address V1525
(V1500+25).
Handheld Programmer Keystrokes
$
B
ENT
STR
1
L
D
SHFT
PREV
ANDST
3
L
D
A
SHFT
ANDST
3
0
GX
X
B
SHFT
OUT
SET
DL250-1 Range
A
aaa
All. See
V
memory map
All V-memory.
P
See memory map
The unused accumulator
bits are set to zero.
Acc.
0
0
0
0
Octal
2
5
The unused accumulator
bits are set to zero.
0
0
0
0
Acc.
Octal
Octal
2
5
=
V
1
5
0
0
+
V 1
The hex 15 converts
to 25 octal, which is
added to the base
address of V1500 to yield
the final destination.
D
F
E
E
3
5
4
4
F
C
ENT
2
5
F
A
A
ENT
1
5
0
0
O UT X
DL260 Range
memory map
All V-memory.
See memory map
Constant
3
5
4
4
3
5
4
4
HEX
0
0
1
5
0
0
1
5
Octal
5
2
5
0
Level 1
3
5
4
4
Level 2
X
V1525
X
Level 3
Level 4
X
X
Level 5
Level 6
X
X
Level 7
ENT
Level 8
X
A
aaa
aaa
All. See
Accumulator Stack
0
0
0
3
5
4
4
X X
X
X
X X
X
X X
X
X
X X
X
X X
X
X
X X
X
X X
X
X
X X
X
X X
X
X
X X
X
X X
X
X
X X
X
X X
X
X
X X
X

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents

Save PDF