DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-66
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Pop Instruction (cont’d)
In the example below, when C0 is on, the value 4545 that was on top of the stack is moved
into the accumulator using the Pop instruction The value is output to V2000 using the OUT
instruction. The next Pop moves the value 3792 into the accumulator and outputs the value
to V2001. The last Pop moves the value 7930 into the accumulator and outputs the value to
V2002. Please note if the value in the stack were greater than 16 bits (4 digits) the OUTD
instruction would be used and 2 V-memory locations for each OUTD must be allocated.
Handheld Programmer Keystrokes
Acc.
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
POP
C0
POP
POP
V2000
4 5 4 5
X X X X X X X X
X X X X
Acc. 0
0
0
0
4
5
4
5
4 5 4 5
Previous Acc. value
Current Acc. value
0
0
0
0
3
7
9
2
0
0
Level 1
0
0
0
0
7
9
3
0
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
Accumulator Stack
0
0
0
0
7
9
3
0
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
Accumulator Stack
X X X X X X X X
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
Accumulator Stack
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
OUT
V2000
OUT
V2001
Acc.
V2001
3 7 9 2
0
0
0
0
4
5
4
5
4 5 4 5
Acc. 0
0
0
0
3 7 9 2
Previous Acc. value
Current Acc. value
Acc.
V2002
7 9 3 0
0
0
0
0
3 7 9 2
Acc. 0
0
0
0
7 9 3 0
Previous Acc. value
Current Acc. value
OUT
V2002
Copy the value in the lower 16 bits of
the accumulator to V2000
Copy the value in the lower 16 bits of
the accumulator to V2001
Copy the value in the lower 16 bits of
the accumulator to V2002
Direct SOFT32
STR
$
SHFT
2
C
0
A
ENT
SHFT
CV
P
INST#
O
CV
P
ENT
OUT
GX
SHFT
AND
V
2
C
0
A
0
A
ENT
0
A
SHFT
CV
P
INST#
O
CV
P
ENT
OUT
GX
SHFT
AND
V
2
C
0
A
ENT
0
A
1
B
SHFT
CV
P
INST#
O
CV
P
ENT
OUT
GX
SHFT
AND
V
2
C
0
A
ENT
0
A
2
C
SHFT
SHFT
SHFT
Direct
SOFT