RobotStudio event

PC SDK library hangs

I am facing a problem when the application running with "ABB.Robotics.Controller.PC.dll" (v5.61) loses Ethernet communications with the robot controller.

When the Ethernet communication to the robot controller is operational I start the application. During this period the application works well. If during the period that there is no communication with the robot controller the application tries to get information using the "ABB.Robotics.Controller.PC.dll" library the code hangs waiting for an answer. It does not return any error.

Below you can see part of the code, just to try to explain the problem. The code hangs in the last two lines of the code when it tries to get the operating mode or the state of the robot controller.

Is it a bug from the "ABB.Robotics.Controller.PC.dll" library? If the library cannot retrieve any information from the robot controller, it should return an error, but hangs instead.

--//--

Imports ABB.Robotics
Imports ABB.Robotics.Controllers
Imports ABB.Robotics.Controllers.Discovery
Imports ABB.Robotics.Controllers.RapidDomain

Dim LaserController As Controller() = Nothing
Dim controller As Controller = Nothing
Dim controllerIPAddress As String = "192.168.125.1"

Try

scanner = New NetworkScanner
scanner.Scan()
RobotControllers = scanner.GetControllers(NetworkScannerSearchCriterias.Real)

LaserController(0) = ControllerFactory.CreateFrom(RobotControllers(0))
controller = Array.Find(LaserController, Function(irb) (irb.IPAddress.ToString = controllerIPAddress))

Dim opModeString as String = controller.OperatingMode.ToString
Dim stateString as String = controller.State.ToString

Catch ex As Exception
    MsgBox(ex.Message)
End Try

--//--

Regards,
Alexandre