Click or drag to resize

TaskModifyPosition Method (String, Int32, ModPosExternalAxis)

Modifies the data of the first rob target found in the specified row.

Namespace:  ABB.Robotics.Controllers.RapidDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public void ModifyPosition(
	string module,
	int row,
	ModPosExternalAxis external
)

Parameters

module
Type: SystemString
The module with the rob target.
row
Type: SystemInt32
The row of the module.
external
Type: ABB.Robotics.Controllers.RapidDomainModPosExternalAxis
Defines if external axes shall be considered.
Exceptions
ExceptionCondition
ArgumentExceptionIf no data that can be modified is found or the data is wrong. An exception is also thrown if the active tool and work object differ from the instruction.
Examples
This example modifies the first position of the 10th row.
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.ModifyPosition("MyTest", 10, ModPosExternalAxis.Always);
See Also