# EditTOD

## `EditTOD` (FB)

FUNCTION\_BLOCK EditTOD

### Kurzbeschreibung

> Eingabe eines Zeitpunkts im Laufe eines Tages im Format TIME\_OF\_DAY (tod#15:24:00)\
> Typische Anwendung: Festlegung des Schaltzeitpunkts im Laufe eines Tages

### Darstellung

<figure><img src="https://879424349-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-dffdd9a5aaddef8de6190506027e814024d7aa21%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Schnittstellen

#### Ausgänge

| Name     | Datentyp      | Wertebereich | Initialwert | Funktion                            |
| -------- | ------------- | ------------ | ----------- | ----------------------------------- |
| *todOut* | TIME\_OF\_DAY |              |             | Ausgabewert im Format TIME\_OF\_DAY |

#### Sollwerte / Parameter

| Name            | Datentyp      | Wertebereich | Initialwert  | Funktion                            |
| --------------- | ------------- | ------------ | ------------ | ----------------------------------- |
| **todSetPoint** | TIME\_OF\_DAY |              | TOD#00:00:00 | Eingabewert im Format TIME\_OF\_DAY |

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein dient zur Übergabe eines Eingabewerts im Format TIME\_OF\_DAY **todSetPoint** und die direkte Übertragung zum Ausgabewert im Format TIME\_OF\_DAY *todOut*.

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

Der Eingabewert im Format TIME\_OF\_DAY **todSetPoint** wird spannungsausfallsicher gespeichert und automatisch wiederhergestellt.
{% endhint %}

### CODESYS

InOut:

| Scope       | Name          | Type  | Initial           |
| ----------- | ------------- | ----- | ----------------- |
| Input Const | `todSetPoint` | `TOD` | TIME\_OF\_DAY#0:0 |
| Output      | `todOut`      | `TOD` |                   |
