# KNX\_Write\_DPT\_1x

## `KNX_Write_DPT_1x` (FB)

FUNCTION\_BLOCK KNX\_Write\_DPT\_1x EXTENDS SlaveBasicWr

#### Eingänge

<table><thead><tr><th>Eingänge</th><th width="426">Initialwert</th><th>Beschreibung</th></tr></thead><tbody><tr><td><code>xUpdateSetp</code></td><td><em>FALSE</em></td><td>Trigger für Sollwert-Aktualisierung</td></tr><tr><td><code>xValue</code></td><td>-</td><td>Zu sendender BOOL-Wert</td></tr><tr><td><code>xWriteVisu</code></td><td>-</td><td>Trigger für einmaliges Senden</td></tr><tr><td><code>eDPT_Format</code></td><td>-</td><td>DPT 1.x Format-Auswahl</td></tr><tr><td><code>byAdrGroup</code></td><td><em>0</em></td><td>Gruppenadresse (0-255)</td></tr><tr><td><code>byAdrMiddleGroup</code></td><td><em>0</em></td><td>Mittlere Gruppenadresse (0-7)</td></tr><tr><td><code>byAdrMainGroup</code></td><td><em>0</em></td><td>Hauptgruppenadresse (0-31)</td></tr><tr><td><code>tTimeUpdateSetp</code></td><td><em>T#0S</em></td><td>Zyklisches Update-Intervall</td></tr><tr><td><code>tPauseTimeUntilNextSend</code></td><td><em>T#3S</em></td><td>Sendepause</td></tr></tbody></table>

#### Ausgänge

* `Encoding` (STRING\[15]): Textuelle Darstellung des Wertes
* `tNextWrite` (TIME): Zeit bis zum nächsten Schreibvorgang
* `xLastBusValue` (BOOL): Letzter empfangener Wert

#### Verwendung

1. Wählen Sie das DPT 1.x Format mit `eDPT_Format`.
2. Setzen Sie den zu sendenden Wert in `xValue`.
3. Konfigurieren Sie die Sendeoptionen:
   * Für zyklisches Senden: `tTimeUpdateSetp` > T#0S
   * Für ereignisbasiertes Senden: Nutzen Sie `xUpdateSetp` oder `xWriteVisu`
4. Überwachen Sie `xLastBusValue` für empfangene Werte.
5. Beachten Sie `Encoding` für die textuelle Interpretation des Wertes.

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>                                                         | SlaveBasicWr   |
| Input       | `xEnable`                 | `BOOL`          | TRUE       |                                                                                                                                                            | SlaveBasicWr   |
| Output      | `sPhysicallAddressDevice` | `STRING(15)`    |            |                                                                                                                                                            | SlaveBasicWr   |
| Output      | `sGroupAddress`           | `STRING(15)`    |            |                                                                                                                                                            | SlaveBasicWr   |
| Input       | `xUpdateSetp`             | `BOOL`          | FALSE      | <p>Aktualisierung der Sollwerte ( bei jeder ansteigenden Flanke<br>)</p>                                                                                   |                |
| Input       | `xValue`                  | `BOOL`          |            |                                                                                                                                                            |                |
| Input Const | `xWriteVisu`              | `BOOL`          |            | Einmal Lessen                                                                                                                                              |                |
| Input Const | `eDPT_Format`             | DPT\_1x         |            | Enum DPT\_1x                                                                                                                                               |                |
| Input Const | `byAdrGroup`              | `BYTE`          | 0          | Groupaddress                                                                                                                                               |                |
| Input Const | `byAdrMiddleGroup`        | `BYTE`          | 0          | Middle-Group-Address                                                                                                                                       |                |
| Input Const | `byAdrMainGroup`          | `BYTE`          | 0          | Main-Group-Adress                                                                                                                                          |                |
| Input Const | `tTimeUpdateSetp`         | `TIME`          | TIME#0ms   | <p>Updateintervall für die Vorgänge, die durch den Eingang<br>‘xUpdateSetp’ beeinflusst werden 0 = kein automatisches<br>Update, > 0 zyklisches Update</p> |                |
| Input Const | `tPauseTimeUntilNextSend` | `TIME`          | TIME#3s0ms | Pause nach dem Senden 0 = kein pause                                                                                                                       |                |
| Output      | `Encoding`                | `STRING(15)`    |            |                                                                                                                                                            |                |
| Output      | `tNextWrite`              | `TIME`          |            |                                                                                                                                                            |                |
| Output      | `xLastBusValue`           | `BOOL`          |            |                                                                                                                                                            |                |


---

# 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_write_dpt_1x.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.
