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

Материал из WebHMI Wiki
Версия от 10:19, 26 марта 2018; Evgeniy.mozoliak (обсуждение | вклад) (Новая страница: «if (not acError1) and (not acError2) then -- work on circulation if (now >= switchTime) then if (curActiveAC == 1) then WriteReg("a…»)

(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

if (not acError1) and (not acError2) then

   -- work on circulation
   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