Calculating The Exponent - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

13.5

Calculating the Exponent

EXP
These functions output the exponent of an input value.
Structured text
d:=EXP(s);
Setting data
■Description, type, data type
Argument
s (IN)
d
Processing details
■Operation processing
• These functions calculate the exponent of the REAL/LREAL data type value input to (s), and output the operation result
from (d).
• When the input value is defined as A and the output value is defined as B, the relationship of A and B will be as follows:
A
B=e
• Exponent operation is performed with the base (e) defined as 2.71828.
• Input a REAL or LREAL data type value to (s).
■Operation result
The operation processing is performed. The operation result is output from (d).
Operation error
Error code
Description
3402H
The value input to (s) is -0, a subnormal number, NaN (not a number), or ±∞.
3403H
The data output from (d) exceeds the following range. (An overflow has occurred.)
|(d)|<2
13 SINGLE VARIABLE FUNCTIONS
170
13.5 Calculating the Exponent
Description
Input
Output
128
Type
Data type
Input variable
ANY_REAL
Output variable
ANY_REAL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents