# EditDate

## `EditDate` (FB)

FUNCTION\_BLOCK EditDate

### Kurzbeschreibung

> Eingabe eines Datums im Format DATE (d#2017-11-21)\
> Typische Anwendung: Festlegung eines Datums für einen Schaltvorgang

### Darstellung

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

### Schnittstellen

#### Ausgänge

| Name   | Datentyp | Wertebereich | Initialwert | Funktion                   |
| ------ | -------- | ------------ | ----------- | -------------------------- |
| *dOut* | DATE     |              |             | Ausgabewert im Format DATE |

#### Sollwerte / Parameter

| Name          | Datentyp | Wertebereich | Initialwert | Funktion                   |
| ------------- | -------- | ------------ | ----------- | -------------------------- |
| **dSetPoint** | DATE     |              |             | Eingabewert im Format DATE |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Übergabe eines Eingabewerts im Format DATE **dSetPoint** und die direkte Übertragung zum Ausgabewert im Format DATE *dOut*.

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

Der Eingabewert im Format Date **dSetPoint** wird spannungsausfallsicher gespeichert und automatisch wiederhergestellt.
{% endhint %}

### Visualisierung

Passendes Visualisierungselement aus der HVACV Visu Library: **EditDate1** und **EditDate2**

#### Darstellung

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

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

#### Schnittstellen Visu-Element

| Name             | Datentyp | Typ          | Initialwert | Funktion                                                                     |
| ---------------- | -------- | ------------ | ----------- | ---------------------------------------------------------------------------- |
| **datDate**      | DATE     | VAR\_IN\_OUT |             | Hier DATE Variable eintragen Bsp. vom Baustein HVAC.EditDate.dSetPoint       |
| **DisableInput** | BOOL     | VAR\_INPUT   | FALSE       | Hier kann die Eingabe deaktiviert werden. Das Element wird dabei ausgegraut. |

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

### CODESYS

InOut:

| Scope       | Name        | Type   |
| ----------- | ----------- | ------ |
| Input Const | `dSetPoint` | `DATE` |
| Output      | `dOut`      | `DATE` |


---

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