Floating-Point Math Instructions - Omron SYSMAC CS Series Programming Manual

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Floating-point Math Instructions

3-13 Floating-point Math Instructions

Instruction
Symbol/Operand
Mnemonic
Code
FLOATING TO
FIX(450)
16-BIT
FIX
@FIX
450
S: 1st source
word
R: Result word
FLOATING TO
FIXL(451)
32-BIT
FIXL
@FIXL
451
S: 1st source
word
R: 1st result word
16-BIT TO
FLT(452)
FLOATING
FLT
@FLT
452
S: Source word
R: 1st result word
32-BIT TO
FLTL(453)
FLOATING
FLTL
@FLTL
453
S: 1st source
word
R: 1st result word
FLOATING-
POINT ADD
+F(454)
+F
@+F
454
Au: 1st augend
word
AD: 1st addend
word
R: 1st result word
FLOATING-
– F(455)
POINT
SUBTRACT
–F
@–F
455
Mi: 1st Minuend
word
Su: 1st
Subtrahend word
R: 1st result word
102
Converts a 32-bit floating-point value to 16-bit signed binary data and places
the result in the specified result word.
S
S+1
R
Converts a 32-bit floating-point value to 32-bit signed binary data and places
the result in the specified result words.
S
S+1
R
R+1
Converts a 16-bit signed binary value to 32-bit floating-point data and places
the result in the specified result words.
S
R
R+1
Converts a 32-bit signed binary value to 32-bit floating-point data and places
the result in the specified result words.
S
S+1
R
R+1
Adds two 32-bit floating-point numbers and places the result in the specified
result words.
Au
Au+1
Ad
R
+
Ad+1
R+1
Subtracts one 32-bit floating-point number from another and places the result
in the specified result words.
Mi
Mi+1
Su
R
Su+1
R+1
Function
Floating-point data
S
(32 bits)
Signed binary data
R
(16 bits)
S
Floating-point data
(32 bits)
R
Signed binary data
(32 bits)
S
Signed binary data
(16 bits)
Floating-point data
R
(32 bits)
S
Signed binary data
(32 bits)
Floating-point data
R
(32 bits)
Augend (floating-point
Au
data, 32 bits)
Addend (floating-point
Ad
data, 32 bits)
Result (floating-point
R
data, 32 bits)
Minuend (floating-
Mi
point data, 32 bits)
Subtrahend (floating-
Su
point data, 32 bits)
Result (floating-
R
point data, 32 bits)
Section 3-13
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents