![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030629.webp)
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
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...