> 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/hxchart.md).

# hxChart

## `hxChart` (FB)

FUNCTION\_BLOCK hxChart

### Kurzbeschreibung

> Berechnung von Zustandsgrößen der feuchten Luft anhand des Mollier-h,x-Diagramms\
> Größen: Enthalpie, Taupunkttemperatur, absolute Feuchtigkeit\
> Typische Anwendung: Berechnung der Taupunkttemperatur in einer Zone

### Darstellung

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

### Schnittstellen

#### Eingänge

| Name  | Datentyp | Wertebereich    | Initialwert | Funktion                         |
| ----- | -------- | --------------- | ----------- | -------------------------------- |
| *rT*  | REAL     | -20.0 bis +50.0 |             | Temperatur in Grad Celsius       |
| *rRH* | REAL     | 0.1 bis 100.0   |             | Relative Feuchtigkeit in Prozent |

#### Ausgänge

| Name   | Datentyp | Wertebereich | Initialwert | Funktion                                                             |
| ------ | -------- | ------------ | ----------- | -------------------------------------------------------------------- |
| *rH*   | REAL     |              |             | Enthalpie in kJ/kg                                                   |
| *rX*   | REAL     |              |             | Absolute Feuchtigkeit in Gramm Wasserdampf / Kilogramm trockene Luft |
| *rDP*  | REAL     |              |             | Taupunkttemperatur in Grad Celsius                                   |
| *xErr* | BOOL     |              |             | Sammelstörung                                                        |

#### Sollwerte / Parameter

| Name   | Datentyp | Wertebereich     | Initialwert | Funktion          |
| ------ | -------- | ---------------- | ----------- | ----------------- |
| **rP** | REAL     | 800.0 bis 1200.0 | 980         | Luftdruck in mbar |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Berechnung wesentlicher Zustandsgrößen der feuchten Luft anhand des Mollier-h,x-Diagramms.\
Hierzu sind die aktuellen Werte der Lufttemperatur in Grad Celsius und der relativen Feuchtigkeit in Prozent zu übergeben.\
Im Idealfall steht für eine hohe Genauigkeit der aktuelle Luftdruck in mbar zur Verfügung, er kann jedoch durch eine der Höhenlage des Messorts angepasste Konstante ersetzt werden (Barometrische Höhenformel).

| Meereshöhe (m) | Luftdruck (mbar) | Konstante |
| -------------- | ---------------- | --------- |
| 0              | 1013             | 10130     |
| 300            | 980              | 9800      |
| 400            | 966              | 9660      |
| 600            | 943              | 9430      |
| 800            | 921              | 9210      |
| 1000           | 899              | 8990      |
| 1500           | 842              | 8420      |
| 2000           | 795              | 7950      |

> **Wertebereich der Temperatur in Grad Celsius&#x20;*****rT***
>
> 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 werden automatisch auf den geeigneten Grenzwert korrigiert.
>
> **Wertebereich der relativen Feuchtigkeit in Prozent&#x20;*****rRH***
>
> Die relative Feuchtigkeit in Prozent darf nur Werte zwischen +0.1 und +100.0 Prozent (jeweils einschließlich) annehmen.\
> Werte außerhalb des Wertebereichs werden automatisch auf den geeigneten Grenzwert korrigiert.

#### Sammelstörung *xErr*

Dieser Ausgang dient zur Anzeige von Überschreitungen der zulässigen Wertebereiche.\
Er wird aktiviert (= TRUE), falls die Temperatur in Grad Celsius den Grenzwert -20.0 unterschreitet und / oder den Grenzwert\
+50.0 überschreitet. Er wird auch aktiviert, falls die relative Feuchte in Prozent den Grenzwert +0.1 unterschreitet und / oder den Grenzwert +100.0 überschreitet.\
In allen übrigen Situationen ist der Ausgang nicht aktiv (= FALSE).

### CODESYS

InOut:

| Scope       | Name   | Type   | Initial |
| ----------- | ------ | ------ | ------- |
| Input       | `rT`   | `REAL` |         |
| Input       | `rRH`  | `REAL` |         |
| Input Const | `rP`   | `REAL` | 980.0   |
| Output      | `rH`   | `REAL` |         |
| Output      | `rX`   | `REAL` |         |
| Output      | `rDP`  | `REAL` |         |
| Output      | `xErr` | `BOOL` |         |


---

# 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/hxchart.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.
