Floating-Point Math Instructions - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Floating-point Math Instructions

5-24 Floating-point Math Instructions

Data Format
In this case, the input data word, IR 010, contains #0014, and f(0014) = #0726
is output to R, IR 011.
Y
$1F20
$0F00
$0726
$0402
(0,0)
$0005
The Floating-point Math Instructions convert data and perform floating-point
arithmetic operations. CQM1H-series CPUs support the following instructions.
Instruction
FLOATING TO 16-BIT
FLOATING TO 32-BIT
16-BIT TO FLOATING
32-BIT TO FLOATING
FLOATING-POINT ADD
FLOATING-POINT SUBTRACT –F
FLOATING-POINT MULTIPLY
FLOATING-POINT DIVIDE
DEGREES TO RADIANS
RADIANS-TO-DEGREES
SINE
COSINE
TANGENT
ARC SINE
ARC COSINE
ARC TANGENT
SQUARE ROOT
EXPONENT
LOGARITHM
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.
s
e–127
Real number = (–1)
2
s:
Sign
e:
Exponent
f:
Mantissa
(x,y)
$0014
$001A
Mnemonic
Function code
FIX
––
FIXL
––
FLT
––
FLTL
––
+F
––
––
*F
––
/F
––
RAD
––
DEG
––
SIN
––
COS
––
TAN
––
ASIN
––
ACOS
––
ATAN
––
SQRT
––
EXP
––
LOG
––
(1.f)
Section 5-24
X
$05F0
Page
352
353
354
355
355
357
358
359
360
361
362
363
364
365
366
367
369
370
371
347

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents