You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Loxone English
Hi, has anyone written a binary decoder? I have a modbus register where i need to put time and date in different bits of a 16-bit register.
As an example i need to put day in bit 11-8 and month in bit 4-0.
Andrew B
unread,
Jan 2, 2018, 7:36:55 PM1/2/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Loxone English
Does it need any validation? How is the data coming in?
Viktor Granbom
unread,
Jan 3, 2018, 9:09:55 AM1/3/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to loxone-...@googlegroups.com
Data is from Loxone Times and should be output to 4 x 16-bit modus registers.
Andrew B
unread,
Jan 3, 2018, 9:13:47 AM1/3/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Loxone English
I do a similar thing to build up 8-bit state bytes from eight binary inputs using the equation function block. A similar technique ought to work here. Failing that picoC can be used, of course.
Viktor Granbom
unread,
Jan 11, 2018, 2:11:09 PM1/11/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Loxone English
Hope that % modulo works in picoc. Otherwise I have to find a new code strategy.