Jump to content
Ultimaker Community of 3D Printing Experts

if-switch in start-gcode


Recommended Posts

Posted · if-switch in start-gcode

Hello everyone,


talking about dual-extrusion, I would like to make my start-gcode only heat up active hotends.


Therefor I would like to to something like this in my start-gcode:

{IF HOTEND0.ENABLED=1}M104 T0 S{material_print_temperature_layer_0,0}; set temp for hotend 0 
{IF HOTEND1.ENABLED=1}M104 T1 S{material_print_temperature_layer_0,1}; set temp for hotend 1

Is this possible? What would be the right syntax?

If its not possible in start-gcode, is there any other way to achieve it?


Thanks and all the Best,


  • 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

      • 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
        • 13 replies
    • Create New...