Commands and functions
P.
204 of 349
Exponential function
Logarithm
Maximum value
Definition
●
Function
exp
(
variable
)
Arguments
●
1 argument
variable
of data type f32
Effect
●
Calculation of the exponential function of
variable
Data type result (Return)
●
Data type f32
Example exponential function:
Variable b is the result of the exponential function of variable a.
Implementation in the user program:
a=5f32
b=exp(a)
Definition
●
Function
log
(
variable1
,
variable2
)
Arguments
●
2 arguments of data type f32
●
variable1
: base
●
variable2
: argument
Effect
●
Return value: The result of the logarithm calculation
●
If the argument and/or the base is not positive, no calculation is performed.
Data type result (Return)
●
data type f32
The maximum value function is defined as follows:
Definition
●
Function
max
(
variable1
,
variable2, [...] )
Arguments
●
all arguments are of the same data type
●
Data type: uXX, sXX and fXX, with XX arbitrary bit length defined on page 92
Effect
●
Return value: The maximum value of the given variables which must all be of the same
data type
Data type result (Return)
●
Data type of arguments
Example: Maximum value of 5 percentage values
The maximum value of the heating actuators shall be determined.
Implementation in the user program:
c=max("HeatingBasement1-1/0/2","HeatingBasement2-1/0/3","HeatingBasement3-1/0/4" /
"HeatingBasement4-1/0/5","HeatingBasement5-1/0/6")
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]