Relays, Memory Areas and Constants
1 - 74
1.4.3
Floating Point Type Real Numbers (f)
Available PLC
FP0, FP0R, FP
−
e, FP
Σ
, FP
−
X, FP2, FP2SH and FP10SH
Range of floating point type real numbers that can be used in operations
The range of floating point type real numbers that can be stored in the memory area is
as noted below.
Range of negative numbers:
−
3.402823 x 10
38
to
−
1.175494 x 10
−
38
Range of positive numbers: 1.175494 x 10
−
38
to 3.402823 x 10
38
Even if the results of the real
−
number operation involve multiple digits, the actual
processing is effective for a mantissa of up to 7 digits.
Example:
If the actual operation result were 0.33333333 ...,
the stored data would consist of the value 0.3333333.
Area in which floating point type real numbers are stored
With floating point type real number operation instructions, the area in which data
converted to a real number is stored consists of two words (32 bits) per data element.
As a result, in transmission instructions such as that used to send real
−
number data to
a storage area and in other operations, data should be moved in units of two words (32
bits).
Example 1: If DT0 is specified as the area in which floating point type real
number data is to be stored, the data will be written to DT0 and
DT1.
DT10
DT11
(f1.0)
÷
DT20
DT21
(f2.0)
DT0
DT1
(f0.5)
F313 F%, DT10, DT20, DT0
The operation results will be stored in DT0 and DT1.
Storage destination
Example 2: When floating point type real number data stored in DT0 and DT1
is being sent to destination, the 32
−
bit data sending instruction
F1 (DMV) instruction should be used.
DT0
DT1
(f1.234)
F1 DMV, DT0, DT100
Transmission source
DT100
DT101
(f1.234)
Transmission source
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-X
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...