Automationdirect.com DirectLOGIC DL205 Series User Manual page 287

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Accumulator/Stack Load and Output Data
Pop (POP)
1
The Pop instruction moves the value from the first level
230
of the accumulator stack (32 bits) to the accumulator
240
and shifts each value in the stack up one level. In the
2
250-1
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
260
3
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
DS Used
accumulator and outputs the value to V2002. Please note if the value in the stack were greater
4
HPP Used
than 16 bits (4 digits) the Out Double instruction would be used and two V-memory
locations for each Out Double must be allocated.
5
Discrete Bit Flags
SP63
6
DirectSOFT
7
8
9
10
11
12
13
14
A
Handheld Programmer Keystrokes
B
C
D
5–70
DL205 User Manual, 4th Edition, Rev. B
On when the result of the instruction causes the value in the accumulator to be zero.
C0
POP
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
OUT
V2000
Copy the value in the lower 16 bits of
the accumulator to V2000
POP
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
OUT
V2001
Copy the value in the lower 16 bits of
the accumulator to V2001
POP
Pop the 1st. value on the stack into the
accumulator and move stack values
up one location
OUT
V2002
Copy the value in the lower 16 bits of
the accumulator to V2002
$
C
A
SHFT
ENT
STR
2
0
P
O
P
SHFT
SHFT
ENT
CV
INST#
CV
GX
V
C
A
SHFT
OUT
AND
2
P
O
P
SHFT
SHFT
ENT
CV
INST#
CV
GX
V
C
A
SHFT
OUT
AND
2
P
O
P
SHFT
SHFT
ENT
CV
INST#
CV
GX
V
C
A
SHFT
OUT
AND
2
Description
Previous Acc. value
Acc.
X
X
X
X
X
X
Current Acc. value
Acc. 0
0
0
0
4
4
4
V2000
Previous Acc. value
0
0
0
0
4
Acc.
4
Current Acc. value
Acc. 0
0
0
0
3
3
V2001
Previous Acc. value
Acc.
0
0
0
0
3
Current Acc. value
Acc. 0
0
0
0
7
7
V2002
A
A
ENT
0
0
0
A
B
ENT
0
0
1
A
C
ENT
0
0
2
POP
X
X
X
X
X
X
Accumulator Stack
Level 1
5
5
4
4
5
5
0
0
0
0
0
0
Level 2
0
0
0
0
Level 3
X
X
X
X
X
X
X
X
Level 4
Level 5
X
X
X
X
5
4
5
Level 6
X
X
X
X
Level 7
X
X
X
X
X
X
X
X
Level 8
5
4
5
5
4
5
Accumulator Stack
Level 1
0
0
0
0
7
9
2
X
X
X
X
Level 2
X
X
X
X
Level 3
Level 4
X
X
X
X
Level 5
X
X
X
X
7
9
2
X
X
X
X
Level 6
X
X
X
X
Level 7
Level 8
X
X
X
X
7
9
2
Accumulator Stack
9
3
0
Level 1
X
X
X
X
Level 2
X
X
X
X
X
X
X
X
Level 3
X
X
X
X
Level 4
Level 5
X
X
X
X
9
3
0
Level 6
X
X
X
X
X
X
X
X
Level 7
X
X
X
X
Level 8
3
7
9
2
7
9
3
0
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
7
9
3
0
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
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