DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-67
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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
(V1525). The value 3544 will be placed onto the stack when the LDA instruction is executed.
Remember, two consecutive LD instructions places the value of the first load instruction onto
the stack. The LDA instruction converts octal 25 to HEX 15 and places the value in the
accumulator. The OUTX instruction outputs the value 3544 which resides in the first level of
the accumulator stack to V1525.
aaa
A
O UT X
2
5
X1
OUTX
0
0
0
0
3
5
4
4
Constant
3
5
4
4
Acc.
3
5
4
4
0
0
0
0
0
0 1
5
The unused accumulator
bits are set to zero
0
0 0
0
3
5 4
4
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
0
0
1
5
2
5
DirectSOFT32
V 1
5
2
5
1 5
0
0
V
+
=
The unused accumulator
bits are set to zero
Acc.
Octal
HEX
Octal
Octal
Octal
The hex 15 converts
to 25 octal, which is
added to the base
address of V1500 to yield
the final answer
V1525
LD
LDA
K3544
O25
V1500
Load the accumulator with
the value 3544
Load the HEX equivalent to
octal 25 into the lower 16 bits
of the accumulator. This is the
offset for the Out Indexed
instruction, which determines
the final destinaltion address
Copy the value in the first
level of the stack to the
offset address 1525
(V1500+25)
Accumulator Stack
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
SHFT
1
B
ENT
ENT
2
C
0
A
ENT
1
B
5
F
0
A
0
A
PREV
ANDST
L
3
D
ENT
5
F
3
D
5
F
4
E
4
E
OUT
GX
SHFT
SET
X
Operand Data Type
DL06 Range
A
aaa
V-memory
V
See memory map
Pointer
P
See memory map
Discrete Bit Flags
Description
SP53
On if CPU cannot solve the logic.
DS
Used
HPP Used
Direct
SOFT
Out Indexed (OUTX)
The OUTX instruction is a 16 bit instruction. It copies a 16 bit
or 4 digit value from the first level of the accumulator stack to a
source address offset by the value in the accumulator(V-memory
+ offset).This instruction interprets the offset value as a HEX
number. The upper 16 bits of the accumulator are set to zero.