Translations:Полезные программы/36/en — различия между версиями

Материал из WebHMI Wiki
Перейти к: навигация, поиск
(Новая страница: «if (not acError1) and (not acError2) then -- work on circulation if (now >= switchTime) then if (curActiveAC == 1) then WriteReg("a…»)
 
(нет различий)

Текущая версия на 10:19, 26 марта 2018

Информация о сообщении (править)
Это сообщение не имеет описания. Если вы знаете, где или как это сообщение используется, то можете помочь другим переводчикам, добавив к нему описание.
Формулировка сообщения (Полезные программы)
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
Перевод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

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