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

Instruction Functions

2-2-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-
+F(454)
POINT ADD
+F
@+F
454
Au: 1st augend
word
AD: 1st addend
word
R: 1st result word
FLOATING-
POINT SUB-
TRACT
–F
@–F
455
Mi: 1st Minuend
word
Su: 1st
Subtrahend word
R: 1st result word
66
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
F(455)
the result in the specified result words.
Mi
Mi+1
Su
R
Su+1
R+1
Function
S
Floating-point data
(32 bits)
Signed binary data
R
(16 bits)
S
Floating-point data
(32 bits)
Signed binary data
R
(32 bits)
Signed binary data
S
(16 bits)
Floating-point data
R
(32 bits)
S
Signed binary data
(32 bits)
R
Floating-point data
(32 bits)
Augend (floating-
Au
point data, 32 bits)
Addend (floating-
Ad
point data, 32 bits)
Result (floating-
R
point data, 32 bits)
Minuend (floating-
Mi
point data, 32 bits)
Su
Subtrahend (floating-
point data, 32 bits)
Result (floating-point
R
data, 32 bits)
Section 2-2
Location
Page
Execution
condition
Output
595
Required
Output
597
Required
Output
598
Required
Output
600
Required
Output
602
Required
Output
604
Required

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents