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

Sysmac cs/cj/one nsj series programmable controllers
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
652
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
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
52 51
Section 3-16
Function code
Page
841
658
842
659
843
661
844
662
845
664
846
666
847
668
848
670
849
672
850
674
851
675
852
677
853
679
854
681
855
683
856
685
857
687
858
689
859
691
860
693
335 to 340
695
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents