How to edit a Post Processor for Manual NC functions in Fusion, HSMWorks, or Inventor CAM

Autodesk Support

Oct 23, 2024


Products and versions covered


Issue:

A way to edit the Post Processor to unlock the Manual NC functions are needed for Fusion, HSMWorks, or Inventor CAM. 

Causes:

Some Post Processor (CPS) files aren't programmed to function with Manual NC PassThrough or CallProgram commands. 

Solution:

NOTE: This function is not always included in the stock Autodesk Post Processors by default because manually entering code can result in machine crashes. Be careful when using manual code entry to ensure that machine collisions will not be caused by the manually entered code.

To edit the Post Processor (CPS) for Call Program:

  1. Open the CPS in a text editing program like Microsoft Visual Studio Code.
  2. Use a search function to find onManualNC
  3. Add the following code under the case COMMAND_ACTION:
case COMMAND_CALL_PROGRAM: 
writeBlock(mFormat.format(98), "P" + value); 
break;
ManualNC

To edit the CPS for Pass Through:

  1. Open the PCS in a text editing program like Microsoft Visual Studio Code.
  2. Use a search function to find onManualNC.
  3. ​​​​​​Add the following code above the onManualNC section:
function onPassThrough(text) {
  var commands = String(text).split(",");
  for (text in commands) {
    writeBlock(commands[text]);
  }
}
PassThrough

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