Translations:Полезные программы/4/en
Материал из WebHMI Wiki
Версия от 08:08, 3 мая 2018; Evgeniy.mozoliak (обсуждение | вклад)
function main (userId)
-- local vars
local now = os.time() -- current time local startBit = (GetReg("tmrStartBit") == 1) -- tmr count condition local curTmrState = GetReg("TON_out") -- to detect rising falling edges of TON