Jump to content

Pre-heatup Gcode

Recommended Posts

Posted · Pre-heatup Gcode

My printer's firmware has heating commands built into the Z home.  When you do a Z home, it heats both extruders to 120C before actually homing, so that any blob on the nozzle would be soft enough not to mess things up.  This interferes with Cura's initial heat code, which goes before the starting gcode from the printer.  What happens is that Cura heats things up to the set point, the Z home in the starting code then takes the temperature down to 120, and then I have to heat it up again.  It would be nice if you could either (a) turn off the initial heating gcode (and then add it back in as part of the startup gcode), or specify special gcode to run before those initial heating commands.


I can work around it by taking the G28 out of my startup gcode and making sure I manually home all before each print, but that's a pain.


If anyone knows of a better workaround, I'd like to hear it.

Share this post

Link to post
Share on other sites
Posted · Pre-heatup Gcode

Cura looks at your start gcode, and does not see you heat up your extruder(s). It then figures that extruding cold probably isn't a good idea and adds the preheating sequence before the start gcode.


Try adding the following line to your start gcode (anywhere):

;M104 {material_print_temperature}

Add the line EXACTLY like this; with the curly braces and the exact text (don't substitute it with the number).

Note that I have put a ; before it, so it will not actually be executed. But it is enough to convince Cura you are doing something to heat up your nozzle, so it will not do it for you.

Share this post

Link to post
Share on other sites
Posted · Pre-heatup Gcode

Been googling on the subject of preheating. So far I  have been using "Target" on the temperature tab. I see there is a "Preheat Button" plug-in. I am really new to Cura and 3D printing, so some of my assumptions may be way off. Looking at the code of the "Preheat Button" looks like it just plugs in the values into the current page. I was looking for something more intelligent. So when you click on print, if needed then the preheat process would start, and when finished, then the printing would start.

Can I do it with the "start gcode"? Can the gcode be smart enough to wait for a time? Can that time be variable or maybe just wait for a time once the temperature is reached?

Share this post

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

    • January 22nd  | Ultimaker webinar 'Learn how to choose the right composite material'
      We’ll teach you how to choose the right composite material for your application in our new 40-minute webinar. You will learn how to: 
      • Make the perfect choice between glass and carbon fiber 
      • Identify more high-value applications that would benefit from composites 
      • 3D print advanced materials with the right settings 
      • Select the best materials for 3D printing end-use parts 
      • Use dual extrusion to take composite 3D printing to the next level 
      • 0 replies
    • Does your company use Ultimaker? Know one that does? Let us know!
      If your company uses Ultimaker in any capacity, we'd love to hear about it! If the story is there, and you're up for it, maybe we can work together to create a story that will be featured on the site. Here are examples of..
      • 18 replies
  • Create New...

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!