Omron CS1G/H-CPUxxH Instructions Manual page 592

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Data Format
Number of Digits
Floating-point Data
Instruction
DOUBLE FLOATING-POINT DIVIDE
DOUBLE DEGREES TO RADIANS
DOUBLE RADIANS TO DEGREES
DOUBLE SINE
DOUBLE COSINE
DOUBLE TANGENT
DOUBLE ARC SINE
DOUBLE ARC COSINE
DOUBLE ARC TANGENT
DOUBLE SQUARE ROOT
DOUBLE EXPONENT
DOUBLE LOGARITHM
DOUBLE EXPONENTIAL POWER
Double-precision Floating-point Symbol
Comparison Instructions
Floating-point data expresses real numbers using a sign, exponent, and man-
tissa. When data is expressed in floating-point format, the following formula
applies.
s
e–1,023
Real number = (–1)
2
s: Sign
e: Exponent
f: Mantissa
The floating-point data format conforms to the IEEE754 standards. Data is
expressed in 32 bits, as follows:
Sign
Exponent
s
e
63 62
Data
No. of bits
s: sign
1
e: exponent
11
f: mantissa
52
The number of effective digits for floating-point data is 53 bits for binary
(approximately 15 digits decimal).
The following data can be expressed by floating-point data:
• – ∞
• –1.79769313486232 x 10
• 0
• 2.22507385850720 x 10
Mnemonic
/D
RADD
DEGD
SIND
COSD
TAND
ASIND
ACOSD
ATAND
SQRTD
EXPD
LOGD
PWRD
LD, AND,
OR
+
=D, <>D,
<D, <=D,
>D, or >=D
(1.f)
Mantissa
f
52 51
0: positive; 1: negative
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.
The mantissa portion of binary floating-point
data fits the format 2.0 > 1.f ≥1.0.
308
≤ value ≤ –2.22507385850720 x 10
≤ value ≤ 1.79769313486232 x 10
–308
Section 3-16
Function code
Page
848
589
849
591
850
593
851
594
852
596
853
598
854
600
855
602
856
604
857
606
858
608
859
610
860
612
335 to 340
614
0
Contents
–308
30
571

Advertisement

Table of Contents
loading

Table of Contents