This is sounding like an OPC and OpcDaCom problem which can be quite difficult to troubleshoot. We need to figure out where the exception is coming from. What version of Visual Studio are you using?
This might be a good place to start:
- In Solution Explorer, expand down the AdvancedHMIDrivers project
- Look for OpcDaCom.vb , right click and select View Code
- Go to line 524 and look for this code:
Private Sub DataChangedCallBack(ByVal clientHandle As Object, ByVal requestHandle As Object, ByVal values() As Opc.Da.ItemValueResult)
For i = 0 To values.Length - 1
- To the left of line 525, click in the left margin to insert a break point
- Run the application
- When and if it stops at the breakpoint, use F10 to step through the code and see how far it gets