21.06.2023, 11:52
Hello,
I'm trying to write to the Modbus of my Nine heatpump. I have the script:
The code is not tested yet, so there are probable faults in.
But, now I realised, that when I looked to the modbus, there are 2 registers withe the number 1078, a holdingregister and an inputregister.
How can I make sure that I write to the correct register.?
I'm trying to write to the Modbus of my Nine heatpump. I have the script:
Code:
require('luamodbus')
mb = luamodbus.tcp()
mb:open('192.168.1.65', 502)
mb:connect()
mb:writeregisters(1078, 1)
mb:close()
The code is not tested yet, so there are probable faults in.
But, now I realised, that when I looked to the modbus, there are 2 registers withe the number 1078, a holdingregister and an inputregister.
Code:
Titel Type register Register
Status meer warmwater MODBUS_INPUT_REGISTER 1078
Ontdooitijd (FLM 3) MODBUS_HOLDING_REGISTER 1078
How can I make sure that I write to the correct register.?