10.07.2015, 07:01
Hi,
I have problem with modbus rtu integration with NIBE Heat pump. I have established connection via modbus rtu with modbus 40 extension of this heat pump. Reading working properly, but if i want to write some registers, i have to use write multiple holding registers (function 16), despite of fact that I write only one register.
If I use mb:writeregisters function there is no possibility to choose 06 function or 16 function, but i have to have 16 function to proper write command
using
doesn't work.
Do you have any idea how do that? Maybe using mapping of modbus registers resolve problem?
I have problem with modbus rtu integration with NIBE Heat pump. I have established connection via modbus rtu with modbus 40 extension of this heat pump. Reading working properly, but if i want to write some registers, i have to use write multiple holding registers (function 16), despite of fact that I write only one register.
If I use mb:writeregisters function there is no possibility to choose 06 function or 16 function, but i have to have 16 function to proper write command
using
Code:
mb:writeregisters (registers, value, nil)
doesn't work.
Do you have any idea how do that? Maybe using mapping of modbus registers resolve problem?