Floating-Point Math Instructions - Omron CS1G/H-CPUxxH Instructions Manual

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

Advertisement

Floating-point Math Instructions

3-15 Floating-point Math Instructions
Data Format
The Floating-point Math Instructions convert data and perform floating-point
arithmetic operations. CS/CJ-series CPU Units support the following instruc-
tions.
Instruction
FLOATING TO 16-BIT
FLOATING TO 32-BIT
16-BIT TO FLOATING
32-BIT TO FLOATING
FLOATING-POINT ADD
FLOATING-POINT SUB-
TRACT
FLOATING-POINT MULTI-
PLY
FLOATING-POINT DIVIDE /F
DEGREES TO RADIANS
RADIANS-TO-DEGREES
SINE
COSINE
TANGENT
ARC SINE
ARC COSINE
ARC TANGENT
SQUARE ROOT
EXPONENT
LOGARITHM
EXPONENTIAL POWER
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.
Instruction
Single-precision Floating-
point Symbol Comparison
Instructions
(*CS1-H/CJ1-H/CJ1M
Only)
FLOATING-POINT TO
ASCII (*CS1-H/CJ1-H/
CJ1M Only)
ASCII TO FLOATING-
POINT (*CS1-H/CJ1-H/
CJ1M Only)
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–127
Real number = (–1)
2
s: Sign
e: Exponent
f: Mantissa
Mnemonic
Function code
FIX
450
FIXL
451
FLT
452
FLTL
453
+F
454
–F
455
*F
456
457
RAD
458
DEG
459
SIN
460
COS
461
TAN
462
ASIN
463
ACOS
464
ATAN
465
SQRT
466
EXP
467
LOG
468
PWR
840
Mnemonic
Function code
LD, AND, OR
329 to 334
+
=F, <>F, <F, <=F, >F,
or >=F
FSTR
448
FVAL
449
(1.f)
Section 3-15
Page
520
522
523
525
527
529
531
533
535
536
538
540
542
544
546
548
550
552
554
556
Page
557
561
566
515

Advertisement

Table of Contents
loading

Table of Contents