7.4.5 EXP
Function
Calculate the index value
LD graphics
Parameter description
floating point number
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| X | Var_Input | ANY_REAL | Operand |
| Function name | Return value | ANY_REAL | Output result |
warning
- ANY_REAL: including floating point numbers (REAL, LREAL)
Example
- LD example is shown in the following animation:

- 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