Floating-Point Math Instructions - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Floating-point Math Instructions

3-15 Floating-point Math Instructions
Data Format
590
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
HIGH-SPEED SINE
COSINE
HIGH-SPEED COSINE
TANGENT
HIGH-SPEED TANGENT
ARC SINE
ARC COSINE
ARC TANGENT
SQUARE ROOT
EXPONENT
LOGARITHM
EXPONENTIAL POWER
MOVE FLOATING-POINT
(SINGLE)
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.
Mnemonic
Function code
FIX
450
FIXL
451
FLT
452
FLTL
453
+F
454
–F
455
*F
456
457
RAD
458
DEG
459
SIN
460
SINQ
475
COS
461
COSQ
476
TAN
462
TANQ
477
ASIN
463
ACOS
464
ATAN
465
SQRT
466
EXP
467
LOG
468
PWR
840
MOVF
469
Mnemonic
Function code
LD, AND, OR
329 to 334
+
=F, <>F, <F, <=F, >F,
or >=F
FSTR
448
FVAL
449
Section 3-15
Page
595
597
598
600
602
604
606
608
610
611
613
615
616
618
620
622
624
626
628
630
632
634
636
650
Page
637
641
646

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents