DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-93
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 constant Kbc614e hex will be loaded into the
accumulator. When converted to BCD the number is ”12345678”. That number is stored in
V1400 and V1401. After loading the constant K2 into the accumulator, we multiply it times
12345678, which gives us 24691356.
MULD
A aaa
Operand Data Type
DL06 Range
A
aaa
V-memory
V
See memory map
Pointer
P
See memory map
Discrete Bit Flags
Description
SP63
On when the result of the instruction causes the value in the accumulator to be zero.
SP70
On anytime the value in the accumulator is negative.
SP75
On when a BCD instruction is executed and a NON–BCD number was encountered.
Direct SOFT32 Display
LDD
Kbc614e
X1
Load the hex equivalent
of 12345678 decimal into
the accumulator.
BCD
Convert the value to
BCD format. It will
occupy eight BCD digits
(32 bits).
OUTD
V1400
Output the number to
V1400 and V1401 using
the OUTD instruction.
3 5
6
2
4 6
9
6 7
8
(Accumulator)
1
2 3
4
5 6 7
8
1
(Accumulator)
V1402
1
5
V1400
3 5
6
V1403
2
4 6
9
2
Acc.
LD
K2
Load the constant K2
into the accumulator.
MULD
V1400
Multiply the accumulator
contents (2) by the
8-digit number in V1400
and V1401.
OUTD
V1402
Move the result in the
accumulator to V1402
and V1403 using the
OUTD instruction.
2 3
4
1
V1401
X
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
SHFT
ORST
M
ISG
U
ANDST
L
OUT
GX
SHFT
3
D
1
B
ENT
6
G
1
B
4
E
ENT
ENT
ENT
3
D
PREV
SHFT
1
B
2
C
SHFT
SHFT
4
E
SHFT
1
B
2
C
3
D
OUT
GX
SHFT
3
D
1
B
4
E
0
A
ENT
0
A
ENT
SHFT
ANDST
L
3
D
PREV
ENT
2
C
3
D
1
B
4
E
0
A
0
A
1
B
4
E
0
A
2
C
DS
Used
HPP Used
Direct
SOFT
Multiply Double (MULD)
Multiply Double is a 32-bit instruction that multiplies the 8-digit
BCD value in the accumulator by the 8-digit BCD value in the
two consecutive V-memory locations specified in the instruction.
The lower 8 digits of the results reside in the accumulator. Upper
digits of the result reside in the accumulator stack.