10.05.2018, 13:11
Start with logging what writeregisters returns. If you need to write two registers at once, do it like this:
Refer to product manual for slave id. Some TCP devices ignore slave id completely.
Code:
res, err = mb:writeregistervalue(1536, value, 'uint32')
log(res, err)
Refer to product manual for slave id. Some TCP devices ignore slave id completely.