Gets the routines defined in the module.
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax public Routine[] GetRoutines()
Return Value
Type:
Routine An array of
Routine objects.
Exceptions Remarks NOTE:When the returned instance is no longer needed you must call its Dispose method.
Examples The method below counts the number of routines in the system.
private int CountRoutines(Controller c)
{
int result = 0;
Task[] tasks;
try
{
tasks = c.Rapid.GetTasks();
Modules modules;
foreach (Task t in tasks)
{
modules = t.GetModules();
Routines routines;
foreach (Module m in modules)
{
routines = m.GetRoutines();
result += routines.Lenght;
}
}
}
catch (GeneralException ee)
{
}
catch (System.Exception ee)
{
}
return result;
}
See Also