Omron CJ - PROGRAMMING MANUAL 08-2008 Programming Manual page 155

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
EXPONENT
EXP(467)
EXP
@EXP
467
S: 1st source
word
R: 1st result word
LOGARITHM
LOG(468)
LOG
@LOG
468
S: 1st source
word
R: 1st result word
EXPONENTIAL
PWR(840)
POWER
PWR
@PWR
840
B: 1st base word
E: 1st exponent
word
R: 1st result word
FLOATING SYM-
Using LD:
BOL COMPARI-
SON (CS1-H,
Symbol, option
CJ1-H, CJ1M, or
S1
CS1D only)
S2
LD, AND. or OR
+
Using AND:
=F (329),
Symbol, option
<>F (330),
S1
<F (331),
<=F (332),
S2
>F (333),
or >=F (334)
Using OR:
Symbol, option
S1
S2
S1: Comparison data 1
S2: Comparison data 2
FLOATING-
FSTR(448)
POINT TO ASCII
(CS1-H, CJ1-H,
CJ1M, or CS1D
only)
FSTR
@FSTR
448
S: 1st source
word
C: Control word
D: Destination
word
Calculates the natural (base e) exponential of a 32-bit floating-point
number and places the result in the specified result words.
S
R
S+1
e
R+1
Calculates the natural (base e) logarithm of a 32-bit floating-point
number and places the result in the specified result words.
S
R
log
S+1
e
R+1
Raises a 32-bit floating-point number to the power of another 32-bit
floating-point number.
B
E
E+1
R
B+1
S
Compares the specified single-precision data (32 bits) or constants
and creates an ON execution condition if the comparison result is true.
Three kinds of symbols can be used with the floating-point symbol
comparison instructions: LD (Load), AND, and OR.
Converts the specified single-precision floating-point data (32-bit deci-
mal-point or exponential format) to text string data (ASCII) and outputs
the result to the destination word.
S
C
D
Function
Source (32-bit
S
floating-point
data)
R
Result (32-bit
floating-point
data)
Source (32-bit
S
floating-point
data)
Result (32-bit
R
floating-point
data)
Power
E
R+1
R
Base
Section 3-13
Location
Execution condition
Output
Required
Output
Required
Output
Required
LD:
Not required
AND or OR:
Required
Output required
117

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - PROGRAMMING MANUAL 08-2008 and is the answer not in the manual?

Questions and answers

Table of Contents