Commands and functions
P.
205 of 349
Minimum value
Multiplication
Power
The minimum value of an arbitrary number of variables is calculated as follows:
Definition
●
Function
min
(
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 154
Effect
●
Return value: The minimum value of the given variables which must all be of the same
data type
Data type result (Return)
●
Data type of arguments
Example: Minimum value of 5 percentage values
The minimum value of the heating actuators shall be determined.
Implementation in the user program:
c=min("HeatingBasement1-1/0/2","HeatingBasement2-1/0/3","HeatingBasement3-1/0/4" /
"HeatingBasement4-1/0/5","HeatingBasement5-1/0/6")
Definition
●
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
●
The values of the variables are multiplied.
Data type result (Return)
●
Data type of arguments
Definition
●
Function
pow
(
variable1
,
variable2
)
Arguments
●
2 arguments of data type f32
●
variable1
: Base
●
variable2
: Exponent
Effect
●
Return value: The result of the power calculation.
●
Both variables must be of data type f32. See Table 1 and the explanations there.
●
If the base is negative, no calculation is performed.
Data type result (Return)
●
Data type f32
Example:
See dew-point calculation, page 59
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]