![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268629.webp)
590
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
595
FLOATING TO 32-BIT
FIXL
451
597
16-BIT TO FLOATING
FLT
452
598
32-BIT TO FLOATING
FLTL
453
600
FLOATING-POINT ADD
+F
454
602
FLOATING-POINT SUB-
TRACT
–F
455
604
FLOATING-POINT MULTI-
PLY
*
F
456
606
FLOATING-POINT DIVIDE
/F
457
608
DEGREES TO RADIANS
RAD
458
610
RADIANS TO DEGREES
DEG
459
611
SINE
SIN
460
613
HIGH-SPEED SINE
SINQ
475
615
COSINE
COS
461
616
HIGH-SPEED COSINE
COSQ
476
618
TANGENT
TAN
462
620
HIGH-SPEED TANGENT
TANQ
477
622
ARC SINE
ASIN
463
624
ARC COSINE
ACOS
464
626
ARC TANGENT
ATAN
465
628
SQUARE ROOT
SQRT
466
630
EXPONENT
EXP
467
632
LOGARITHM
LOG
468
634
EXPONENTIAL POWER
PWR
840
636
MOVE FLOATING-POINT
(SINGLE)
MOVF
469
650
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
637
FLOATING-POINT TO
ASCII (*CS1-H/CJ1-H/
CJ1M Only)
FSTR
448
641
ASCII TO FLOATING-
POINT (*CS1-H/CJ1-H/
CJ1M Only)
FVAL
449
646
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...