08.11.2018, 14:20
Hi
Been testing this at the office and got this to work.
Used this to decode the bits:
Runs as Event based script in each register.
Works like a charm.
This is the result.
The objects called "dummy_something" is bits not explained in the application note.
Its the only thing I can't figure out.
Eirik
Been testing this at the office and got this to work.
Used this to decode the bits:
Code:
function getbit(value, nr)
value = bit.rshift(value, nr)
return bit.band(value, 1) == 1
end
value = event.getvalue()
grp.checkupdate('32/5/1', getbit(value, 0))
grp.checkupdate('32/5/2', getbit(value, 1))
grp.checkupdate('32/5/3', getbit(value, 2))
grp.checkupdate('32/5/4', getbit(value, 3))
grp.checkupdate('32/5/5', getbit(value, 4))
grp.checkupdate('32/5/6', getbit(value, 5))
grp.checkupdate('32/5/7', getbit(value, 6))
grp.checkupdate('32/5/8', getbit(value, 7))
Works like a charm.
This is the result.
The objects called "dummy_something" is bits not explained in the application note.
Its the only thing I can't figure out.
AN049_v1.0_Exiway Smart Control - SpaceLYnk.pdf (Size: 760.24 KB / Downloads: 14)
Eirik