---
title: "KNX Group Object DPT7"
canonical: "https://docs.cuesystem.com/space/CVCHELP/525336585/KNX%20Group%20Object%20DPT7"
format: markdown
---
> Macro (toc)

---

# Description

KNX Group Object DPT7 is defined for transmitting unsigned values from 0 up to 65 535.

|  |  |  |
| --- | --- | --- |
|  | Octet 2 - MSB | Octet 1 - LSB |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Field | Unsigned Value |

# DPT Dimensions

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| DPT Dimensions | Name | Range | Unit | Resolution |
| 7.001 | pulses | 0 ÷ 65 535 | pulses | 1 pulse |
| 7.002 | time (ms) | 0 ms ÷ 6 5535 ms | ms | 1 ms |
| 7.003 | time (10 ms) | 0 s ÷ 655,35 s | ms | 10 ms |
| 7.004 | time (100 ms) | 0 s ÷ 6 553,5 s | ms | 100 ms |
| 7.005 | time (s) | 0 s ÷ 65 535 s<br>(≅ 18,2 hours) | s | 1 s |
| 7.006 | time (min) | 0 min ÷ 65 535 min<br>(≅ 45,5 days) | min | 1 min |
| 7.007 | time (h) | 0 h ÷ 65 535 h<br>(≅ 7,4 years) | h | 1 h |
| 7.010 | property data type | Identifier Interface Object Property<br>data type. No Unit. | n.a. | n.a. |
| 7.011 | length (mm) | 0 ÷ 65 535 mm | mm | 1 mm |
| 7.012 | current (mA) | 0 = no bus power supply functionality available | none | n.a. |
| 1 ÷ 65 535 mA | mA | 1 mA |
| 7.013 | brightness (lux) | 0 ÷ 65 535 lux | lux | 1 lux |

# WriteValue

This function transmits the KNX telegram including the newvalue in range 0 ÷ 65535 to the group address defined in the driver property. This function returns True if the function success, else it returns False. A function GetLastError returns the error number that occurred while executing the command. The errors that can happen: <u>[10000](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10000)</u>, <u>[10002](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10002)</u>, <u>[10003](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10003)</u>, <u>[10004](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10004)</u>, <u>[10005](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10004)</u>.

#### Syntax

```visualbasic
Function WriteValue (
  newvalue As Long,
  Optional highpriority As Boolean := False) 
As Boolean
```

#### Parameters

newvalue

Long It is the new value sent to the KNX bus in range 0 ÷ 65535.

highpriority

Boolean Optional, defaults to False. If it is False, then the command is applied with standard priority on the KNX bus. If it is True, then the command is applied with a high priority on the KNX bus.

#### Return value

Boolean This function returns True on success or False if an error occurs. A function GetLastError returns the error number.

# WriteTime

This function transmits the KNX telegram including data converted from parameter newtime to the group address defined in the driver property. Programmer friendly parameter newtime is used in this function. This format is suitable for DPT Dimension 7.002 to 7.007, where the time scale is defined. This function returns True if the function success, else it returns False. A function GetLastError returns the error number that occurred while executing the command. The errors that can happen: <u>[10000](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10000)</u>, <u>[10002](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10002)</u>, <u>[10003](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10003)</u>, <u>[10004](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10004)</u>, <u>[10005](/wiki/spaces/CVCHELP/pages/510525445/Command+errors#10004)</u>.

#### Syntax

```visualbasic
Function WriteTime(
  newtime As Time,
  Optional highpriority As Boolean := False) 
As Boolean
```

#### Parameters

newtime

Time It is the new value sent to the KNX bus. Range depends on selected DPT Dimension.

highpriority

Boolean Optional, defaults to False. If it is False, then the command is applied with standard priority on the KNX bus. If it is True, then the command is applied with a high priority on the KNX bus.

#### Return value

Boolean This function returns True on success or False if an error occurs. A function GetLastError returns the error number.

# GetValue

This function returns the last value of the group object with the given address received from the KNX bus in range 0 ÷ 65535.

#### Syntax

```visualbasic
Function GetValue() As Long
```

#### Return value

Long It is the last received value of the group object. Value is in the range 0 ÷ 65535.

# GetTime

This function returns the last value of the group object with the given address received from the KNX bus in Time format. This function is suitable for DPT Dimension 7.002 to 7.007, where the time scale is defined. In other DPT Dimensions it returns (0:0.0).

#### Syntax

```visualbasic
Function GetTime() As Time
```

#### Return value

Time It is the last received value of the group object. Range depends on selected DPT Dimension.

# OnUpdate

This event is raised when the KNX telegram with the appropriate group address is received. It returns all possible formats of data received from the KNX telegram.

#### Syntax

```visualbasic
Event OnUpdate As Process(
  newvalue As Long,
  newtime As Time)
```

#### Parameters

newvalue

Long It is the new value received from the KNX bus in the range 0 ÷ 65535.

newtime

Time It is the new value received from the KNX bus in time format. Range depends on selected DPT Dimension. This function is suitable for DPT Dimension 7.002 to 7.007, where the time scale is defined. In other DPT Dimensions, it is set to (0:0.0).