Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generic Post Processor File Reference Frame
#1
Hi, I am attempting to export my roboDK program to a Fanuc .LS file, but I am having trouble getting it to export the script in the correct User Frame. I have figured out the issue is in the generation of the generic language .py file found in the %temp% folder. The reference frame selected in the script  (2_TopInboardUF) is not the user frame exported in the generic language file. The name is correct, but the pose relative to the robot base is not. See image refences below. Any ideas what could be causing this discrepancy?

Looks like the pictures didn't attach. Here they are


Attached Files Thumbnail(s)
   
Image(s)
       
#2
Ok I've been digging a little deeper on this. If I deselect "Force Original Pose" on the "Set Ref:" command, the correct reference frame gets assigned at the start of the .LS file but the points do not get transformed into that new reference frame. They remain in reference to the Solidworks origin regardless of what I do. I have tried dragging the points underneath different reference frames, changing the support frame for the points and all different combinations of nesting frames but nothings changes how the points are exported. I think I could write/edit a custom post processor to do this transformation (CAD origin to selected UF) but it seems like it should be native in the post processor to export points in the selected reference frame and tcp. Am I doing something wrong?
#3
Can you try the following?
  • Right-click Set Ref, deselect "Force Orginal Pose".
  • Right-click Set Ref, "Select reference link", set your desired reference frame.
  • Right-click your Program, click "Recalculate Targets".
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our YouTube Channel.
#4
When I do that I get the following error (see attached screenshot). It looks like that changes the reference frame but the points still do not change and therefore the they are unreachable because they are going to the original pose in the changed reference frame.


Attached Files Image(s)
   
#5
The problem is probably that you are using a curve follow project and you moved the object instead of the coordinate system. This means that RoboDK will calculate the coordinate system for your controller as the combination of the reference frame plus the object position.

Instead, to properly have your coordinate system in your exported program you should apply a transformation to the geometry of your object/curve:
  1. Double click the object you moved
  2. Select the 3 bar button on the right of the object position
  3. Select Cut pose
  4. Select More options
  5. Select the Paste on move geometry
  6. Select Apply Move
  7. If you selected curves in a curve follow project you may need to re-select them:
    Double click your curve follow project, select "Select curve", Select "Done" without changing your selection.
  8. Select Utilities-Update robot machining projects
  9. Generate the program
If you can you share the RDK project file we can help you better.
  




Users browsing this thread:
1 Guest(s)