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

---

# Description

KNX Group Object DPT12 is defined for transmitting unsigned counter values from 0 to 4 294 967 295.

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
|  | Octet 4 - MSB | Octet 3 | Octet 2 | Octet 1 - LSB |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 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 |
| 12.001 | counter pulses (unsigned) | 0 ÷ 4 294 967 295 | counter pulses | 1 pulse |

# WriteValue

This function transmits the KNX telegram, including the newvalue in the range

0 ÷ 4 294 967 295 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 Double,
  Optional highpriority As Boolean := False) 
As Boolean
```

#### Parameters

newvalue

Double It is the new value sent to KNX bus in range

0 ÷ 4 294 967 295.

highpriority

Boolean Optional, defaults to False. If False, the command is applied with standard priority on the KNX bus. If it is True, 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 ÷ 4 294 967 295.

#### Syntax

```visualbasic
Function GetValue() As Double
```

#### Return value

Double It is the last received value of the group object. Value is in range 0 ÷ 4 294 967 295.

# OnUpdate

This event is raised when receiving the KNX telegram with the appropriate group address. It returns Double the value received from the KNX telegram.

#### Syntax

```visualbasic
Event OnUpdate As Process (newvalue As Double)
```

#### Parameters

newvalue

Double It is the new value received from the KNX bus in range 0 ÷ 4 294 967 295.