DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-130
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
100000000
s
accumulator
10’s complement value
In the following example when X1 is on, the value in V2000 and V2001 is loaded into the
accumulator. The 10’s complement is taken for the 8 digit accumulator using the Ten’s
Complement instruction. The value in the accumulator is copied to V2010 and V2011 using
the Out Double instruction.
BC DC PL
3
D
Handheld Programmer Keystrokes
Direct
S OF T 32
LDD
V2000
X1
Load the value in V2000 and
V2001 into the accumulator
BC DC PL
Takes a 10’s complement of
the value in the accumulator
OUT D
V2010
C opy the value in the
accumulator to V2010 and
V2011
Acc.
V2000
0
0
8
7
0
0
0
0
0
0
8
7
V2001
0
0
0
0
V2010
Acc.
9
9
1
3
9
9
9
9
9
9
1
3
V2011
9
9
9
9
S T R
$
1
B
E NT
S HF T
ANDS T
L
3
D
3
D
2
C
0
A
0
A
0
A
E NT
S HF T
E NT
OUT
GX
S HF T
2
C
0
A
1
B
0
A
E NT
1
B
2
C
3
D
2
C
C V
P
ANDS T
L
DS
Used
HPP Used
Direct
SOFT
Ten’s Complement (BCDCPL)
The Ten’s Complement instruction takes the 10’s complement
(BCD) of the 8 digit accumulator. The result resides in the
accumulator. The calculation for this instruction is: