Exponent: Exp - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Floating-point Math Instructions
5-24-18 EXPONENT: EXP(––)
Limitations
Description
370
OF:
ON if the absolute value of the result is too large to be expressed as a
32-bit floating-point value. (The result will be output as + ∞ .)
Ladder Symbols
EXP(−−)
S
R
000
The source data in S+1 and S must be in IEEE754 floating-point data format.
DM 6143 to DM 6655 cannot be used for R.
When the execution condition is OFF, EXP(––) is not executed. When the exe-
cution condition is ON, EXP(––) calculates the natural (base e) exponential of
the 32-bit floating-point number in S+1 and S and places the result in R+1 and
R. In other words, EXP(––) calculates e
R+1 and R.
e
R+1
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag (SR 25404) will turn
ON and the result will be output as + ∞ .
If the absolute value of the result is less than the minimum value that can be
expressed as floating-point data, the Underflow Flag (SR 25405) will turn ON
and the result will be output as 0.
Note The constant e is 2.718282.
The following diagram shows the relationship between the input data and
result.
@EXP(−−)
S
R
000
x
(x = source) and places the result in
S+1
S
Source (32-bit floating-point data)
Result (32-bit floating-point data)
R
R
Section 5-24
Operand Data Areas
S: First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
R: First result word
IR, SR, AR, DM, EM, HR, LR
Third operand: Always 000
−−−
S: Input data
R: Result

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents