Wounder if it possible to jog by axis with the controller API. Can get the current joint values by using :
JointTarget aJointTarget = controller.MotionSystem.ActiveMechanicalUnit.GetPosition();
Console.WriteLine(aJointTarget.RobAx.Rax_2);
etc..
but i dont know how to change the values.
i have target_10 which i constantly is updating with translations in x,y,z to make the robot move when i want to jog it linear.
i solve it like this
void selectTarget(string targetName)
{
rd = controller.Rapid.GetRapidData(“T_ROB1”, “Module1”, targetName);
target = (RobTarget)rd.Value;
}
///athread/////
selectTarget(“Target_10”);
target.Trans.X += (float)jogX;
target.Trans.Y += (float)jogY;
target.Trans.Z += (float)jogZ;
rd.Value = target
//////////////////////////////////////
Should i have a similar approach to change the joint values?
Thankful for every advice i can get!