Returns the exponential of parameter x if successful. On overflow, the function returns the MAX floating point (3.4E38). On underflow, the function returns a zero value.
Syntax:
'external reference' := EXP(Real value);
Example:
VAR T63; T64; T17; T18; (* Temporary values *) END_VAR; T63 := .5; T64 := 1.5; T17 := EXP(T63); T18 := EXP(T64);
The above example shows T63 set to the value of .5 and T64 set to the value of 1.5. T17 is set to the result of EXP(T63), which is 1.6487212707 and T18 is set to the result of EXP(T64), which is 4.481689070338.