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.

Connect to a Nibe heatpump with modbus via RS485
#2
The frame format you've specified is not ModBus, though from the documentation it looks like standard ModBus is supported.
Try this resident script (sleep time about 10 seconds), you should either get a value or an error message in Logs tab, don't forget to disable RTU in mapper and change port handle if your is different:
Code:
require('luamodbus')

mb = luamodbus.rtu()

mb:open('/dev/RS485', 9600, 'N', 8, 1, 'H')
mb:connect()

mb:setslave(1)
mb:setresponsetimeout(3)

log(mb:readregisters(40004))

mb:close()
Reply


Messages In This Thread
RE: Connect to a Nibe heatpump with modbus via RS485 - by admin - 07.12.2016, 14:38

Forum Jump: