![Omron CJ1G-CPUxx Instructions Manual Download Page 536](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491536.webp)
515
Floating-point Math Instructions
Section 3-15
3-15 Floating-point Math Instructions
The Floating-point Math Instructions convert data and perform floating-point
arithmetic operations. CS/CJ-series CPU Units support the following instruc-
tions.
In addition to the instructions listed above, the CS1-H/CJ1-H CPU Units sup-
port the following floating-point comparison and conversion instructions. Refer
to
3-16-21 Double-precision Floating-point Input Instructions for details on
double-precision floating-point instructions.
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–127
(1.f)
s: Sign
e: Exponent
f: Mantissa
Instruction
Mnemonic
Function code
Page
FLOATING TO 16-BIT
FIX
450
FLOATING TO 32-BIT
FIXL
451
16-BIT TO FLOATING
FLT
452
32-BIT TO FLOATING
FLTL
453
FLOATING-POINT ADD
+F
454
FLOATING-POINT SUB-
TRACT
–F
455
FLOATING-POINT MULTI-
PLY
*
F
456
FLOATING-POINT DIVIDE
/F
457
DEGREES TO RADIANS
RAD
458
RADIANS-TO-DEGREES
DEG
459
SINE
SIN
460
COSINE
COS
461
TANGENT
TAN
462
ARC SINE
ASIN
463
ARC COSINE
ACOS
464
ARC TANGENT
ATAN
465
SQUARE ROOT
SQRT
466
EXPONENT
EXP
467
LOGARITHM
LOG
468
EXPONENTIAL POWER
PWR
840
Instruction
Mnemonic
Function code
Page
Single-precision Floating-
point Symbol Comparison
Instructions
(*CS1-H/CJ1-H/CJ1M
Only)
LD, AND, OR
+
=F, <>F, <F, <=F, >F,
or >=F
329 to 334
FLOATING-POINT TO
ASCII (*CS1-H/CJ1-H/
CJ1M Only)
FSTR
448
ASCII TO FLOATING-
POINT (*CS1-H/CJ1-H/
CJ1M Only)
FVAL
449
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...