![Omron CJ1G-CPU series Programming Manual Download Page 132](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489132.webp)
111
Floating-point Math Instructions
Section 3-13
EXPONENT
EXP
@EXP
467
Output
Required
LOGARITHM
LOG
@LOG
468
Output
Required
EXPONENTIAL
POWER
PWR
@PWR
840
Output
Required
Floating Symbol
Comparison
(CS1-H, CJ1-H,
or CJ1M only)
LD, AND. or OR
+
=F (329),
<>F (330),
<F (331),
<=F (332),
>F (333),
or >=F (334)
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.
LD:
Not required
AND or OR:
Required
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
S: 1st source
word
R: 1st result word
EXP(467)
S
R
Calculates the natural (base e) exponential of a 32-bit floating-point number
and places the result in the specified result words.
R+1
R
S
Source (32-bit
floating-point
data)
S+1
Result (32-bit
floating-point
data)
e
S: 1st source
word
R: 1st result word
LOG(468)
S
R
Calculates the natural (base e) logarithm of a 32-bit floating-point number and
places the result in the specified result words.
R+1
R
S
Source (32-bit
floating-point
data)
S+1
Result (32-bit
floating-point
data)
log
e
B: 1st base word
E: 1st exponent
word
R: 1st result word
PWR(840)
B
E
R
Raises a 32-bit floating-point number to the power of another 32-bit
floating-point number.
R+1
R
B+1
S
E
E+1
Power
Base
S1: Comparison data 1
S2: Comparison data 2
Symbol, option
S1
S2
Using LD:
Symbol, option
S1
S2
Using AND:
Symbol, option
S1
S2
Using OR:
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...