Click or drag to resize

TaskSetProgramPointer Method (String, Int32)

Sets PP to a specific row of the current routine.

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public void SetProgramPointer(
	string module,
	int n
)

Parameters

module
Type: SystemString
The name of the module in which the routine is defined.
n
Type: SystemInt32
The row number in this module.
Remarks
Can be used to set PP to another row in the current routine. If you want to set PP to a row in a different routine, you must first set PP to that routine. If the program is executing, the method will return and nothing will happen.
Examples
This example sets the program pointer to 20th row of 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",20);
See Also