RobotStudio event

Creating a Controller for PC Interface

Hi



I have been trying to create a controller on PC interface, I have used the example for network scanner. I cannot get to a point where I can scan and then use the found controller in the application. What I would like to do is to scan and find the controller and then use the signal module of the application by monitoring the status of the robot statuses. Please assist on how I can search for a controller on the network and then capture it and then start monitoring of the system.



I am using RAB 5.11



Many Thanks

Comments

  • Hi,
    To use PC Interface, make sure while creating a System you have selected PC Interface option. Then to access all controllers on your network you can use networkscanner class.

     

    NetworkScanner aScanner = new NetworkScanner();

    aScanner.Scan();

    ControllerInfo[] aCollection = aScanner.GetControllers();

    now you can use any ControllerInfo to create controller instance.

    Constructor :  public Controller(ControllerInfo controller); ( Please refer RAB Html Help)Regards
    Regards
    Saleem Javed