Hello Everyone,
Need your help on how can I fix the problem of colliding data for tags from different devices. I have a single modbus network wherein I will be connecting PV inverters and Power meters, I connected the PV inverter first with a modbus device ID of 1 and all of the mapped tags are working great. However when I connected a Power meter with modbus device ID of 15, 2 tags from the inverter suddenly disconnected while all of the tags in the Power meter is working properly. I am confident the the mapping are right and its working when connected alone. Please Help
Here are the inverter tags when the power meter is not connected
you can see that the above tags for Power meter is not yet updating.
and then above are the tags for Power meter and then below happens
Inverter device ID is 1 the address for the Load Power=1.HR198, Utility Power=1.HR203, Data Type Integer, Function Code 3 Holding Registers
Power meter device ID is 15, Data Type Float, Function Code 4 Input Register
Logs and/or Wireshark capture would be useful.
Where can I go to logs? is this it?
New observation, I added more tags from the Power Meter, now all the individual tag connection problem from inverter got switched, all the previous working tags are now disconnected and the 2 disconnected tags are now working.
Here is the wireshark diagnostic results
Your device is not responding fast enough, here it is showing at a quarter of a second for 3 requests. Use the fastest modbus baud rate you can on both devices and make sure that the devices are capable of reading that much data over modbus at that speed.
The “Overload” graph should be close to 0% at all times.
That wireshark image is not showing modbus traffic.
How is your gateway talking to the MB network? (Driver and settings.)
Thank you @davice_Stone for the advice, I will try this. Regards
Hello Phil, The PV inverter and Power meter is wired (daisy chain) to a RS485 to Modbus TCP converter.
Its just disconnected right now as I am typing, I am not in the site right now.
I have attached link to the datasheet, see below:
It isn't entirely clear, but that document suggests the device is not intended to bridge Modbus RTU and Modbus TCP, but instead bridge either of those to LoRaWan.
Two points I noticed:
-
The default framing on the RS485 port is 9600 N-8-1. N-8-1 is explicitly not supported in Modbus RTU, though many devices tolerate it.
-
The device indicates its max packet size is 232. You will need to reduce the max coils/discretes/registers per read or write to accommodate that.
Hello Phil, so what is the framing configuration that is supported by Modbus RTU?
Nice write-up. I am going to take some of these ideas and give them a try at one of our clients who have a ton of modbus gateways that are finicky..
Greatly appreciate your support! Thank you
I also wonder how much the LoRaWAN bridge is causing issues since it's ultra low bandwidth (should be able to do 9600bps though, but aren't intended for high speed anything.
That’s why I chose the words “low cost.”
I didn’t want to explicitly call out a reason such as LoWaRAN, but just to set expectations in general about the performance of these devices.
It is unreasonable to expect a $10 device to perform as well as a $500 device.
I see you've never compared an AB unmanaged switch to the rest of the market...