21.05.2019, 14:12
(This post was last modified: 21.05.2019, 14:13 by mooselight.)
Yes ! it works now with slave ID set to 0 :
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 !
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 !