Omron SYSMAC CS/CJ Series Programming Manual page 136

Table of Contents

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, or CJ1M Only)
Instruction
Symbol/Operand
Mnemonic
Code
DOUBLE
SQRTD(857)
SQUARE ROOT
SQRTD
@SQRTD
857
S: 1st source
word
R: 1st result word
DOUBLE EXPO-
EXPD(858)
NENT
EXPD
@EXPD
858
S: 1st source
word
R: 1st result word
DOUBLE LOGA-
LOGD(859)
RITHM
LOGD
@LOGD
859
S: 1st source
word
R: 1st result word
DOUBLE EXPO-
PWRD(860)
NENTIAL
POWER
PWRD
@PWRD
860
B: 1st base word
E: 1st exponent
word
R: 1st result word
DOUBLE SYM-
Using LD:
BOL COMPARI-
SON
Symbol, option
S1
LD, AND. or OR
+
S2
=D (335),
<>D (336),
Using AND:
<D (337),
Symbol, option
<=D (338),
S1
>D (339),
or >=D (340)
S2
Using OR:
Symbol, option
S1
S2
S1: Comparison data 1
S2: Comparison data 2
Calculates the square root of the specified double-precision floating-point data
(64 bits) and outputs the result to the result words.
S
R
Calculates the natural (base e) exponential of the specified double-precision
floating-point data (64 bits) and outputs the result to the result words.
S
R
Calculates the natural (base e) logarithm of the specified double-precision float-
ing-point data (64 bits) and outputs the result to the result words.
S
R
Raises a double-precision floating-point number (64 bits) to the power of
another double-precision floating-point number and outputs the result to the
result words.
B
E
R
Compares the specified double-precision data (64 bits) and creates an ON exe-
cution 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
Section 3-14
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Output
Required
LD:
Not required
AND or OR:
Required
115

Advertisement

Table of Contents
loading

Table of Contents