DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-94
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.
NOTE: The current HPP does not support real number entry with automatic conversion to the 32-bit
IEEE format. You must use DirectSOFT for this feature.
MULR
A aaa
DirectSOFT32 Display
LDR
R 7.0
X1
Load the real number 7.0
into the accumulator.
MULR
R 15.0
Multiply the accumulator
contents by the real number
15.0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 1 0 1 1 0 1 0 0 1 0
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
Acc.
4 2 D 2
0
0
0
0
V1400
V1401
Real Value
Copy the result in the accumulator
to V1400 and V1401.
OUTD
V1400
Implies 2 (exp 6)
133 -- 127 = 6
(Hex number)
Sign Bit
4
0
E 0
0 0
0
0
0
0
0
0
4
0
E 0
(MULR)
(Accumulator)
4
1
7
0
0 0
0
0
X
0
0
0
0
4
2 D 2
Acc.
7
(decimal)
x
1
5
1
0
5
1.101001 x 2 (exp 6) = 1101001. binary= 105 decimal
128 + 4 + 1 = 133
Exponent (8 bits)
Mantissa (23 bits)
Operand Data Type
DL06 Range
A
aaa
V-memory
V
See memory map
Pointer
P
See memory map
Real Constant
R
-3.438 to + -3.438
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.
SP71
On anytime the V-memory specified by a pointer (P) is not valid.
SP72
On anytime the value in the accumulator is an invalid floating point number.
SP73
On when a signed addition or subtraction results in an incorrect sign bit.
SP74
On anytime a floating point math operation results in an underflow error.
DS
Used
HPP Used
Direct
SOFT
Multiply Real (MULR)
The Multiply Real instruction multiplies a real number in
the accumulator with either a real constant or a real number
occupying two consecutive V-memory locations. The result
resides in the accumulator. Both numbers must be Real data type
(IEEE floating point format).