
589
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.
Instruction
Mnemonic
Function code
Page
FLOATING TO 16-BIT
FIX
450
594
FLOATING TO 32-BIT
FIXL
451
596
16-BIT TO FLOATING
FLT
452
597
32-BIT TO FLOATING
FLTL
453
599
FLOATING-POINT ADD
+F
454
601
FLOATING-POINT SUB-
TRACT
–F
455
603
FLOATING-POINT MULTI-
PLY
*
F
456
605
FLOATING-POINT DIVIDE
/F
457
607
DEGREES TO RADIANS
RAD
458
609
RADIANS TO DEGREES
DEG
459
610
SINE
SIN
460
612
HIGH-SPEED SINE
SINQ
475
614
COSINE
COS
461
615
HIGH-SPEED COSINE
COSQ
476
617
TANGENT
TAN
462
619
HIGH-SPEED TANGENT
TANQ
477
621
ARC SINE
ASIN
463
623
ARC COSINE
ACOS
464
625
ARC TANGENT
ATAN
465
627
SQUARE ROOT
SQRT
466
629
EXPONENT
EXP
467
631
LOGARITHM
LOG
468
633
EXPONENTIAL POWER
PWR
840
635
MOVE FLOATING-POINT
(SINGLE)
MOVF
469
649
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
636
FLOATING-POINT TO
ASCII (*CS1-H/CJ1-H/
CJ1M Only)
FSTR
448
640
ASCII TO FLOATING-
POINT (*CS1-H/CJ1-H/
CJ1M Only)
FVAL
449
645
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...