PC SDK library hangs
alexss
✭
in RobotStudio
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
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
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings