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 connect with Victron Venus GX controller
#6
Yes ! it works now with slave ID set to 0 :


Code:
require('luamodbus')
mb = luamodbus.tcp()
mb:open('192.168.1.149', 502)
mb:connect()
mb:setslave(0)
r1 = mb:readregisters(843)
r2 = mb:readregisters(808)
r3 = mb:readregisters(850)
log (r1, r2, r3)
mb:close()

Venus GX 21.05.2019 16:10:46
* arg: 1
 * number: 95
* arg: 2
 * number: 265
* arg: 3
 * number: 149

So I'll now be able to process those data the way I want.
Thanks for you help !
Reply


Messages In This Thread
RE: Modbus connect with Victron Venus GX controller - by mooselight - 21.05.2019, 14:12

Forum Jump: