This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus RTU Serial Enabled/Disabled by Script
#6
Use this event script to emulate a web request to enable/disable RTU. Attach it to a boolean object.

Code:
value = event.getvalue()

require('uci')
require('json')

function getvar()
  return 'config-save'
end

function json.data()
  return { enabled = value }
end

dofile('/lib/genohm-scada/plugins/modbus/web.lua')
Reply


Messages In This Thread
RE: Modbus RTU Serial Enabled/Disabled by Script - by admin - 30.08.2019, 06:42

Forum Jump: