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.

Script Error. HELP
#1
Hi Everyone,

I'm having some problems with this script. The logic is able to activate the output but It doesn't turn it off and I don't understand why.

Can someone help me to figure out this?

--dichiarazione delle variabili locali

gRichiestaDeumidificazione = ("7/0/0")
gStatoDeumidificazione = ("7/1/0")
gStagione = ("0/2/2") --gruppo stagione invertito: 1= raffrescamento / 0= riscaldamento
gSogliaZona1 = ("7/3/0")
gSogliaZona2 = ("7/3/2")
gSogliaZona3 = ("7/3/4")
gSogliaZona4 = ("7/3/14")
gSogliaZona5 = ("")
gSogliaZona6 = ("")


-------------------------------non toccare più nulla sotto questa riga------------------------------------------


Zn1 = grp.getvalue(gSogliaZona1)
Zn2 = grp.getvalue(gSogliaZona2)
Zn3 = grp.getvalue(gSogliaZona3)
Zn4 = grp.getvalue(gSogliaZona4)
Zn5 = grp.getvalue(gSogliaZona5)
Zn6 = grp.getvalue(gSogliaZona6)
Stagione = grp.getvalue(gStagione)


if (Zn1 or Zn2 or Zn3 or Zn4 or Zn5 or Zn6) and Stagione then
   
  grp.checkwrite(gRichiestaDeumidificazione, 1, true, gStatoDeumidificazione)
else
grp.checkwrite(gRichiestaDeumidificazione, 0, false, gStatoDeumidificazione)

end
Reply


Messages In This Thread
Script Error. HELP - by Tuwat47 - 29.07.2024, 08:30
RE: Script Error. HELP - by Daniel - 29.07.2024, 09:12
RE: Script Error. HELP - by Tuwat47 - 29.07.2024, 09:27
RE: Script Error. HELP - by Daniel - 29.07.2024, 09:50
RE: Script Error. HELP - by admin - 29.07.2024, 10:16

Forum Jump: