Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting Approach and Retract to [0,0,+Z] thorugh API
#1
Information 
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
#2
We just updated RoboDK to support setting both relative and absolute offsets of your robot machining projects using the RoboDK API.

Similar to your other question here:
https://robodk.com/forum/Thread-Setting-...hrough-API

You can now do something like this to add relative XYZ and absolute XYZ movements respectively:

Code:
from robolink import *
RDK = Robolink()
m = RDK.Item('', ITEM_TYPE_MACHINING)
print(m.setParam("ApproachRetract", "XYZ 10 20 100 ; AbsXYZ 0 0 200"))
#3
Hey Albert,

Thanks for the information. I have updated and tested this however XYZ Abs is not the functionality that I am looking for. I am specifically looking to use the [0,0,+Z] approach option through the API to get the desired response. Can you let me know how to set the [0, 0, +Z] approach through the API?

This is the result from XYZ Abs (incorrect)
   


This is the result from [0, 0, +Z] (requried)
   
#4
You should then use a relative XYZ (same as 0,0,+Z). Example:

Code:
from robolink import *
RDK = Robolink()
m = RDK.Item('', ITEM_TYPE_MACHINING)
print(m.setParam("ApproachRetract", "XYZ 0 0 100"))
  




Users browsing this thread:
1 Guest(s)