Error messaging in g-code programs posted by Fusion or HSM CAM

Autodesk Support

Jul 25, 2024


Products and versions covered


Issue:

When posting g-code programs out of Fusion or HSM CAM, the post processor file contains an error message and no NC code. There are various error messages that will be marked with "Error" in the g-code output file. 

Causes:

A brief guide on understanding the error message and the post processor itself from what is output in the code:
Message displayed instead of the Gcode
  1. The "Configuration" shows the post processor used when attempting to output the NC program. 
  2. The "Configuration Path" shows the exact path to the post processor used to post the code. This could be useful if using a cloud post with the same name as a generic post. The cloud post may have been edited to meet the requirements of a particular machine while the generic post was not.

  3. This section shows the error message and gives some details on it. This example shows that the Generic Tormach PathPilot post is not set up properly for the Tool Orientation used in the Face1 operation.
This information can help identify where the problem that is preventing g-code programs from being output lies.
 

Solution:

Solutions for common error messages shown by Fusion 360 and HSM CAM post processors:

 

General Troubleshooting Advice.

  • While some post processor error messages are consistent across the various generic post processors, some posts do have unique errors that are not yet included in this article.
  • One way to perform initial troubleshooting when receiving a unique error message is to search in the post processor itself for the exact text of the error message.
  • The logic in the post configuration will show what conditions trigger the error message. 
    • A good example of this is the "Program number is out of range" message.
    • Opening the CPS post processor file in a text editor, searching the exact error message shows this line of code:
if (!((programId >= 1) && (programId <= 9999))) {
      error(localize("Program number is out of range."));
      return;
  • This line shows that a program number outside the allowable range of 1-9999, will trigger the "Program number is out of range" message. This same troubleshooting concept can be applied to any error message generated by a post processor.

Products:

Autodesk HSM; Fusion; Inventor CAM;


Was this information helpful?


Need help? Ask the Autodesk Assistant!

The Assistant can help you find answers or contact an agent.


What level of support do you have?

Different subscription plans provide distinct categories of support. Find out the level of support for your plan.

View levels of support