DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-97
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.
DIVR
A aaa
DirectSOFT32 Display
LDR
R15.
0
X1
Load thereal num ber 15.0
into theaccumulator.
DIVR
R10.0
Dividethe accumulatorcontents
by thereal number 10.0.
0 0000000000000000 011111111000000
8 421842184218421
8 421842184218421
Acc.
3FC 0 0000
V1400V1401
Real Value
Copy theresultinthe accumulator
to V1400 and V1401
.
OUTD
V1400
Implies2(exp 0)
127 -- 127 =0
(Hex number)
Mantissa (23bits)Sign Bit
4170 0 000
00004170
(DIVR)
(Accumulator)
4120 0 000
¸
00003FC 0
Acc.
15
(decimal)
10
1
1.1x2(exp0)=1.1binary= 1.5 decimal64 +32+16 +8+4+2+1=127
Exponent (8 bits)
¸
5.
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.
SP74 On anytime a floating point math operation results in an underflow error.
Operand Data Type DL06 Range
A
aaa
V-memory V See memory map
Pointer P See memory map
Real Constant R -3.402823E + 38 to + -3.402823E + 38
DS Used
HPP
N/A
DirectSOFT
Divide Real (DIVR)
The Divide Real instruction divides a real number in the
accumulator by 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).