{$LUA}
if syntaxcheck then return end
if tmr then tmr.destroy; tmr = nil end
--Set address to read from here
local address1 = 0x00000000
--Set address to read to here
local address2 = 0x00000000
local tmr = createTimer()
tmr.Interval = 20
tmr.OnTimer = function()
local value = readaInteger(address1)
if value == 9 then
writeInteger(address2, value)
end
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum