Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

grbl turning post errors please help

sales
Enthusiast

grbl turning post errors please help

sales
Enthusiast
Enthusiast
Hello folks,
I'm new to lathe work with grbl, but am doing some fairly simple profile stuff here. Can anyone help me figure out how to get past these errors I'm getting during post? Below are the errors on the 3rd operation. And I've posted the Fusion file. 
Thanks!
 
Information: Configuration: Grbl Turning
Information: Vendor: grbl
Information: Posting intermediate data to 'C:\Users\cartn\AppData\Local\Fusion 360 CAM\nc\1001.nc'
Error: Failed to post process. See below for details.
...
Code page changed to '1252  (ANSI - Latin I)'
Start time: Friday, March 122021 4:11:52 PM
Code page changed to '20127 (US-ASCII)'
Post processor engine: 4.5745.0
Configuration path: C:\Users\cartn\AppData\Local\Autodesk\Autodesk Fusion 360\CAM\cache\posts\grbl turning.cps
Include paths: C:\Users\cartn\AppData\Local\Autodesk\Autodesk Fusion 360\CAM\cache\posts
Configuration modification date: Wednesday, February 242021 10:55:51 PM
Output path: C:\Users\cartn\AppData\Local\Fusion 360 CAM\nc\1001.nc
Checksum of intermediate NC data: 44d7c569debf6ae9033c27cd48262af5
Checksum of configuration: 39c25f6b0bd7908921ab781514017faa
Legal: Copyright (C) 2012-2021 by Autodesk, Inc.
Generated by: Fusion 360 CAM 2.0.9854
...

###############################################################################
Error: Bad axis specified for writeRetract().
Error at line: 1172
Failed while processing onSectionEnd() for record 453.
###############################################################################

Error: Failed to invoke function 'onClose'.
Error: Failed to invoke 'onClose' in the post configuration.
Error: Failed to execute configuration.
Stop time: Friday, March 122021 4:11:52 PM
Post processing failed.
0 Likes
Reply
Accepted solutions (1)
664 Views
6 Replies
Replies (6)

boopathi.sivakumar
Autodesk
Autodesk

Hi @sales

We are aware that this is a bug in the post processer with the safe retract method will be fixed soon. Mean while you can change the safe retract method to either x or z while post processing in the post properties. This will make the post work fine. 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes

sales
Enthusiast
Enthusiast

Hi, 

Thanks for responding. I just tried X and then Z post processor for safe retract and get the same errors. There is something else going on.

After much experimentation, I found out that the posting fails when I change the degree of orientation in the turret that the tool is held! I should be able to set this how I like, but it doesn't work. 

Any other thoughts?

Tyler

0 Likes

boopathi.sivakumar
Autodesk
Autodesk
Accepted solution

@sales yes you are right!! at the moment in the post we are only checking if the orientation is 0 or 90 deg in the below section of code .

function getToolOrientation(section) { // add section
  if (section.getType() == TYPE_TURNING) {
    var toolAngle = section.hasParameter("operation:tool_angle") ? section.getParameter("operation:tool_angle") : 0;
    var toolOrientation = section.toolOrientation;
    var angle = spatialFormat.getResultingValue(toolAngle + toDeg(toolOrientation));
    if (angle == 0) {
      return 0;
    } else if (angle == 90) {
      return 2;
    } else { // some other angle
      return -1;
    }
  } else { // case for drilling
    return 2;
  }
}

you could add the logic to check for if the angle is different  by modifying like below

function getToolOrientation(section) { // add section
  if (section.getType() == TYPE_TURNING) {
    var toolAngle = section.hasParameter("operation:tool_angle") ? section.getParameter("operation:tool_angle") : 0;
    var toolOrientation = section.toolOrientation;
    var angle = spatialFormat.getResultingValue(toolAngle + toDeg(toolOrientation));
    if (angle <= 45) {
      return 0;
    } else if (angle > 45 && angle <= 90) {
      return 2;
    } else { // some other angle
      return -1;
    }
  } else { // case for drilling
    return 2;
  }
}

This will resolve the issues, kindly check the post and let me know the feedback


Boopathi Sivakumar
Senior Technology Consultant

0 Likes

sales
Enthusiast
Enthusiast

Thanks,

Am I making these modifications to grbl turning config.h file?

Sorry, new to post modding.

 

0 Likes

boopathi.sivakumar
Autodesk
Autodesk

Hi @sales 

You need to make a copy of you post processor file and need to make the changes instead you can also download the post from here https://cam.autodesk.com/hsmposts?p=grbl_turning

and edit the post in any editor and make the changes as mentioned in the above thread

and while post processing choose the post which you have modified

 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes

sales
Enthusiast
Enthusiast

Thanks so much! For those just joining, the errors are coming from the Setup tab within the tool, in the tool library. If you have anything other than 0 or 90 degrees, set for "Orientation in Turret." You'll pop all sorts of errors. 

Thanks to Boopathi for the sub code. I'll try and edit. I'm hoping that the Fusion Team will issue a better grbl turning default post soon.

Cheers,

Tyler

0 Likes