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

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

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