PC SDK unable to find controller


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);
if (!controllerFounded)
    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


  • Maxim Riabichev
    Maxim Riabichev Sweden admin
    edited June 2021
    Hello Michael,

    Try something like this:

            public void FindControllers()
                var scanner = new NetworkScanner();
                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 Riabichev
    PC Software Support Engineer