Jump to content
Ultimaker Community of 3D Printing Experts

Ultimaker 3 Custom Gcode Issue


Recommended Posts

Posted · Ultimaker 3 Custom Gcode Issue

Hello Forum!


I have an Ultimaker 3 and I want to write custom Gcode for the printer to run for vibration testing. I tried to write my own code in a text editor, put that on a flashdrive and then tried printing it on my Ultimaker 3 over USB. I renamed the file to have a .gcode.gz extension because the printer does not recognize the file if I leave it as .txt. However, when I try to run the file on the printer by selecting print, it does not do anything. I have read this post about the Griffin Gcode commands and I am confused how to write my own gcode files for my printer to execute. I think my file might need a header as explained in the post I linked. But I do not know how to implement this, or if the file is a binary or a text.


If anyone has any experience writing their own code for the Ultimaker 3 I would appreciate you input.


I attached an example of the kind of code I want to run on the printer.




Baird B.



  • Link to post
    Share on other sites

    Posted (edited) · Ultimaker 3 Custom Gcode Issue

    ok, let's see...


    • Like any other Ultimaker printer the UM3 can read text files with the file extension ".gcode"
    • In addition the UM3 is able to directly use gcode files that are compressed with gzip, those will have the file extension ".gcode.gz". Cura generates such files by default if you print over network, but it's not mandatory
    • But: the .gcode file has to begin with the mandatory Griffin-"Header" - basically a few lines with specific comments that describe the print job.
    • The easiest way to get such a header is to prepare a similar print job in Cura, slice and save the gcode file to disk.
      Obviously you don't want to heat anything up - so set all temperatures to zero.
      Take a look at the header lines in the file, it's not very hard to interpret. Afterwards replace everything below the header lines with your own G-Code commands.




    • I'm not sure, if the UM3 supports the G28 command (i think it does not?) - it's possible that it will be ignored or it will work different from what you expect. The UM3 has its own start- and end- procedures builtin that are performed for every print. There's no easy way around it.
    • You should add a feedrate (parameter "F") prior or within the first move commands, to tell the printer how fast it should move.




    ;TARGET_MACHINE.NAME:Ultimaker 3
    ;Generated with Cura_SteamEngine 4.11.0
    G0 Z30 F1200
    G0 X40 Y40 F6000
    G0 X50 Y50
    G0 X40 Y40
    G0 X50 Y50


    Edited by tinkergnome
    • Like 1
    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
        • 11 replies
    • Create New...