Floating-Point Math Instructions - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Floating-point Math Instructions

5-21 Floating-point Math Instructions

Data Format
Number of Digits
280
The Floating-point Math Instructions convert data and perform floating-point
arithmetic operations.
Code Mnemonic
450
FIX (*)
FLOATING TO 16-BIT
451
FIXL (*)
FLOATING TO 32-BIT
452
FLT (*)
16-BIT TO FLOATING
453
FLTL (*)
32-BIT TO FLOATING
454
+F (*)
FLOATING-POINT ADD
455
–F (*)
FLOATING-POINT SUBTRACT
*F (*)
456
FLOATING-POINT MULTIPLY
457
/F (*)
FLOATING-POINT DIVIDE
458
RAD (*)
DEGREES TO RADIANS
459
DEG (*)
RADIANS-TO-DEGREES
460
SIN (*)
SINE
461
COS (*)
COSINE
462
TAN (*)
TANGENT
463
ASIN (*)
SINE TO ANGLE
464
ACOS (*)
COS TO ANGLE
465
ATAN (*)
TANGENT TO ANGLE
466
SQRT (*)
SQUARE ROOT
467
EXP (*)
EXPONENT
468
LOG (*)
LOGARITHM
Floating-point data expresses real numbers using a sign, exponent, and mantis-
sa. When data is expressed in floating-point format, the following formula ap-
plies.
s
e–127
Real number = (–1)
2
s:
Sign
e:
Exponent
f:
Mantissa
The floating-point data format conforms to the IEEE754 standards. Data is ex-
pressed in 32 bits, as follows:
Sign
Exponent
s
e
MSB 30
23
Data
No. of bits
s:sign
1
e:exponent
8
f: mantissa
23
The number of effective digits for floating-point data is 24 bits for binary ( approx-
imately seven digits decimal).
Name
(1.f)
Mantissa
f
22
Contents
0: positive; 1: negative
The exponent (e) value ranges from 0 to 255.
The actual exponent is the value remaining
after 127 is subtracted from e, resulting in a
range of –127 to 128. "e=0" and "e=255"
express special numbers.
The mantissa portion of binary floating-point
data fits the formal 2.0 > 1.f y1.0.
Section 5-21
LSB

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents