Translations:Полезные программы/36/ru

Материал из WebHMI Wiki
Перейти к: навигация, поиск

if (not acError1) and (not acError2) then

   -- работаем по циркуляции 
   if (now >= switchTime) then 
       if (curActiveAC == 1) then 
           WriteReg("activeAC", 2);
       else 
           WriteReg("activeAC", 1);
       end
       WriteReg("switchTime", now + CIRCULATION_TIME);
   end 

elseif acError1 and (not acError2) then

       WriteReg("activeAC", 2);

elseif acError2 and (not acError1) then

       WriteReg("activeAC", 1);

else

       WriteReg("activeAC", 0);

end -- if no errors