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.

How to script the control logic of air conditioner?
#6
This example will set out_value depending on input temperature. This should be an event script attached to temperature sensor object so it executes each time temperature value changes.
Code:
value = event.getvalue() if temp >= 24 then   out_value = 1 elseif temp >= 15 then   out_value = 2 elseif temp >= 10 then   out_value = 3 else   out_value = 4 end grp.write('3/5/37', out_value)
Reply


Messages In This Thread
RE: How to script the control logic of air conditioner? - by admin - 09.04.2020, 06:39

Forum Jump: