TaskSetProgramPointer Method (String, String) |
Sets program pointer to the first instruction of a routine (global or local).
Namespace:
ABB.Robotics.Controllers.RapidDomain
Assembly:
ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax public void SetProgramPointer(
string module,
string routine
)
Parameters
- module
- Type: SystemString
The name of the module in which the routine is defined. - routine
- Type: SystemString
The name of the routine to which PP will be set.
Exceptions Exception | Condition |
---|
ArgumentException | PP is not set because one or both parameters are wrong. |
Remarks Any previous execution stack will be cleared.
Examples This example sets the program pointer to the routine of "MyRoutine" in the module of "MyModule"
using ABB.Robotics;
using ABB.Robotics.Controllers;
using ABB.Robotics.Controllers.RapidDomain;
...
Controller c = new Controller();
Task[] allTasks = c.Rapid.GetTasks();
Task firstTask = allTasks[0];
firstTask.SetProgramPointer("MyModule","MyRoutine");
See Also