# KNX\_Read\_Data

## `KNX_Read_Data` (FB)

FUNCTION\_BLOCK KNX\_Read\_Data EXTENDS SlaveBasic

#### Overview

The KNX\_Read\_Data function block is used to receive KNX data without specific DPT conversion. It is especially useful for progressive controls, such as in lighting control.

#### Inputs

| Inputs             | Initial value | Description                |
| ------------------ | ------------- | -------------------------- |
| `byAdrGroup`       | *0*           | Group address (0-255)      |
| `byAdrMiddleGroup` | *0*           | Middle group address (0-7) |
| `byAdrMainGroup`   | *0*           | Main group address (0-31)  |

#### Outputs

* `abyDaten` (ARRAY\[0..38] OF BYTE): Received raw data

#### Usage

1. **Configure group address**:
   * Set `byAdrMainGroup` (0-31)
   * Set `byAdrMiddleGroup` (0-7)
   * Set `byAdrGroup` (0-255)
2. **Data reception**:
   * The block automatically receives data when it is sent to the configured group address.
   * The received data are stored in the `abyDaten` array.
3. **Data processing**:
   * The received data in the `abyDaten` array can be further processed as needed.
   * Since no DPT conversion takes place, you must interpret the data yourself.

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 Const | `byAdrGroup`              | `BYTE`                 | 0       | Group address                                                                                      |                |
| Input Const | `byAdrMiddleGroup`        | `BYTE`                 | 0       | Middle-Group-Address                                                                               |                |
| Input Const | `byAdrMainGroup`          | `BYTE`                 | 0       | Main-Group-Adress                                                                                  |                |
| Output      | `abyDaten`                | ARRAY \[0..38] OF BYTE |         |                                                                                                    |                |


---

# 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/en/hvac-knx-library/functionblocks/knx_read_data.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.
