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.

Is it possible to sniff Modbus RTU line using LM?
#1
I have project where is installed six Solis 100K-5G inverters and one Solis EPM (Export Power Manager). Inverters are slave and EPM is master what polls information from inverters.
Since Solis EPM does not have Modbus slave functionality it's not possible to integrate it to third party controllers.

If we start to communicate directly with inverters (while EPM is also master), there will be collision and probably a lot of errors/problems.
If we remove EPM then it's not possible to send information to Solis Cloud and customer + service partners don't see information about this plant.

Now my idea is to connect LM into inverter Modbus RTU line and just listen + parse traffic. Is it possible to archive?

So LogicMachine is transparent device on that line.
I'm gonna add picture to show my idea.

Attached Files Thumbnail(s)
   
Reply
#2
Lua Modbus library has receive() function that returns a single Modbus data package. Then you will have to parse the response manually to get actual data out of it.
Universal Modbus slave example has some code that you can reuse: https://forum.logicmachine.net/showthread.php?tid=4288
Reply
#3
Thanks for reply.
Gonna try to play with code to create "modbus monitor script" but probably found a better solution. I'm gonna post device here so maybe it helps someone else as well if you need two masters to communicate with one/multible slaves.
https://shop.marcomweb.it/en/shop-online...tagli.html

Main advantages with this device is that you can control polling interval and update data as you need.
Reply


Forum Jump: