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.

temperature compare script and FB
#1
hi 
i need a code to compare between 2 Temperatures (Actual (4/0/3) , Setpoint(4/0/2) ) 
i received a actual point from Keypad and set Point Entered to Knx valve actuator ? and if actual == setpoint write 0 to output (4/0/0) and if else write 1 to same Output !

i write this but not run 
_________________________________________
value_1 = grp.getvalue('4/0/3')
value_2 = grp.getvalue('4/0/2')
if value_1 == value_2 then
grp.write('4/0/0', true) -- bit to 0
else
grp.write('4/0/0', false) -- bit to 1
end
________________________________________

I Need correct code or FB Edit
Reply


Messages In This Thread
temperature compare script and FB - by amrMustafa - 07.12.2023, 08:39

Forum Jump: