This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

6byte - DPT
#1
Hi gyus, 

How could I read a 6byte alarm code from the knx bus (Please , see attached )

Attached Files Thumbnail(s)
   
Reply
#2
You can use "14 byte ASCII string" data type. In event script you can check the event.datahex variable contents to determine what kind of alarm it is.
Reply
#3
(16.08.2022, 09:34)admin Wrote: You can use "14 byte ASCII string" data type. In event script you can check the event.datahex variable contents to determine what kind of alarm it is.

Please, Could I just get an example of the first alarm code ?
Reply
#4
Code:
alarm = event.datahex:sub(3, 12)

if alarm == '000A030C05' then
  log('jammed')
elseif alarm == '0101020C05' then
  log('backup')
end
Reply
#5
(16.08.2022, 09:44)admin Wrote:
Code:
alarm = event.datahex:sub(3, 12)

if alarm == '000A030C05' then
  log('jammed')
elseif alarm == '0101020C05' then
  log('backup')
Thanks
Reply


Forum Jump: