29.07.2024, 04:37
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