Skip to main content

7.4.5 EXP

Function

Calculate the index value

LD graphics

Alt text

Parameter description

floating point number

Interface variableDeclarationData typeDescription
XVar_InputANY_REALOperand
Function nameReturn valueANY_REALOutput result
warning
  • ANY_REAL: including floating point numbers (REAL, LREAL)

Example

  • LD example is shown in the following animation:

alt text

  • ST example is shown in the following code:
OUT:=EXP(IN1);
Trigonometric functions note
  • The REAL values ​​entered in the trigonometric function are expressed in radians in the function block
  • For example, sin30 refers to 30 radians, not 30 degrees, and the result of sin30 is -0.98803163