Jump to content
Ultimaker Community of 3D Printing Experts

Help with tool change g code


Recommended Posts

Posted · Help with tool change g code

Hi Everyone,


I have a Leapfrog Bolt Pro IDEX printer and I am having trouble with the tool change g code.


Issue 1 is that even though I have a M109 and M104 command at the start of the start gcode it will still generate a second set of commands which are after my nozzle wipe movements so this causes oozing before moving to print. I am not sure why it is doing it, I am running Cura master version 20200703.


Issue 2 is I am not sure how to get the extruder to retract after the purge/wipe movements, move to start the next layer and then prime the retracted amount. It seems to do it at the very start of the the print before the skirt but not at the tool change and my brain is now fried from trying to figure this out. I have attached the project and the generated g code from a file and the following is my start gcode for my right extruder (left is the same except for x movement and tool selection)


M109 S{material_print_temperature}

M104 T1 S175

G1 Y-32 F12000 ; move to wipe Y position

G91 ; set to relative

G1 E15 F200 ; extrude 15mm

G4 S2

G92 E0 ;zero extruder

G1 X290 F12000 ; perform wipe sequence

G1 X367 F12000

G1 X290 F12000


If anyone can fix this for me I will love you for ever and of course happy to pay for the help if it takes up too much time.

Styram 1.gcode Styram 1.3mf

  • Link to post
    Share on other sites

    Posted · Help with tool change g code

    Yeah its super annoying. Im seeing random M104 in the middle of my gcode. It basically starts heating the 2nd extruder before the tool change script. Its not like its even doing it just before it. No idea why its doing this.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    • Our picks

      • Ultimaker showcase | April 2022 | 4pm CEST | 10am EDT
        I'm excited because I've personally produced this showcase event, so if you are curious what else I'm up to nowadays, come check it out and say hi in the chat! It would mean a lot! 
          • Thanks
          • Like
        • 4 replies
      • New here? Get ahead with a free onboarding course
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 12 replies
    • Create New...