Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 110

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

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-
F(455)
POINT SUB-
TRACT
–F
@–F
455
Mi: 1st Minuend
word
Su: 1st
Subtrahend word
R: 1st result word
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
2. Summary of Instructions
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)
Location
Page
Execution
condition
Output
464
Required
Output
464
Required
2
Output
466
Required
Output
466
Required
Output
468
Required
Output
468
Required
73

Advertisement

Table of Contents
loading

Table of Contents