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.

EnOcean profiles supported in LM
#15
First, you have to create one object with 4-byte unsigned integer data type and another with 1-byte scaled. 4-byte object should be mapped to KNX > EnOcean object with 4-byte RAW profile. Previous script should be mapped to 1-byte object and resulting grp.update (replace grp.write with it) should update 4-byte object with new value.

Use this code to send learn telegram to 4-byte object.
Code:
b3 = 0xE0
b2 = 0x47
b1 = 0xFF
b0 = 0x00

a3 = bit.lshift(b3, 24)
a2 = bit.lshift(b2, 16)
a1 = bit.lshift(b1, 8)

res = bit.bor(a3,a2,a1,b0)

grp.update('1/1/5', res, dt.uint32)
Reply


Messages In This Thread
EnOcean profiles supported in LM - by edgars - 09.11.2015, 11:03
RE: EnOcean profiles supported in LM - by admin - 27.11.2015, 13:43

Forum Jump: