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
#6
If I remove the if query, then it works better.
But it interfer with the RTU, so sometimes the value gets zero, but then jumps back to the static "10".


This works better, but the value still gets 0 sometimes, not that often as with above, but still occours.:
Code:
mbproxy = require('mbproxy')
mb = mbproxy.new()
mb:setslave(1)

result=mb:readregisters(26)
grp.write('2/3/7',result)

The best were if it was possible to let the RTU send values to the bus even though the are unchanged.
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: