Floating-Point Math Instructions - Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual

Programmable controllers
Hide thumbs Also See for CJ - PROGRAMMING MANUAL 08-2008:
Table of Contents

Advertisement

Floating-point Math Instructions

Instruction
Symbol/Operand
Mnemonic
Code
FLOATING
FDIV(079)
POINT DIVIDE
FDIV
@FDIV
079
Dd: 1st dividend
word
Dr: 1st divisor
word
R: 1st result word
BIT COUNTER
BCNT(067)
BCNT
@BCNT
067
N: Number of
words
S: 1st source
word
R: Result word

3-13 Floating-point Math Instructions

Instruction
Symbol/Operand
Mnemonic
Code
FLOATING TO
16-BIT
FIX(450)
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
Divides one 7-digit floating-point number by another. The floating-
point numbers are expressed in scientific notation (7-digit mantissa
Dd
and 1-digit exponent).
Dr
R
Dr+1
Counts the total number of ON bits in the specified word(s).
N
S
R
S+(N 1)
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
Function
Quotient
R+1
Dr
Dd+1
N words
Counts the number
to
of ON bits.
Binary result
R
Function
Floating-point data
S
(32 bits)
Signed binary data
R
(16 bits)
S
Floating-point data
(32 bits)
Signed binary data
R
(32 bits)
S
Signed binary data
(16 bits)
Floating-point data
R
(32 bits)
Section 3-13
Location
Execution condition
Output
Required
R
Dd
Output
Required
Location
Execution condition
Output
Required
Output
Required
Output
Required
113

Advertisement

Table of Contents
loading

Table of Contents