WetBulbTemperature
WetBulbTemperature (FB)
FUNCTION_BLOCK WetBulbTemperature
Short description
Calculation of the wet-bulb temperature in degrees Celsius Variables: temperature, relative humidity Typical application: calculation of the wet-bulb temperature during adiabatic cooling
Representation

Interfaces
Inputs
rTemperature
REAL
-20.0 to +50.0
0
Temperature in degrees Celsius
rRelativeHumidity
REAL
5.0 to 99.0
5
Relative humidity in percent
Outputs
rWetBulbTemperature
REAL
0.0
Wet-bulb temperature in °C (error: +/- 1.0 percent in the specified temperature / humidity range)
xError
BOOL
FALSE
Output for displaying error states (TRUE = error)
sErrorCode
STRING
‘’
Output for displaying error messages
Functional description
General
This function block is used to calculate the wet-bulb temperature in degrees Celsius. For this purpose, the current values of the air temperature in degrees Celsius and the relative humidity in percent must be provided.
Temperature range in degrees Celsius rTemperature
The temperature in degrees Celsius may only take values between -20.0 and +50.0 degrees Celsius (inclusive). Values outside the range generate an error state ('xError' = TRUE) and a corresponding error message ('xErrorCode'). No calculation of the wet-bulb temperature takes place.
Relative humidity range in percent rRelativeHumidity
The relative humidity in percent may only take values between +5.0 and +99.0 percent (inclusive). Values outside the range generate an error state ('xError' = TRUE) and a corresponding error message ('xErrorCode'). No calculation of the wet-bulb temperature takes place.
Output for displaying error states xError
This output is used to display error states (= TRUE):
Temperature outside the range of the temperature in degrees Celsius rTemperature
Relative humidity outside the range of relative humidity in percent rRelHumidity
Wet-bulb temperature 'rWetBulbTemperature' > temperature 'rTemperature'
Wet-bulb temperature 'rWetBulbTemperature' < (temperature 'rTemperature' - 50.0)
In all other situations, the output is not active (= FALSE).
Output for displaying error messages sErrorCode
This output is used to display situation-dependent error messages in plain text.
CODESYS
InOut:
Input
rTemperature
REAL
0
Input
rRelativeHumidity
REAL
5.0
Output
rWetBulbTemperature
REAL
0
Output
xError
BOOL
FALSE
Output
sErrorCode
STRING(255)
‘’
Last updated

