LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting instrument using IP address

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 5
(2,533 Views)

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.

 

...just painting code
0 Kudos
Message 2 of 5
(2,514 Views)
0 Kudos
Message 3 of 5
(2,508 Views)

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

0 Kudos
Message 4 of 5
(2,495 Views)
Solution
Accepted by topic author systemcrash

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.

0 Kudos
Message 5 of 5
(2,489 Views)