Logic Machine Forum
correct datatype in KNX script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: correct datatype in KNX script (/showthread.php?tid=2527)



correct datatype in KNX script - toujour - 19.03.2020

Hi Guys,

I'm looking for a simple table to see the correct datatype for every object.....where I can found it ?

For example (I'm writing a script with the creation of new KNX objects):
datatype = dt.float16 for a temperature group address

I'd like know every datatype for the other type of KNX objects.

BR;
Alberto

found it !   Big Grin



dt.bool - 1-bit boolean
dt.bit2 - 1-bit controlled number
dt.bit4 - 3-bit controlled number
dt.char - 1-byte ASCII character string
dt.uint8 - 1-byte unsigned integer
dt.scale - 1-byte unsigned integer [0..100]
dt.angle - 1-byte unsigned integer [0..360]
dt.int8 - 1-byte signed integer
dt.uint16 - 2-byte unsigned integer
dt.int16 - 2-byte signed integer
dt.uint24 - 3-byte unsigned integer
dt.rgb - RGB color, alias of dt.uint24
dt.float16 - 2-byte floating point number
dt.time - 3-byte time / day, table with the following fields:
day - number [0..7]
hour - number [0..23]
minute - number [0..59]
second - number [0..59]
dt.date - 3-byte date, table with the following fields:
day - number [1..31]
month - number [1..12]
year - number [1990-2089]
dt.uint32 - 4-byte unsigned integer number
dt.int32 - 4-byte signed integer number
dt.float32 - 4-byte unsigned integer number
dt.int64 - 8-byte signed integer number
dt.string - 14-byte ASCII string, null characters '\0' are discarded during decoding
dt.text - 250-byte string, cannot be sent to TP bus


RE: correct datatype in KNX script - Daniel - 19.03.2020

If somebody else ask Wink
https://openrb.com/docs/lua.htm#7