2
« on: February 02, 2015, 10:46:31 AM »
Archie,
Your response time is awesome!
I worked on this last week, but I couldn't get it to work. Here's where I stand with it.
Using Kepware OPC server V5. I have two OPC servers running; one local and one remote. They both have a simulated ramp as the only tag. I can use the Kepware OPC quick client to connect to both servers (local and remote). So, I'm assuming it's not a DCOM issue. I can use my simple AdvancedHMI program with one panel meter to connect to the local OPC server. I can also run it on the remote server (local to the remote server). But I can't use it to connect remotely (changing "opcda://localhost/" to "opcda://IPofRemoteServer/").
When I try to connect to the remote server, it shows initial data, but the data doesn't change. Like it's getting one read, then stopping. Also when I close the program, it throws an exception as follows:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in OpcNetApi.Com.dll
Additional information: Exception from HRESULT: 0x80040200
@ OpcDaCom.vb line 69 ------ If DLL.IsConnected Then DLL.Disconnect()