EasyManua.ls Logo

AutomationDirect DL205 - Page 323

Default Icon
598 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DL205 User Manual, 4th Edition, Rev. D
5-99
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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 conform to the
IEEE floating point format.
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
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 a valid floating point number.
SP73 On when a signed addition or subtraction results in a incorrect sign bit.
SP74 On anytime a floating point math operation results in an underflow error.
SP75 On when a real number instruction is executed and a non-real number was encountered.
ndar
dRLL
LDR
R15.0
X1
Load thereal number 15.0
into theaccumulator.
DIVR
R10.0
Dividethe accumulatorcontents
by thereal number 10.0.
0 0000000000000000 011111111000000
8 421842184218421
8 421842184218421
Acc.
3FC0 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
÷
00003FC0
Acc.
15
(decimal)
10
1
1.1x2(exp0)=1.1binary= 1.5 decimal64 +32+16 +8+4+2+1= 127
Exponent (8 bits)
÷
5.
DirectSOFT
Operand Data Type DL250-1 Range DL260 Range
A aaa aaa
V-memory V All (See page 3-55) All (See page 3-56)
Pointer P All V-mem (See page 3-55) All V-mem (See page 3-56)
Constant R
-3.402823E + 038 to
+ 3.402823E+038
-3.402823E + 038 to
+ 3.402823E+038
230
240
250-1
260
DS Used
HPP N/A

Table of Contents

Other manuals for AutomationDirect DL205

Related product manuals