Logic Machine Forum
Splitting 6-byte object to smaller pieces - 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: Splitting 6-byte object to smaller pieces (/showthread.php?tid=3850)



Splitting 6-byte object to smaller pieces - Vaisahko_FIN - 03.02.2022

Hello,

I'm working on DALI emergency lighting test and alarm system with Spacelynk.

KNX-Dali gateway gives me test result of EM converter in DPT 245.600 format (6-byte). Format is N4N4N4N2N2N2N2U16U8, where eg. the highest 4-bit set is telling the result of last funtion test (numeric values 1-4 possible).

Any ideas how can I pick different set of bits / bytes to own variables with Lua?


RE: Splitting 6-byte object to smaller pieces - admin - 03.02.2022

See this: https://forum.logicmachine.net/showthread.php?tid=1511