EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Double-Precision Floating-Point Instructions

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
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...
525
Double-precision Floating-point Instructions Section 3-15
3-15 Double-precision Floating-point Instructions
The Double-precision Floating-point Instructions convert data and perform
floating-point arithmetic operations on double-precision floating-point data.
Data Format 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.
Real number = (–1)
s
2
e–1,023
(1.f)
s: Sign
e: Exponent
f: Mantissa
The floating-point data format conforms to the IEEE754 standards. Data is
expressed in 32 bits, as follows:
Instruction Mnemonic Function code Page
DOUBLE FLOATING TO 16-BIT FIXD 841 530
DOUBLE FLOATING TO 32-BIT FIXLD 842 532
16-BIT TO DOUBLE FLOATING DBL 843 533
32-BIT TO DOUBLE FLOATING DBLL 844 534
DOUBLE FLOATING-POINT ADD +D 845 536
DOUBLE FLOATING-POINT SUBTRACT D 846 538
DOUBLE FLOATING-POINT MULTIPLY *D847 540
DOUBLE FLOATING-POINT DIVIDE /D 848 542
DOUBLE DEGREES TO RADIANS RADD 849 544
DOUBLE RADIANS TO DEGREES DEGD 850 545
DOUBLE SINE SIND 851 547
DOUBLE COSINE COSD 852 548
DOUBLE TANGENT TAND 853 550
DOUBLE ARC SINE ASIND 854 551
DOUBLE ARC COSINE ACOSD 855 553
DOUBLE ARC TANGENT ATAND 856 555
DOUBLE SQUARE ROOT SQRTD 857 557
DOUBLE EXPONENT EXPD 858 558
DOUBLE LOGARITHM LOGD 859 560
DOUBLE EXPONENTIAL POWER PWRD 860 562
Double-precision Floating-point Symbol
Comparison Instructions
LD, AND,
OR
+
=D, <>D,
<D, <=D,
>D, or >=D
335 to 340 563
Data No. of bits Contents
s: sign 1 0: positive; 1: negative
63 62 52 51 0
Sign
se f
Exponent Mantissa

Table of Contents

Related product manuals