# EditReal

## `EditReal` (FB)

FUNCTION\_BLOCK EditReal

### Kurzbeschreibung

> Eingabe eines numerischen Wertes\
> Typische Anwendung: Eingabe einer Solltemperatur

### Darstellung

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

### Schnittstellen

#### Ausgänge

| Name   | Datentyp | Wertebereich | Initialwert | Funktion                |
| ------ | -------- | ------------ | ----------- | ----------------------- |
| *rOut* | REAL     |              |             | Numerischer Ausgabewert |

#### Sollwerte / Parameter

| Name          | Datentyp | Wertebereich | Initialwert | Funktion                |
| ------------- | -------- | ------------ | ----------- | ----------------------- |
| **rSetPoint** | REAL     |              | 0           | Numerischer Eingabewert |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Übergabe eines numerischen Eingabewerts **rSetPoint** und die direkte Übertragung zum numerischen Ausgabewert *rOut*.

{% hint style="warning" %}
**Verhalten bei Spannungsausfall**

Der numerische Eingabewert **rSetPoint** wird spannungsausfallsicher gespeichert und automatisch wiederhergestellt.
{% endhint %}

### Visualisierung

Passendes Visualisierungselement aus der HVACV Visu Library: **EditReal**

#### Darstellung

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

#### Schnittstellen Visu-Element

| Name              | Datentyp | Typ          | Initialwert | Funktion                                                                                                                           |
| ----------------- | -------- | ------------ | ----------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| **rValue**        | REAL     | VAR\_IN\_OUT |             | Numerischen Eingabewert hier eintragen Bsp. EditReal.rSetPoint                                                                     |
| **bDecimals**     | BYTE     | VAR\_INPUT   | 0           | Anzahl der Nachkommastellen hier eintragen z.B. 0= XX ; 1 = XX.X ; 2= XX.XX Die Anzeige wird nicht gerundet sondern abgeschnitten. |
| **sUnit**         | STRING   | VAR\_INPUT   |             | Einheit im Stringformat eingeben z.B. ‘°C’ oder ‘%’                                                                                |
| **rMinInputVisu** | REAL     | VAR\_INPUT   | -1000       | Min Eingabe die im Numpad erscheint und rot aufleuchtet wenn Wert unterschritten wird. Eingabe ist dann nicht möglich.             |
| **rMaxInputVisu** | REAL     | VAR\_INPUT   | 1000        | Max Eingabe die im Numpad erscheint und rot aufleuchtet wenn Wert überschritten wird. Eingabe ist dann nicht möglich.              |
| **sDialogTitle**  | STRING   | VAR\_INPUT   |             | Titel im Stringformat eingeben z.B: ‘Eingabe Raumtemperatur’ - erscheint im Numpad bei der Eingabe.                                |
| **iFieldSizeL**   | INT      | VAR\_INPUT   | 0           | Feld vergrößert sich um Anzahl der eingegebenen Pixel nach links. Wird benötigt um lange Zahlen oder Einheiten anzuzeigen.         |
| **iFieldSizeR**   | INT      | VAR\_INPUT   | 0           | Feld vergrößert sich um Anzahl der eingegebenen Pixel nach rechts. Wird benötigt um lange Zahlen oder Einheiten anzuzeigen.        |

{% hint style="info" %}
Hinweis: VAR\_IN\_OUT Schnittstellen müssen belegt werden, VAR\_INPUT sind optional.
{% endhint %}

### CODESYS

InOut:

| Scope       | Name        | Type   | Initial |
| ----------- | ----------- | ------ | ------- |
| Input Const | `rSetPoint` | `REAL` | 0       |
| Output      | `rOut`      | `REAL` |         |


---

# Agent Instructions: 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:

```
GET https://support.powerio.com/hub/codesys-hvac/hvac-library/functionblocks/setpoint/editreal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
