RsTargetJumpToAsync Method (RsToolData, Boolean, ConfigurationMode) |
Jumps the tool and the attached robot to the target. Optionally updates the joint values in the virtual controller. Updating the joint values in the controller is time consuning compared to only updating the
Mechanism joint value. If you need to frequently call this method, it is recomended to update the joint values in the controller, only for the last call.
Namespace:
ABB.Robotics.RobotStudio.Stations
Assembly:
ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax public Task<JumpResult> JumpToAsync(
RsToolData tool,
bool updateController,
ConfigurationMode cfgMode
)
Parameters
- tool
- Type: ABB.Robotics.RobotStudio.StationsRsToolData
The tool data to perform the jump with - updateController
- Type: SystemBoolean
Specifies if the joint values in the controller shall be updated in addition to the joint values of the mechanism. - cfgMode
- Type: ABB.Robotics.RobotStudio.StationsConfigurationMode
Specifies how the arm configuration stored in the target shall be used. In this case this method returns true
only if the mechanism can move to the specified target with its specified arm configuration.
Return Value
Type:
TaskJumpResultExamples JumpTo Target.
Project.UndoContext.BeginUndoStep("Jump To Target");
try
{
Station stn = Station.ActiveStation;
RsTarget target = stn.ActiveTask.Targets[0];
target.JumpTo(stn.ActiveTask.ActiveTool);
}
catch
{
Project.UndoContext.CancelUndoStep(CancelUndoStepType.Rollback);
throw;
}
finally
{
Project.UndoContext.EndUndoStep();
}
Version Information
Supported in: 1.0.0.0
See Also