![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030692.webp)
652
Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Section 3-16
Number of Digits
Fifteen digits are effective for double-precision floating-point data.
Floating-point Data
The following data can be expressed by floating-point data:
• –
∞
• –1.79769313486232 x 10
308
≤
value
≤
–2.22507385850720 x 10
–308
• 0
• 2.22507385850720 x 10
–308
≤
value
≤
1.79769313486232 x 10
30
• +
∞
• Not a number (NaN)
Special Numbers
The formats for NaN,
±∞
, and 0 are as follows:
NaN*:
e = 2,047 and f
≠
0
+
∞
:
e = 2,047, f = 0, and s= 0
–
∞
:
e = 2,047, f = 0, and s= 1
0:
e = 0 and f = 0
*NaN (not a number) is not a valid floating-point number. Executing Double-
precision Floating-point instructions will not result in NaN.
Writing Floating-point
Data
When double-precision floating-point is specified for the data format in the I/O
memory edit display in the CX-Programmer, standard decimal numbers input
in the display are automatically converted to the double-precision floating-
point format shown above (IEEE754-format) and written to I/O Memory. Data
written in the IEEE754-format is automatically converted to standard decimal
format when monitored on the display.
It is not necessary for the user to be aware of the IEEE754 data format when
reading and writing double-precision floating-point data. It is only necessary to
remember that double-precision floating point values occupy four words each.
Data
No. of bits
Contents
s: sign
1
0: positive; 1: negative
e: exponent
11
The exponent (e) value ranges from 0 to 2,047.
The actual exponent is the value remaining after
1,023 is subtracted from e, resulting in a range
of –1,023 to 1,024. “e=0” and “e=2,047” express
special numbers.
f: mantissa
52
The mantissa portion of binary floating-point
data fits the format 2.0 > 1.f
≥
1.0.
−∞
−
1
0
+
∞
1
−
2.22507385850720
×
10-
308
−
1.79769313486232
×
10
308
2.22507385850720
×
10-
308
1.79769313486232
×
10
308
0
6362
5251
1615
3231
4847
f
n
s
e
n+3
n+2
n+1
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...