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.

Data type
#1
Code:
-- Gets values
value1 = grp.getvalue('3/3/0')
value2 = grp.getvalue('3/3/1')
-- Math calculus, is, us, uh
if value1 > value2 then
-- Writes correct value to group address
grp.update('3/3/9', value2)
else
grp.update('3/3/9', value1)
end

I have this script that compares two values and writes the lowest value to a group address. However, I´m not writing it in the correct format. Consequently, the data will not display on screens in the house. ETS does not recognise the data type as a temperature, rather as a 2-byte float.

How do I write a 9.001 Temperature data type to the group?
Reply


Messages In This Thread
Data type - by FatMax - 09.12.2015, 10:50
RE: Data type - by admin - 09.12.2015, 11:21
RE: Data type - by FatMax - 09.12.2015, 11:43
RE: Data type - by admin - 09.12.2015, 12:02
RE: Data type - by FatMax - 09.12.2015, 12:30
RE: Data type - by admin - 09.12.2015, 12:38
RE: Data type - by FatMax - 09.12.2015, 12:41
RE: Data type - by FatMax - 09.12.2015, 17:36

Forum Jump: