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.

grp.checkwrite / grp.checkupdate
#13
Hi, where is error i my checkwrite, because if status objekt ChlazeniSGN (bool) is diference from 11/1/13, there is no write to bus
Code:
Antizamrz=grp.getvalue("11/1/120")
Outtemp=grp.getvalue("11/5/0",dt.float16)
INtemp=math.ceil(grp.getvalue("11/1/117",dt.float16))
Porucha1=grp.getvalue("11/1/118")
Porucha2=grp.getvalue("11/1/119")
ChlazeniSGN=grp.getvalue("11/1/113", dt.bool)

if Porucha1==true or Porucha2==true
  then grp.write("11/1/0", false) 
end

VZT=grp.getvalue("11/1/100")

if (Antizamrz==false and INtemp > 21.5 and VZT==true and Outtemp > 20)
    then grp.checkwrite('11/1/13', true, ChlazeniSGN)
  else
    grp.checkwrite('11/1/13', false, ChlazeniSGN)
end
Reply


Messages In This Thread
grp.checkwrite / grp.checkupdate - by Dré - 30.12.2022, 09:12
RE: grp.checkwrite / grp.checkupdate - by sx3 - 02.01.2023, 11:39
RE: grp.checkwrite / grp.checkupdate - by 2MAX - 29.07.2024, 04:37

Forum Jump: