Translations:Полезные программы/36/en
Материал из WebHMI Wiki
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