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.

Update modbus profile
#5
Thanks.

Is it possible to set the profile to poll the read values even though it haven't changed?
I have a Gira Homeserver, KNX visualization, but I can't read the modbus values from the KNX bus, by sending a read request or read on init, when the server reboots.


I have tried script, but it returns 0, always.. even though the value should be greater!

Code:
-- init modbus on first script execution
if not mb then
     require('luamodbus')
     mb = luamodbus.rtu()
     mb:open('/dev/RS485', 9600, 'N', 8, 1, 'H')
     mb:connect()
end

-- sets slave ID to read/write data from/to
mb:setslave(1)

result=mb:readregisters(27)
grp.write('2/3/10',result)

mb:close()

I have disabled RTU, and the register adress is 4x00027.
The LM modbus profile can read this register, but it doesn't poll the value since it's not changed often, but I need to learn my KNX devices this value when they reboot or things like that.
Reply


Messages In This Thread
Update modbus profile - by sx3 - 02.10.2016, 09:48
RE: Update modbus profile - by admin - 02.10.2016, 10:08
RE: Update modbus profile - by sx3 - 02.10.2016, 10:40
RE: Update modbus profile - by admin - 02.10.2016, 12:15
RE: Update modbus profile - by sx3 - 02.10.2016, 19:05
RE: Update modbus profile - by sx3 - 03.10.2016, 04:28
RE: Update modbus profile - by admin - 03.10.2016, 07:18
RE: Update modbus profile - by sx3 - 03.10.2016, 07:53
RE: Update modbus profile - by sx3 - 03.10.2016, 10:23
RE: Update modbus profile - by FatMax - 16.11.2016, 11:13
RE: Update modbus profile - by admin - 16.11.2016, 11:21
RE: Update modbus profile - by FatMax - 16.11.2016, 11:34
RE: Update modbus profile - by admin - 16.11.2016, 11:58

Forum Jump: