 EXP
EXPExponent of input variable to base e
EXP calculates the power of the input variable to the base e (Euler’s number = 2.7182818) and writes the result into the output variable. The input variable has to be greater than -87.33 and smaller than 88.72. This function is the reversion of the LN function.

Input
Input value between -87.33 and +88.72
Output
Output as input: exponent of input variable to base e
if input variable does not have the data type REAL, LREAL
if input variable is not > -87.33 and < 88.72
if input variable does not have the data type REAL, LREAL
if input variable is not > -87.33 and < 88.72
if output variable is zero
if processing result overflows the output variable

All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.

	VAR
		input_value: REAL:=0.0;
		output_value: REAL:=0.0;
	END_VAR
The power of input_value is calculated to the base e and written into output_value.

BODY
    WORKSPACE
        NETWORK_LIST_TYPE := NWTYPELD ;
        ACTIVE_NETWORK := 0 ;
    END_WORKSPACE
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
L(1,0,1,5);
        END_NETWORK_BODY
    END_NET_WORK
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
L(1,0,1,5);
        END_NETWORK_BODY
    END_NET_WORK
    NET_WORK
        NETWORK_TYPE := NWTYPELD ;
        NETWORK_LABEL :=  ;
        NETWORK_TITLE :=  ;
        NETWORK_HEIGHT := 5 ;
        NETWORK_BODY
L(1,0,1,5);
        END_NETWORK_BODY
    END_NET_WORK
END_BODY
output_value:=EXP(input_value);| LD | input_value | 
| EXP | |
| ST | output_value |