Click or drag to resize

ControllerRestart Method (RestartMode)

Restart the controller

Namespace:  ABB.Robotics.Controllers
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public void Restart(
	RestartMode mode
)

Parameters

mode
Type: ABB.Robotics.ControllersRestartMode
Type of restart to be performed.
Exceptions
ExceptionCondition
GeneralException
UasRejectExceptionThe current user does not have Grant to perform the operation. See RestartMode for necessary authorization.
ArgumentExceptionParameter mode is not a valid restart mode.
MasterRejectExceptionMastership could not be obtained to perform the operation.
Examples
This example performs a warmstart of the controller
using ABB.Robotics.Controllers;
...
public void WarmStartController()
{
  try
  {
    RestartController(RestartMode.WarmStart);
  }
  catch(System.Exception e)
  {
    // Exception handling
  }
}

private void RestartController(RestartMode rMode)
{
  Controller c = null;
  try
  {
    c = new Controller();

    c.Restart(rMode);
  }
  catch(System.Exception e)
  {
    // Exception handling
  }
  finally
  {
    // Dispose of any temporary resources
    if(c != null)
      c.Dispose();
    c = null;
  }
}
...
See Also