# KNX\_Read\_DPT\_6x

## `KNX_Read_DPT_6x` (FB)

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

#### Overview

Read function for DPT 6.x (8-bit signed).

#### Inputs

| Inputs             | Initial value | Description                             |
| ------------------ | ------------- | --------------------------------------- |
| `xRequest`         | *FALSE*       | Trigger for single read                 |
| `xRequestVisu`     | *FALSE*       | Trigger for single read (visualization) |
| `tRequestTime`     | *T#0S*        | Interval for cyclic reading             |
| `eDPT_Format`      | -             | DPT 6.x format selection                |
| `byAdrGroup`       | *0*           | Group address (0-255)                   |
| `byAdrMiddleGroup` | *0*           | Middle group address (0-7)              |
| `byAdrMainGroup`   | *0*           | Main group address (0-31)               |
| `iInitValue`       | *0*           | Initial value at `InitOption.InitValue` |
| `eInitOption`      | -             | Initialization option                   |

#### Outputs

* `iValue` (INT): Received integer value
* `sUnit` (STRING\[10]): Unit of the value
* `xStatus_A` to `xStatus_E` (BOOL): Status bits (only for DPT 6.020)
* `xMode_0` to `xMode_2` (BOOL): Mode bits (only for DPT 6.020)
* `tNextRequest` (TIME): Time until next read operation

#### Usage

1. Select the DPT 6.x format with `eDPT_Format`.
2. Configure the read options as with the previous blocks.
3. Monitor `iValue` for received values and `sUnit` for the unit.
4. For DPT 6.020: Note the additional status and mode bits.

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`          |          | Single Read                                                                                        |                |
| Input Const | `xRequestVisu`            | `BOOL`          |          | Single Read                                                                                        |                |
| Input Const | `tRequestTime`            | `TIME`          | TIME#0ms | Monitoring time                                                                                    |                |
| Input Const | `eDPT_Format`             | DPT\_6x         |          | Enum DPT\_6x                                                                                       |                |
| 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 | `iInitValue`              | `INT`           |          |                                                                                                    |                |
| Input Const | `eInitOption`             | InitOption      |          |                                                                                                    |                |
| Output      | `iValue`                  | `INT`           |          |                                                                                                    |                |
| Output      | `sUnit`                   | `STRING(10)`    |          |                                                                                                    |                |
| Output      | `xStatus_A`               | `BOOL`          |          |                                                                                                    |                |
| Output      | `xStatus_B`               | `BOOL`          |          |                                                                                                    |                |
| Output      | `xStatus_C`               | `BOOL`          |          |                                                                                                    |                |
| Output      | `xStatus_D`               | `BOOL`          |          |                                                                                                    |                |
| Output      | `xStatus_E`               | `BOOL`          |          |                                                                                                    |                |
| Output      | `xMode_0`                 | `BOOL`          |          |                                                                                                    |                |
| Output      | `xMode_1`                 | `BOOL`          |          |                                                                                                    |                |
| Output      | `xMode_2`                 | `BOOL`          |          |                                                                                                    |                |
| 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/en/hvac-knx-library/functionblocks/knx_read_dpt_6x.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.
