EasyManuals Logo

AutomationDirect DL205 User Manual

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
Page #288 background imageLoading...
Page #288 background image
DL205 User Manual, 4th Edition, Rev. D
5-64
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Load Real Number (LDR)
The Load Real Number instruction loads a real number
contained in two consecutive V-memory locations, or an
8-digit constant into the accumulator.
DirectSOFT allows you to enter real numbers directly,
by using the leading “R” to indicate a real number
entry. You can enter a constant such as Pi, shown in
the example to the right. To enter negative numbers,
use a minus (–) after the “R”.
For very large numbers or very small numbers, you can
use exponential notation. The number to the right is
5.3 million. The OUTD instruction stores it in V1400
and V1401.
These real numbers are in the IEEE 32-bit floating point format, so they occupy two V-memory
locations, regardless of how big or small the number may be! If you view a stored real number in
hex, binary, or even BCD, the number shown will be very difficult to decipher. Just like all
other number types, you must keep track of real number locations in memory, so they can be
read with the proper instructions later.
The previous example above stored a real number in V1400
and V1401. Suppose that now we want to retrieve that
number. Just use the Load Real with the V data type, as
shown to the right. Next we could perform real math on it,
or convert it to a binary number.
1
B
ENT
ENT
2
C
Handheld Programmer Keystrokes
STR
$
SHFT
ANDST
L
3
D
SHFT
JMP
K
1
B
ENT
SHFT
ANDST
L
3
D
RST
S
SET
X
SHFT
4
E
TMR
N
3
D
ENT
SHFT
3
D
ANDST
L
1
B
ANDST
L
2
C
ENT
SHFT
TMR
N
2
C
INST#
O
TMR
N
3
D
3
D
3
D
3
D
ENT
SHFT
TMR
N
2
C
INST#
O
TMR
N
3
D
3
D
ENT
2
C
2
C
SHFT
TMR
N
2
C
INST#
O
TMR
N
ENT
4
E
5
F
4
E
9
J
OUT
GX
SHFT
AND
V
2
C
0
A
0
A
ENT
0
A
A aaa
LDR
230
240
250-1
260
R3.14159
LDR
R5.3E6
LDR
V1400
OUTD
V1400
LDR
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
Real Constants 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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AutomationDirect DL205 and is the answer not in the manual?

AutomationDirect DL205 Specifications

General IconGeneral
BrandAutomationDirect
ModelDL205
CategoryController
LanguageEnglish

Related product manuals