Hello
I have a tool:
PERS tooldata tGripper:=[TRUE,[[0,-241.92,195.917],[0.991444861,0.130526192,0,0]],[20.9, [-5.1, -4.7, 53.5],[1, 0, 0, 0], 0.064, 0, 0.769]];
The tool is angled 15 degrees on the x-axis.
The gripper holds a product of variable length.
I want to create an new TCP (ex. tGripperWithProduct) at the end of the product.
If the tool had no angle it would be easy to just adjust tGripper.tframe.z.
And in my case here, with only one angle to consider, I have used basic trigonomety to solve this.
I have written a function that returns the displaced tool. With “startingtool” and productlength as arguments. It works for this scenario.
But what if the tool is angled on more than one axis?
Is there an existing function to solve this in rapid?