Standard
RLL
Instructions
5--51
Standard RLL Instructions
Accumulator / Stack Load and Output Data Instructions
DL105 PLC User Manual, 3rd Edition
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.
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
Acc.
0 0 0 0
4 5 4 5
Previous Acc. value
Current Acc. value
0 0 0 0 3 7 9 2
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
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
SOFT
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
Pop Instruction
Continued
Summary of Contents for DL105
Page 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Page 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Page 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Page 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Page 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...