10-22-2008 06:32 AM
I use a OPCserver for machine communication. I´ve no DSC module in my LabVIEW 8.5 version.
If I open the network connection e.g. cut the cable, I get no information for a bad connection. The opc server has a information for the bad connection, but I could get this information into my LabVIEW project.
I find no way to do it with Frontpanel Datasocket or the Datasocket VIs. Now I use a Watchdog Bit to find it, but I want to have an detailed information, if I´ve a problem with the connection.
How could I detect a bad TCP/IP connection with Datasocket VIs via a OPC server
10-23-2008 04:23 AM
Hello,
The DataSocket Read.vi has an output "Quality" where you can read you if there is a problem or not.
It gives you the information if it is a generic OPC error, server failure,....
Regards
Ken
10-23-2008 08:29 AM
10-23-2008 08:37 AM
PC
LabVIEW
Langner OPC Server WAGO OPC Server
Ethernet Ethernet
Siemens S7 PLC Wago PLC
If I´ve a problem with the OPC server which is on the same PC like LabVIEW I´ver no problems with the information if the server has a problem or communication to the server. With quality information like you´ve written.
But if we open the sthernet connection, the OPC server gets the information, but not LabVIEW. Using Frontpanel DataSocket I get a green indicator for the Frontpanelelemtent which is connected to the OPC item, and also using the Datasocket VI the quality information is not bad.
I hope I have carify the problem ???
IMaDFX