Posts: 28
Threads: 17
Joined: Mar 2021
Reputation:
0
04-07-2021, 07:52 AM
Hey RoboDK,
Would you be able to inform me about how to set the approach or retract for a program to [0,0,+Z] through the API. I attempted using XYZ with 0 0 {value} however this ended up being the XYZ relative.
Thanks
Posts: 28
Threads: 17
Joined: Mar 2021
Reputation:
0
Hey Albert,
Thanks for the information though this has assisted in identifying an issue that I hadn't noticed. The goal with this was to obtain an approach that would be relative to the robot's reference frame such that it would move in its own +Z for the approach and retract. While the relative XYZ would work for standard parts, a large portion of the parts that we are using through this project are designed in CAD in the +X direction meaning that they are rotated to face upwards in RoboDK. Since this occurs, the relative XYZ (as expected) provides an approach relative to the original part Z axis which does not align with the robot Z axis. Can an approach be added or are there any approaches available that would provide a robot relative Z axis approach?
Thanks,
Joseph