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 #287 background imageLoading...
Page #287 background image
DL205 User Manual, 4th Edition, Rev. B
5–70
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
Pop (POP)
The Pop instruction moves the value from the first level
of the accumulator stack (32 bits) to the accumulator
and shifts each value in the stack up one level. 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 Out Double instruction would be used and two V-memory
locations for each Out Double must be allocated.
POP
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
4545
XXXXXXXXXXXX
Acc.
000045454545
Previous Acc. value
Current Acc. value
00003792
00
Level 1
00007930
Level 2
XXXXXXXX
Level 3
XXXXXXXX
Level 4
XXXXXXXX
Level 5
XXXXXXXX
Level 6
XXXXXXXX
Level 7
XXXXXXXX
Level 8
Accumulator Stack
00007930
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
XXXXXXXX
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
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
3792
00004545
4545
Acc.
0000
3792
Previous Acc. value
Current Acc. value
Acc.
V2002
7930
0000 3792
Acc.
0000 7930
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
DirectSOFT
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
Discrete Bit Flags Description
SP63 On when the result of the instruction causes the value in the accumulator to be zero.
þ
þ
þ
þ
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