EasyManua.ls Logo

AutomationDirect DL205 - Page 314

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-90
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Add Real (ADDR)
Add Real is a 32-bit instruction that adds a real number, which is
either two consecutive V-memory locations or a 32-bit constant,
to a real number in the accumulator. Both numbers must conform
to the IEEE floating point format. The result is a 32-bit real
number that resides in the accumulator.
NOTE: Status flags are valid only until another instruction uses the same flag.
NOTE
1
: 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.
NOTE
2
: If the value being added to a real number is 16,777,216 times smaller than the real number, the
calculation will not work.
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 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
ADDR
Aaa
a
ADDR
A aaa
230
240
250-1
260
LDR
R7.0
X1
Load thereal number 7.0
into theaccumulator
ADDR
R15.0
Addthe real number 15.0to
theaccumulatorcontents,
whichisinreal number
format.
0 0000000000000000 100000110110000
8 421842184218421
8 421842184218421
Acc.
41 B0 0000
V1400V1401
Real Value
Copy theresultinthe accumulator
to V1400 and V1401.
OUTD
V1400
Implies2(exp 4)
131 -- 127 =4
(Hex number)
Mantissa (23bits)Sign Bit
40E00000
000040E0
(ADDR)
(Accumulator)
4170 0 000+
000041B0
Acc.
7
(decimal)
+15
22
1.011x2(exp4)=10110.binary= 22 decimal
128 +2+1= 131
Exponent (8 bits)
Direct
SOFT
Operand Data Type DL250-1 Range DL260 Range
A aaa aaa
V-memory V
All. See
memory map
All. See
memory map
Pointer P
All V-memory.
See memory map
All V-memory.
See memory map
Constant R
-3.402823E+038 to
+ 3.402823E+038
-3.402823E+038 to
+ 3.402823E+038
DS Used
HPP N/A

Table of Contents

Other manuals for AutomationDirect DL205

Related product manuals