PC SDK unable to find controller
Hi,
I have an Windows application that connect to an robot controller, it has been working very well until upgrading to the latest SDK version (ABB.Robotics.Controllers.PC 21.1.9443.2). Upgrading from 6.6.7701
I can get it work if I first connect to the controller from RobotStudio. In RobotStudio I have to add controller by Add Controller (Add available controllers on the network) and typing the IP address of the controller. Normally it is available under Recent controllers, but is greyed out.
The problem occurs everytime the system has been restarted.
My code looks like:
NetworkScanner networkScanner = new NetworkScanner();
var controllerFounded = networkScanner.TryFind(id, 5000, 10, out ControllerInfo _controllerInfo);
var controllerFounded = networkScanner.TryFind(id, 5000, 10, out ControllerInfo _controllerInfo);
if (!controllerFounded)
{
throw new Exception($"Unable to find controller. Id: {id}");
}
{
throw new Exception($"Unable to find controller. Id: {id}");
}
What is I'm doing wrong?
Hope you can help me.
Thanks in advance.
Best regards, Michael
0
Comments
-
Hello Michael,
Try something like this:public void FindControllers(){var scanner = new NetworkScanner();scanner.Scan();Controllers = scanner.Controllers;var controllerFound = Controllers.TryFind(id, 5000, 10, out ControllerInfo _controllerInfo);if (!controllerFound)
{
throw new Exception($"Unable to find controller. Id: {id}");
}}
Let me know if this works, as I haven't tried it myself—Maxim RiabichevPC Software Support Engineer0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings