03-28-2012 06:28 PM
Hello,
There is a instrument which I need to communicate with, Unit works on MODBUS\TCP protocol.
Instrument is connected to LAN and has a IP address of its own, When I try to read the registers using MODBUS library I am getting Serial Overrun error.
The first VI which I used is TCP-IP open giving the IP address and port number, I do not see any error, but when I start reading the registers I get "LabVIEW: Serial port overrun error."
Please let me know if anyone has idea why I am getting this error.
Thanks
Solved! Go to Solution.
03-29-2012 02:09 AM - last edited on 03-18-2024 08:56 AM by Content Cleaner
Hello systemcrash,
do you use the Modbus lib from NI?
Here can you download it:
https://forums.ni.com/t5/Reference-Design-Content/LabVIEW-Modbus-API/ta-p/3524019
There is also a good documentation.
I use the lib for devices from VIPA and WAGO and it works fine.
03-29-2012 08:31 AM - last edited on 03-18-2024 08:56 AM by Content Cleaner
Have a look on this link https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019M5ASAU&l=en-US, might help.
03-29-2012 05:43 PM
Hello,
Yes I have TCP Modbus VI's, I could able to work when the target device was connected to my laptop. Now the target device is in LAN. I can see in highlight mode that TCP write is proper but the read VI is giving me error.
Error -56 and sometimes -66.
I did go through the forum to find out why exactly I am getting this error, but I am not helping myself to solve this problems.
Any suggestions is appreciated.
Thanks
03-29-2012 06:05 PM
I have no clue what had happened, it seems working fine now. I had changed IP address of the device and had assigned a new one, It's working.