EasyManua.ls Logo

Omron CJ - INSTRUCTIONS - 2-2-13 Floating-Point Math Instructions

Omron CJ - INSTRUCTIONS
1308 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
75
CS/CJ/NSJ Series Instructions Reference Manual (W474)
2. Summary of Instructions
2-2 Instruction Functions
2
2-2-13 Floating-point Math Instructions
2-2-13 Floating-point Math Instructions
Instruction
Mnemonic
Code
Symbol/Operand Function Location
Execution
condition
Page
FLOATING TO
16-BIT
FIX
@FIX
450
Output
Required
472
FLOATING TO
32-BIT
FIXL
@FIXL
451
Output
Required
472
16-BIT TO
FLOATING
FLT
@FLT
452
Output
Required
474
32-BIT TO
FLOATING
FLTL
@FLTL
453
Output
Required
474
FLOATING-
POINT ADD
+F
@+F
454
Output
Required
476
FLOATING-
POINT SUB-
TRACT
–F
@–F
455
Output
Required
476
FIX(450)
S
R
S: 1st source
word
R: Result word
S+1 S
R
Signed binary data
(16 bits)
Floating-point data
(32 bits)
Converts a 32-bit floating-point value to 16-bit signed binary data and
places the result in the specified result word.
FIXL(451)
S
R
S: 1st source
word
R: 1st result word
S+1 S
R+1 R
Signed binary data
(32 bits)
Floating-point data
(32 bits)
Converts a 32-bit floating-point value to 32-bit signed binary data and
places the result in the specified result words.
FLT(452)
S
R
S: Source word
R: 1st result word
R+1 R
S
Converts a 16-bit signed binary value to 32-bit floating-point data and
places the result in the specified result words.
Signed binary data
(16 bits)
Floating-point data
(32 bits)
S
R
FLTL(453)
S: 1st source
word
R: 1st result word
R+1 R
S
S+1
Floating-point data
(
32 bits
)
Signed binary data
(32 bits)
Converts a 32-bit signed binary value to 32-bit floating-point data and
places the result in the specified result words.
+F(454)
R
Au
Ad
Au: 1st augend
word
AD: 1st addend
word
R: 1st result word
R+1 R
+
AuAu+1
Ad
Ad+1
Adds two 32-bit floating-point numbers and places the result in the
specified result words.
Augend (floating-
point data, 32 bits)
Addend (floating-
point data, 32 bits)
Result (floating-
point data, 32 bits)
F(455)
R
Mi
Su
Mi: 1st Minuend
word
Su: 1st
Subtrahend word
R: 1st result word
R+1
R
Mi
Mi+1
Su
Su+1
Minuend (floating-
point data, 32 bits)
Subtrahend (floating-
point data, 32 bits)
Result (floating-point
data, 32 bits)
Subtracts one 32-bit floating-point number from another and places
the result in the specified result words.

Table of Contents

Related product manuals