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.

Writing to Modbus
#1
Hello,

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.?
Reply


Messages In This Thread
Writing to Modbus - by Amelie - 21.06.2023, 11:52
RE: Writing to Modbus - by admin - 21.06.2023, 12:01

Forum Jump: