Click or drag to resize

MechanicalUnitGetPosition2 Method

Gets the joint target position of the mechanical unit.

Namespace:  ABB.Robotics.Controllers.MotionDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public JointTarget GetPosition2()

Return Value

Type: JointTarget
The position of the mechanical unit as a JointTarget.
Examples
This example gets the current joint target position of the active mechanical unit and It will map the value according to axis position.
Controller c = new Controller();
MotionSystem motion = c.MotionSystem;
MechanicalUnit mech = motion.GetActiveMechanicalUnit();
JointTarget robTgt;
robTgt = mech.GetPosition2();
// Do something
See Also