Translations:Полезные программы/4/en — различия между версиями
Материал из WebHMI Wiki
(Новая страница: «function main (userId) -- local vars local now = os.time() -- current time local startBit = (GetReg("tmrStartBit") == 1) -- just bit») |
|||
Строка 2: | Строка 2: | ||
-- local vars | -- local vars | ||
local now = os.time() -- current time | local now = os.time() -- current time | ||
− | local startBit = (GetReg("tmrStartBit") == 1) -- | + | local startBit = (GetReg("tmrStartBit") == 1) -- tmr count condition |
+ | local curTmrState = GetReg("TON_out") -- to detect rising falling edges of TON |
Текущая версия на 08:08, 3 мая 2018
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