> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/hvac-library/functionblocks/energy/wetbulbtemperature.md).

# WetBulbTemperature

## `WetBulbTemperature` (FB)

FUNCTION\_BLOCK WetBulbTemperature

### Kurzbeschreibung

> Berechnung der Feuchtkugeltemperatur in Grad Celsius\
> Größen: Temperatur, relative Feuchte\
> Typische Anwendung: Berechnung der Feuchtkugeltemperatur bei einer adiabatischen Kühlung

### Darstellung

<figure><img src="/files/TSAIrGBTxRf6R4JxCvXh" alt=""><figcaption></figcaption></figure>

### Schnittstellen

#### Eingänge

| Name                | Datentyp | Wertebereich    | Initialwert | Funktion                         |
| ------------------- | -------- | --------------- | ----------- | -------------------------------- |
| *rTemperature*      | REAL     | -20.0 bis +50.0 | 0           | Temperatur in Grad Celsius       |
| *rRelativeHumidity* | REAL     | 5.0 bis 99.0    | 5           | Relative Feuchtigkeit in Prozent |

#### Ausgänge

| Name                  | Datentyp | Wertebereich | Initialwert | Funktion                                                                                          |
| --------------------- | -------- | ------------ | ----------- | ------------------------------------------------------------------------------------------------- |
| *rWetBulbTemperature* | REAL     |              | 0.0         | Feuchtkugeltemperatur in °C (Fehler: +/- 1.0 Prozent im angegebenen Temperatur- / Feuchtebereich) |
| *xError*              | BOOL     |              | FALSE       | Ausgang zur Anzeige von Fehlerzuständen (TRUE = Fehler)                                           |
| *sErrorCode*          | STRING   |              | ‘’          | Ausgang zur Anzeige von Fehlermeldungen                                                           |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Berechnung der Feuchtkugeltemperatur in Grad Celsius.\
Hierzu sind die aktuellen Werte der Lufttemperatur in Grad Celsius und der relativen Feuchtigkeit in Prozent zu übergeben.

> **Wertebereich der Temperatur in Grad Celsius&#x20;*****rTemperature***
>
> Die Temperatur in Grad Celsius darf nur Werte zwischen -20.0 und +50.0 Grad Celsius (jeweils einschließlich) annehmen.\
> Werte außerhalb des Wertebereichs erzeugen einen Fehlerzustand (‘xError’ = TRUE) und eine zugehörige Fehlermeldung ( ‘xErrorCode’).\
> Es findet keine Berechnung der Feuchtkugeltemperatur statt.
>
> **Wertebereich der relativen Feuchtigkeit in Prozent&#x20;*****rRelativeHumidity***
>
> Die relative Feuchtigkeit in Prozent darf nur Werte zwischen +5.0 und +99.0 Prozent (jeweils einschließlich) annehmen.\
> Werte außerhalb des Wertebereichs erzeugen einen Fehlerzustand ( ‘xError’ = TRUE ) und eine zugehörige Fehlermeldung (‘xErrorCode’).\
> Es findet keine Berechnung der Feuchtkugeltemperatur statt.

#### Ausgang zur Anzeige von Fehlerzuständen *xError*

Dieser Ausgang dient zur Anzeige von Fehlerzuständen (= TRUE):

1. Temperatur ausserhalb des Wertebereichs der Temperatur in Grad Celsius *rTemperature*
2. Relative Feuchte ausserhalb des Wertebereichs der relativen Feuchte in Prozent *rRelHumidity*
3. Feuchtkugeltemperatur ‘rWetBulbTemperature’ > Temperatur ‘rTemperature’
4. Feuchtkugeltemperatur ‘rWetBulbTemperature’ < (Temperatur ‘rTemperature’ - 50.0)

\
In allen übrigen Situationen ist der Ausgang nicht aktiv (= FALSE).

#### Ausgang zur Anzeige von Fehlermeldungen *sErrorCode*

Dieser Ausgang dient zur Anzeige von situationsabhängigen Fehlermeldungen im Klartext.

### CODESYS

InOut:

| Scope  | Name                  | Type          | Initial |
| ------ | --------------------- | ------------- | ------- |
| Input  | `rTemperature`        | `REAL`        | 0       |
| Input  | `rRelativeHumidity`   | `REAL`        | 5.0     |
| Output | `rWetBulbTemperature` | `REAL`        | 0       |
| Output | `xError`              | `BOOL`        | FALSE   |
| Output | `sErrorCode`          | `STRING(255)` | ‘’      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/hvac-library/functionblocks/energy/wetbulbtemperature.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
