10-09-2021 05:38 AM
I am facing a problem with Modbus Read Input Register while polling continuously. In my application, I need to read data that is continuously coming from meter. For that, I am using Modbus Read Input Register. Whenever I run the application, it shows perfect data but after some time (not any fixed time) all the data shows zero value. at that time Modbus Read Input Register API generates an error(please refer to attached image).
Note: Meter is working properly. It is showing continuous data in Modbus polling.
I have also try to close the connection and reconnect whenever an error occurs.
10-10-2021 10:37 AM
Hi neha,
@neha18 wrote:
I am facing a problem with Modbus Read Input Register while polling continuously.
Well, then you need to debug your VI!
As long as you don't attach your VI(s) and even refuse to tell the error number you will not get much more help…
10-14-2021 02:25 AM
Kindly Refer to this vi and Error Image.
Thank You
10-14-2021 09:34 AM - edited 10-14-2021 09:37 AM
You program needs work:
This huge mess probably could be replaced with one instance of (the missing) scale.vi inside a For Loop.
10-14-2021 10:51 AM
Error code 56: The network operation exceeded the user-specified or system time limit.
It might be a good idea to give your modbus slave a little bit time in between request.
Regards, Jens
10-15-2021 05:00 AM
Okay. I will do that.
10-15-2021 05:01 AM
Thank you. But I have already tried this one.
10-18-2021 03:21 AM
Hi,
There is an article describes the issue that you have faced. Error 56: Timeout When Communicating Between LabVIEW and Network Devices.
Look at the solution filed and try the troubleshooting steps.