Jump to content

Python script generated GCODE does not work on Ultimaker 3. Ultimaker does not read GCODE.


Recommended Posts

Posted · Python script generated GCODE does not work on Ultimaker 3. Ultimaker does not read GCODE.

Hello!

 

This is my first post on this forum. Hello everyone!

 

I was given a task at my job. I was told to create some sort of script that would generate "mesh cubes". I wrote code in Python. User inputs printing configurtation parameters (temepratures, nozzle size, first layer size, layer height etc.) and cube dimensions (gap width, gap quantity). It's really hard to explain the inner geometry of the cube so I attached images for reference:

 

768810692_Screenshotfrom2020-06-1611-41-28.thumb.png.74ba62cea818dba48656d1b9b22fdba1.png

 

1891765869_Screenshotfrom2020-06-1611-41-41.thumb.png.3fba6be5553407bea9c28269ca9a211c.png

 

My script generates gcode. When I open GCODE file in Ultimaker Cura it shows printing process. When I try to run GCODE at UltiMaker 3 at my workplace it goes back to main menu, and nothing happens. I've been analyzing GCODE: looking for errors in my file, comparing it to proper Cura generated GCODE and sadly I can't find anything. Surprisingly enough, script generated GCODE works on different 3D printer. I own Creality CR-10S. Of course it doesn't execute some of the commands since my printer is based on Marlin Firmware, nonetheless cube prints on my printer with desired results. Only downsides are that i have to manually autohome all the axis, and manually set bed temeprature since Marlin does not read Ulitmaker's header at the beginning of the gcode. Here's how it worked (sorry for the picture quality, potato phone):

test.thumb.jpg.b42678c64ee7c55a5e204a0bf7eff21a.jpg

I know it's not perfect, I still have quite a few parameters to change, such as extruder speed.

My guess is that it could something wrong with the header and that's why it doesn't work on Ultimaker 3. It's hard to find anything about Ultimaker header. Below you have my script generated GCODE:


output.gcode

 

Sorry for the trouble and thanks in advance!

  • Link to post
    Share on other sites

    Posted · Python script generated GCODE does not work on Ultimaker 3. Ultimaker does not read GCODE.
    12 hours ago, SlothMcLazy said:

    comparing it to proper Cura generated GCODE and sadly I can't find anything.

     

    look closer... 🙂

     

    A file generated by Cura starts like this:

    ;START_OF_HEADER
    ;HEADER_VERSION:0.1
    ;FLAVOR:Griffin
    ...

    compare the second line with yours...

     

     

    In addition:

    • Lowercase parameters in Gcode commands will be ignored (in the best case) - check line 34
    • i would use the G0 / G1 convention like described in the Marlin documentation, just to be future proof (https://marlinfw.org/docs/gcode/G000-G001.html)
    • don't forget to ask for the filament diameter for calculations of the extruded volume 🙂
    • besides of the mandatory header the UM3 firmware uses Marlin as well - that means - the rest should already work as intended

     

    Good luck!

     

     

     

     

  • 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 Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...