Generic Post Processor File Reference Frame-Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API) +--- Thread: Generic Post Processor File Reference Frame (/Thread-Generic-Post-Processor-File-Reference-Frame) |
Generic Post Processor File Reference Frame-JohnMount-11-14-2022 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 RE: Generic Post Processor File Reference Frame-JohnMount-11-14-2022 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? RE: Generic Post Processor File Reference Frame-Sam-11-15-2022 Can you try the following?
RE: Generic Post Processor File Reference Frame-JohnMount-11-15-2022 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. RE: Generic Post Processor File Reference Frame-Albert-11-16-2022 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:
|