> 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="https://879424349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-2725f54052da73baa4d1f5af62df05656c6a08fc%2Fimage.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
