Logic Machine Forum
Strange Modbus behaviour - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10)
+--- Thread: Strange Modbus behaviour (/showthread.php?tid=2342)



Strange Modbus behaviour - FatMax - 13.11.2019

I have a SpaceLYnk running 2.3.0 where I'm not getting expected modbus error reporting. Initially I had 116 Modbus TCP/IP devices, but it seems the modbus library/stack hung as there are problems getting responses from the devices. I'm now setting everything up manually one by one so I can figure out which devices are causing problems. I've found the first one where I don't get the expected reply back, but there's no error in the Modbus log, nor is the device marked as red in the modbus panel. This is the first time I've experienced this. Anything I can do to test if modbus is working as expected on the SpaceLYnk?


RE: Strange Modbus behaviour - Daniel - 13.11.2019

116 Modbus devices? WOW, what was the CPU load?
Modbus works fine, what type of registry are you reading? There is 2.4.0 FW out there already.


RE: Strange Modbus behaviour - FatMax - 13.11.2019

(13.11.2019, 09:09)Daniel. Wrote: 116 Modbus devices? WOW, what was the CPU load?
Modbus works fine, what type of registry are you reading?  There is 2.4.0 FW out there already.

116 is not really a problem, we have facilities with 150+ devices without issue. We're reading 10 input registers (and writing occasionally to 5 of them) on each device. CPU hovers nicely around 0.80 when all devices are registered. Mind you, this is with a permanent MQTT connection Wink 

We haven't confirmed that 2.4.0 works fully with our software yet. Are there any fixes for modbus in this FW?


RE: Strange Modbus behaviour - Daniel - 13.11.2019

If you downloda firmware package for 2.3.0 from se.com there is modbus.lump file.

2018.08.22-modbus.lmup - Patch for reading coils/discrete inputs bug


RE: Strange Modbus behaviour - admin - 13.11.2019

For some TCP devices you need to enable persistent connection mode.