Welcome to Our Community

Some features disabled for guests. Register Today.

Fusion360 post processor -Add tool

Discussion in 'CAM' started by Delusional 1, Feb 28, 2025.

  1. Delusional 1

    Builder

    Joined:
    Dec 12, 2015
    Messages:
    6
    Likes Received:
    1
    How do i go about making the post processor do a tool change to the tool used in the file ..Not looking to have it use multiple different tools just want it to post the tool change so it calls the tool number used in the tool path>i am using fluidnc and it uses different pins for the m3 when different tools are used so the post needs to show a tool change to the tool used so it uses the correct pins >>any help would be greatly appreciated
     
  2. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,544
    Likes Received:
    1,940
    open your postprocessor .cps in notepad (must be post version V1.0.42)
    go to line number 1262, which is between these lines
    Code:
             if (properties.generateMultiple && (tool.number != getPreviousSection().getTool().number))
                writeZretract();
    
          gotoInitial(true);
    
    add in these 2 lines (before the 'gotoIninitial()' ) if you need the M6
    Code:
          var toolFormat = createFormat({ decimals: 0 });        
          writeBlock("T" + toolFormat.format(tool.number), mOutput.format(6));
    
    OR these if you only need the Tx word without the M6
    Code:
          var toolFormat = createFormat({ decimals: 0 });        
          writeBlock("T" + toolFormat.format(tool.number));
    
     
    Delusional 1 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice