Omron CS1G/H-CPUxxH Instructions Manual page 86

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Instruction Functions
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),
Using OR:
or >=F (334)
Symbol, option
S1
S2
S1: Comparison data 1
S2: Comparison data 2
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
S+1
log
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.
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 2-2
Location
Page
Execution
condition
Output
552
Required
Output
554
Required
Output
556
Required
LD:
557
Not required
AND or OR:
Required
65

Advertisement

Table of Contents
loading

Table of Contents