> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-knx-library/functionblocks/knx_write_dpt_13x.md).

# KNX\_Write\_DPT\_13x

## `KNX_Write_DPT_13x` (FB)

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

#### Overview

Send function for DPT 13.x (4-byte signed integer).

#### Inputs

| Inputs                    | Initial value | Description                          |
| ------------------------- | ------------- | ------------------------------------ |
| `xUpdateSetp`             | *FALSE*       | Trigger for setpoint update          |
| `diValue`                 | -             | DINT value to be sent                |
| `xWriteVisu`              | -             | Trigger for one-time sending         |
| `uiDelta`                 | *1*           | Threshold for value change detection |
| `eDPT_Format`             | -             | DPT 13.x format selection            |
| `byAdrGroup`              | *0*           | Group address (0-255)                |
| `byAdrMiddleGroup`        | *0*           | Middle group address (0-7)           |
| `byAdrMainGroup`          | *0*           | Main group address (0-31)            |
| `tTimeUpdateSetp`         | *T#0S*        | Cyclical update interval             |
| `tPauseTimeUntilNextSend` | *T#3S*        | Sending pause                        |

#### Outputs

* `rFactor` (REAL): conversion factor
* `sUnit` (STRING\[10]): unit of the value
* `tNextWrite` (TIME): time until the next write operation
* `diLastBusValue` (DINT): last received value
* `rLastBusValue` (REAL): last received value as REAL

#### Usage

1. Select the DPT 13.x format with `eDPT_Format`.
2. Set the value to be sent in `diValue`.
3. Configure the sending options:
   * For cyclical sending: `tTimeUpdateSetp` > T#0S
   * For event-based sending: use `xUpdateSetp` or `xWriteVisu`
4. Adjust `uiDelta` to set the sensitivity for value changes.
5. Monitor `diLastBusValue` or `rLastBusValue` for received values.
6. Note `rFactor` for any conversions and `sUnit` for the unit.

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>Setpoint update (on every rising edge<br>)</p>                                                                                  |                |
| Input       | `diValue`                 | `DINT`          |            |                                                                                                                                    |                |
| Input Const | `xWriteVisu`              | `BOOL`          |            | Read once                                                                                                                          |                |
| Input Const | `uiDelta`                 | `UINT`          | 1          | Specification of the delta value                                                                                                   |                |
| Input Const | `eDPT_Format`             | DPT\_13x        |            | Enum DPT\_13x                                                                                                                      |                |
| Input Const | `byAdrGroup`              | `BYTE`          | 0          | Group address                                                                                                                      |                |
| Input Const | `byAdrMiddleGroup`        | `BYTE`          | 0          | Middle group address                                                                                                               |                |
| Input Const | `byAdrMainGroup`          | `BYTE`          | 0          | Main group address                                                                                                                 |                |
| Input Const | `tTimeUpdateSetp`         | `TIME`          | TIME#0ms   | <p>Update interval for the operations influenced by the input<br>‘xUpdateSetp’ 0 = no automatic<br>update, > 0 cyclical update</p> |                |
| Input Const | `tPauseTimeUntilNextSend` | `TIME`          | TIME#3s0ms | Pause after sending 0 = no pause                                                                                                   |                |
| Output      | `rFactor`                 | `REAL`          |            |                                                                                                                                    |                |
| Output      | `sUnit`                   | `STRING(10)`    |            |                                                                                                                                    |                |
| Output      | `tNextWrite`              | `TIME`          |            |                                                                                                                                    |                |
| Output      | `diLastBusValue`          | `DINT`          |            |                                                                                                                                    |                |
| Output      | `rLastBusValue`           | `REAL`          |            |                                                                                                                                    |                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-knx-library/functionblocks/knx_write_dpt_13x.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
