DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-114
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
NOTE: Status flags are valid only until another instruction uses the same flag.
In the following example, when X1 is on, the value in V1400 and V1401 will be loaded into the
accumulator using the Load Double instruction. The value in V1420 and V1421 is loaded into
the accumulator using the Load Double instruction, pushing the value previously loaded in the
accumulator onto the accumulator stack. The binary value in the first level of the accumulator
stack is added with the binary value in the accumulator using the Add Stack instruction. The
value in the accumulator is copied to V1500 and V1501 using the Out Double instruction.
ADDBS
St
an
da
rd
RL
L
Direct
S OF T 32 Display
LDD
V1400
X1
Load the value in V1400 and
V1401 into the accumulator
LDD
V1420
Load the value in V1420 and
V1421 into the accumulator
OUT D
V1500
C opy the value in the
accumulator to V1500
and V1501
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
0
0
3
A 5
0
C
6
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
ADDBS
Add the binary value in the
accumulator with the binary
value in the first level of the
accumulator stack
Acc.
V1400
5
0
C
6
0
0
3
A
5
0
C
6
V1401
0
0
3
A
Acc.
V1420
B
0
5
F
0
0
1
7
B
0
5
F
V1421
0
0
1
7
Accumulator stack
after 1st LDD
Accumulator stack
after 2nd LDD
Acc.
0
0
5
2
0
1
2
5
0
0
5
2
0
1
2
5
Handheld Programmer Keystrokes
SHFT
ANDST
L
3
D
STR
$
SHFT
3
D
3
D
OUT
GX
SHFT
3
D
1
B
5
F
0
A
0
A
ENT
1
B
ENT
1
B
4
E
0
A
0
A
ENT
ENT
SHFT
ANDST
L
3
D
1
B
4
E
2
C
0
A
ENT
3
D
1
B
RST
S
3
D
0
A
Discrete Bit Flags
Description
SP63
On when the result of the instruction causes the value in the accumulator to be zero.
SP66
On when the 16-bit addition instruction results in a carry.
SP67
On when the 32 bit addition instruction results in a carry.
SP70
On anytime the value in the accumulator is negative.
SP73
On when a signed addition or subtraction results in an incorrect sign bit.
DS
Used
HPP Used
Direct
SOFT
Add Binary Top of Stack (ADDBS)
Add Binary Top of Stack instruction is a 32-bit instruction that
adds the binary value in the accumulator with the binary value in
the first level of the accumulator stack. The result resides in the
accumulator. The value in the first level of the accumulator stack is
removed and all stack values are moved.