# KNX\_Read\_DPT\_19x

## `KNX_Read_DPT_19x` (FB)

FUNCTION\_BLOCK KNX\_Read\_DPT\_19x EXTENDS SlaveBasic

#### Überblick

Lesefunktion für DPT 19.x (Datum und Zeit).

#### Eingänge

| Eingänge           | Initialwert | Beschreibung                                  |
| ------------------ | ----------- | --------------------------------------------- |
| `xRequest`         | *FALSE*     | Trigger für einmaliges Lesen                  |
| `xRequestVisu`     | *FALSE*     | Trigger für einmaliges Lesen (Visualisierung) |
| `tRequestTime`     | *T#0S*      | Intervall für zyklisches Lesen                |
| `eDPT_Format`      | -           | DPT 19.x Format-Auswahl                       |
| `byAdrGroup`       | *0*         | Gruppenadresse (0-255)                        |
| `byAdrMiddleGroup` | *0*         | Mittlere Gruppenadresse (0-7)                 |
| `byAdrMainGroup`   | *0*         | Hauptgruppenadresse (0-31)                    |
| `dtInitValue`      | -           | Initialwert (nicht wirksam)                   |
| `eInitOption`      | -           | Initialisierungsoption                        |

#### Ausgänge

* `wYear` (WORD): Jahr
* `wMonth` (WORD): Monat
* `wDayOfMonth` (WORD): Tag des Monats
* `wDayOfWeek` (WORD): Wochentag
* `wHourOfDay` (WORD): Stunde
* `wMinutes` (WORD): Minuten
* `wSeconds` (WORD): Sekunden
* `tNextRequest` (TIME): Zeit bis zum nächsten Lesevorgang

#### Verwendung

1. Wählen Sie das DPT 19.x Format mit `eDPT_Format`.
2. Konfigurieren Sie die Leseoptionen:
   * Für zyklisches Lesen: `tRequestTime` > T#0S
   * Für ereignisbasiertes Lesen: Nutzen Sie `xRequest` oder `xRequestVisu`
3. Setzen Sie `eInitOption` für die Initialisierung (Beachten Sie, dass `dtInitValue` nicht wirksam ist).
4. Überwachen Sie die einzelnen Zeitkomponenten (wYear, wMonth, etc.) für empfangene Werte.

InOut:

| Scope       | Name                      | Type            | Initial  | Comment                                                                                            | Inherited from |
| ----------- | ------------------------- | --------------- | -------- | -------------------------------------------------------------------------------------------------- | -------------- |
| Input       | `itfKnxConnector`         | `IKnxConnector` |          | <p>IMasterConnector interface input to register/unregister<br>the FB to the List on the Master</p> | SlaveBasic     |
| Input       | `xEnable`                 | `BOOL`          | TRUE     |                                                                                                    | SlaveBasic     |
| Output      | `sPhysicallAddressDevice` | `STRING(15)`    |          |                                                                                                    | SlaveBasic     |
| Output      | `sGroupAddress`           | `STRING(15)`    |          |                                                                                                    | SlaveBasic     |
| Input       | `xRequest`                | `BOOL`          |          | Einmal Lessen                                                                                      |                |
| Input Const | `xRequestVisu`            | `BOOL`          |          | Einmal Lessen                                                                                      |                |
| Input Const | `tRequestTime`            | `TIME`          | TIME#0ms | Überwachungszeit                                                                                   |                |
| Input Const | `eDPT_Format`             | DPT\_19x        |          | Enum DPT\_19x                                                                                      |                |
| Input Const | `byAdrGroup`              | `BYTE`          | 0        | Groupaddress                                                                                       |                |
| Input Const | `byAdrMiddleGroup`        | `BYTE`          | 0        | Middle-Group-Address                                                                               |                |
| Input Const | `byAdrMainGroup`          | `BYTE`          | 0        | Main-Group-Adress                                                                                  |                |
| Input Const | `dtInitValue`             | `DT`            |          | nicht wirksam                                                                                      |                |
| Input Const | `eInitOption`             | InitOption      |          |                                                                                                    |                |
| Output      | `wYear`                   | `WORD`          |          |                                                                                                    |                |
| Output      | `wMonth`                  | `WORD`          |          |                                                                                                    |                |
| Output      | `wDayOfMonth`             | `WORD`          |          |                                                                                                    |                |
| Output      | `wDayOfWeek`              | `WORD`          |          |                                                                                                    |                |
| Output      | `wHourOfDay`              | `WORD`          |          |                                                                                                    |                |
| Output      | `wMinutes`                | `WORD`          |          |                                                                                                    |                |
| Output      | `wSeconds`                | `WORD`          |          |                                                                                                    |                |
| Output      | `tNextRequest`            | `TIME`          |          |                                                                                                    |                |


---

# 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-knx-library/functionblocks/knx_read_dpt_19x.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.
