Double-Precision Floating-Point Instructions (Cs1-H, Cj1-H, Cj1M, Or Cs1D Only) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)

3-16 Double-precision Floating-point Instructions (CS1-H, CJ1-
H, CJ1M, or CS1D Only)
Data Format
The Double-precision Floating-point Instructions convert data and perform
floating-point arithmetic operations on double-precision floating-point data.
The CS1-H/CJ1-H CPU Units support the following 20 instructions.
Instruction
DOUBLE FLOATING TO 16-BIT
DOUBLE FLOATING TO 32-BIT
16-BIT TO DOUBLE FLOATING
32-BIT TO DOUBLE FLOATING
DOUBLE FLOATING-POINT ADD
DOUBLE FLOATING-POINT SUBTRACT
DOUBLE FLOATING-POINT MULTIPLY
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
52 51
Mnemonic
FIXD
FIXLD
DBL
DBLL
+D
–D
*D
/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
Section 3-16
Function code
Page
841
657
842
658
843
660
844
661
845
663
846
665
847
667
848
669
849
671
850
673
851
674
852
676
853
678
854
680
855
682
856
684
857
686
858
688
859
690
860
692
335 to 340
694
0
651

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents