By Nuno Narciso on Friday, 15 November 2024
Category: Home Automation

Complete Guide to KNX Datapoint Types: Everything You Need to Know About KNX Data Types With Examples of How They Work

The KNX protocol is a standard for building and home automation, allowing interconnection and communication between various devices like switches, sensors, actuators, and controllers. For all KNX devices to communicate effectively, data exchange must follow a standardized structure. This is where Data Point Types (DPTs), known as KNX Data Types, come in.

DPTs are defined by the KNX specification to ensure that different manufacturers can develop compatible devices. These data types specify how data is represented, transmitted, and interpreted. The correct definition of the data type prevents conflicts and ensures that the transmitted information is understood by all devices in the installation.

KNX data types are categorized based on their format and intended application. In this article, I will detail the main data types, from the simplest ones like binary commands (1 bit) to the more complex ones such as text strings (16 bytes) and floating-point values.

Binary Data Types

Binary data types are the simplest and most widely used in KNX for representing basic commands like on/off, open/close, and enable/disable.

DPT 1.xxx – 1 Bit (Binary Command)

DPT 1.xxx data types use only 1 bit of information, making them suitable for boolean states (true/false, on/off).




DPT 2.xxx – 2 Bits (Binary Command with Status)

DPT 2.xxx data types use 2 bits, allowing both the command and the status of the device to be transmitted. This approach provides greater security and reliability in communication.

Simple Numeric Data Types

Numeric data types allow the transmission of integer and percentage values, frequently used for lighting control and parameter adjustments.

DPT 5.xxx – 1 Byte (8 Bits, Numeric Values)

DPT 5.xxx data types use 1 byte (8 bits) to transmit a numeric value. They are widely used for scalar values such as light intensity and blind position.



DPT 6.xxx – 1 Byte Signed (Signed Integer)

The DPT 6.xxx data types use 1 byte to represent signed integer values, allowing the transmission of both negative and positive values.

Signed and Unsigned Numeric Data Types

More precise numeric data types are often used for measurements and counts, especially in applications requiring a wider range of values.

DPT 7.xxx – 2 Bytes (Unsigned Integer)

The DPT 7.xxx data types use 2 bytes (16 bits) to represent unsigned integer values, allowing the transmission of values from 0 to 65,535.

DPT 8.xxx – 2 Bytes Signed (Signed Integer)

The DPT 8.xxx data types also use 2 bytes but allow for the representation of both positive and negative integer values, ranging from -32,768 to +32,767.


DPT 9.xxx – 2 Bytes Float (Floating Point)

The DPT 9.xxx data types are used to transmit floating-point values, allowing for higher precision in measurements such as temperature, humidity, and pressure.




Advanced Data Types

These data types are used for applications requiring higher complexity, such as time, date, and text transmission.

DPT 10.xxx – 3 Bytes (Time and Date)

The DPT 10.xxx data types allow for the transmission of time information, such as time and date, using 3 bytes.



DPT 11.xxx – 3 Bytes (Date)

The DPT 11.xxx data types are used to represent only the date (day, month, and year).

DPT 12.xxx – 4 Bytes (Unsigned Integer, 32 Bits)

The DPT 12.xxx data types use 4 bytes to represent 32-bit unsigned integer values, allowing for the transmission of very large values.

DPT 13.xxx – 4 Bytes Signed (Signed Integer, 32 Bits)

The DPT 13.xxx data types also use 4 bytes but allow for signed values, from -2,147,483,648 to +2,147,483,647.

DPT 14.xxx – 4 Bytes Float (High Precision)

The DPT 14.xxx data types are used for transmitting high-precision floating-point values.

DPT 16.xxx – Strings (Text, 14 Bytes)

Complete Table of KNX Data Types

1. Binary Data Types (1 Bit)

Data Type Name Size Value Range​DescriçãoPractical Example
DPT 1.001 Switch​ 1 bit​ 0, 1​On/off commandLight switch
DPT 1.002​Bool​1 bit0, 1​Generic boolean valueScene activation
DPT 1.003​Enable​1 bit​0, 1Enable/disableFunction activation
DPT 1.008Up/Down​​1 bit​0, 1Up/down controlShutter control
DPT 1.009​Open/Close​1 bit​0, 1Open/closeValve control

2. Control Data Types (2 and 3 Bits)

Data Type Name Size Value Range​DescriptionPractical Example
DPT 2.001Switch Control​​2 bits​0-3Command with stateSwitch with feedback
DPT 3.007​Dimming Control4 bits​​0-15Intensity controlProgressive dimming
DPT 3.008Blinds Control​4 bits​​0-15Shutter controlPosition adjustment

3. Percentual and Small Value Data Types (1 Byte)

Data Type Name Size Value Range​DescriptionPractical Example
DPT 5.001Scaling1 byte0-255 (0-100%)PercentageDimmer light control
DPT 5.004Angle1 byte0-255 (0-360º)Rotation angleServo motor control
DPT 5.010Step1 byte​0-255Increment/decrementVentilation adjustment

4. Integer Data Types (Signed and Unsigned)

Data Type Name Size Value RangeDescriptionPractical Example
DPT 6.010​Counter Value​1 byte​-128 to 127Signed integer valueEvent count
DPT 7.001​Unsigned Value 16-bit​2 bytes​0-65,535Unsigned integer valueWater meter reading
DPT 8.001​Signed Value 16-bit​2 bytes​-32,768 to 32,767Signed integer valueNegative temperature reading

5. Tipos de Dados Flutuantes (Float)

Data Type Name Size Value Range​DescriptionPractical Example
DPT 9.001​Temperature​2 bytes​-273 to 670Floating point temperatureAmbient temperature sensor
DPT 9.005​Illumination​2 bytes​0 to 670,760 luxLight measurementLuminosity sensor
DPT 14.001​Acceleration​4 bytes​FloatAcceleration in m/s²Motion sensor

6. Tipos de Dados para Data e Hora

Data Type Name Size Value Range​DescriptionPractical Example
DPT 10.001​Time of Day​3 bytes​HH:MMCurrent time​Sincronização horária
DPT 11.001​Date​3 bytes​MMCurrent dateSending date for recording
DPT 19.001​Date and Time​8 bytesCombinedDate and time combinedMaster clock in automation

7. HVAC Data Types

Data Type Name Size Value Range​DescriptionPractical Example
DPT 20.102​HVAC Mode​1 byte​0-255HVAC operation modeSwitching to heating mode
DPT 21.100​HVAC Control Mode​1 byte​0-255HVAC control modeAmbient temperature control

8. Complex and Text Data Types

Data Type Name Size Value Range​DescriptionPractical Example
DPT 16.001​ASCII String​14 bytes14 charactersText messageDisplay message on KNX screen
DPT 232.600​Extended Message​14 bytesExtended dataComplex messagesCustom alarm message

Conclusion

KNX data types form the foundation for effective and standardized communication between automation devices, enabling interoperability and scalability in systems. This detailed guide covered the variety of available data types, from simple binary commands to complex floating-point values and extended messages. With this knowledge, you can configure KNX systems more efficiently, optimizing functionalities for lighting, HVAC, shutter control, and other applications. Investing time in choosing the correct data types is essential for ensuring performance, accuracy, and robustness in residential and building automation systems.

Leave Comments