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 SunSpec support
#2
If the modbus bus is not proprietary the LM should be able to handle it.

You can try with this.
Code:
require('luamodbus')
mb = luamodbus.rtu()
mb:open('/dev/RS485', 19200, 'E', 8, 1, 'H') -- change with correct MB settings : speed, parity, stop bit, ...
mb:connect()

if mb ~= nil then
    value = mb:readregisters(40188) -- read AC current register
 log(value)

    mb:close()
end
Reply


Messages In This Thread
Modbus SunSpec support - by joost001 - 22.05.2017, 20:11
RE: Modbus SunSpec support - by mlaudren - 22.05.2017, 21:43
RE: Modbus SunSpec support - by admin - 23.05.2017, 06:58

Forum Jump: