Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trying to create target but keeps saying target is undefined
#1
Hello,

I have a path projected on a part and I am trying to add a target in the script at the end of the path as a retract. I have been trying to add a target, but it seems like no matter what reference frame I put it in, it doesn't want to go to the target or it goes somewhere else that I didn't intend the target to be at. When I run the script it says that the target is undefined. I'm not sure what the issue is here.

I have attached a station along with a screenshot of where the target should be located.

Also, it seems to work only if I choose the "keep joint values" in the target options


Attached Files Thumbnail(s)


.rdk MRO_Prop_sand_test_v4.rdk(Size: 8.32 MB / Downloads: 128)
#2
In your program A you are using theGrit Cart v0coordinate system, however, you placed theretracttarget attached to theUR10e Base. A Joint target will always work because joint targets do not depend on the coordinate system or the tool (TCP), on the other hand, if you move your coordinate system you may want the retract target to follow (therefore, having a Cartesian target is a good option).

You can accomplish this movement using a Cartesian target in different ways:
  1. You can teach your targetretractwith respect to the same coordinate system you are using in your programA.
  2. You can change the coordinate system at the end of your program A before you move to the targetretract.
  3. You can create aRetractprogram and specify the tool and coordinate system there. Then, you can create a main program that calls your 2 programs sequentially.
I recommend you to use the 3rd option as it is cleaner and easier to read because this is an additional modification added to your curve follow project. You could also generate separate valid programs so you can run to the approach/retract on your controller without scrolling through your main program while debugging your program.



Attached Files
.rdk MRO_Prop_sand_test_v5.rdk(Size: 8.32 MB / Downloads: 129)




Users browsing this thread:
1 Guest(s)