Jump to content

Cura G-Code issue


Go to solution Solved by ahoeben,

Recommended Posts

Posted · Cura G-Code issue

Hi,

I'm having a problem with the G-code generated by Cura. The printer (Voron 2.4) heats up to printing temperature and comes to the PRINT_START macro as in the following G-Code beginning. This is completely unnecessary, as the printer is supposed to perform automatic leveling at a maximum of 150 degrees. This means that it heats up unnecessarily, e.g. to 230 degrees, the printer firmware cools it down to 150 degrees for leveling and the print then breaks off, because of course it is not possible to print at 150 degrees.

Therefore, it would make sense to call up the printer Macro PRINT_START before M104 S230 and then heat it up to print temperature. But how do I teach Cura this? - Cura automatically writes the corresponding code (red) before starting the G-code, which can be edited in the device settings (green). The macro can only calls the auto-leveling and homing of the axes.

 

 

;FLAVOR:Marlin
;TIME:1165
;Filament used: 1.54557m
;Layer height: 0.2
;MINX:123.828
;MINY:140.274
;MINZ:0.2
;MAXX:176.158
;MAXY:163.475
;MAXZ:10
;TARGET_MACHINE.NAME:VORON2 300
;ZOFFSETPROCESSED
;Generated with Cura_SteamEngine 5.6.0
M140 S80
M105
M190 S80
M104 S230
M105
M109 S230
M82 ;absolute extrusion mode
M104 S150

PRINT_START
G92 E0
G92 E0
G1 F1800 E-0.75
;LAYER_COUNT:50
;LAYER:0

  • Link to post
    Share on other sites

    • Solution
    Posted · Cura G-Code issue

    Cura tries to protect your printer against cold extrusion.

     

    Cura tries to see if there is anything in your start gcode that heats up your extruder(s), and bed. If not, it will insert a heatup sequence on its own. Cura does not know about your PRINT_START macro.

     

    The logic is here:

    https://github.com/Ultimaker/Cura/blob/4.4/plugins/CuraEngineBackend/StartSliceJob.py#L428


    Cura looks for the text "{material_print_temperature}", "{material_print_temperature_layer_0}", "{default_material_print_temperature}", "{material_initial_print_temperature}", "{material_final_print_temperature}" or "{material_standby_temperature}" in the start gcode to check if the start gcode contains extruder heating commands (so it does not actually care if you use M104 or M109 or not).

     

    Cura looks for the text "{material_bed_temperature}" or "{material_bed_temperature_layer_0}" in the start gcode to check if the start gcode contains bed heating command (so it does not actually care if you use M140 or M190 or not).

    • Like 1
    • Thanks 1
    Link to post
    Share on other sites

    Posted · Cura G-Code issue

    As AHoeben explained...if there are Cura keywords in the startup then Cura itself doesn't have to include the temperature prepend lines.

    For example:  If your StartUp G-Code contained something like this:

     

    M140 S{material_bed_temperature_layer_0}

    M109 S150

    PRINT_START

    G0 F600 Z2.0

    G0 F3600 X0 Y0

    M109 S{material_print_temperature_layer_0}

     

    Then the hot end would wait until it hit 150, then the "print_start" macro would run in the firmware, and then printhead would move up and off to a corner to ooze, and then the hot end would wait until it hit the "Initial Layer Print Temperature".

     

    The Voron2 250 has this in the startup:

     

    print_start EXTRUDER={material_print_temperature_layer_0} BED={material_bed_temperature_layer_0} CHAMBER={build_volume_temperature} 

     

    So it appears that at least one Voron model will accept temperature parameters as part of the "PRINT_START" macro.

     

    So your homework assignment for today includes some light reading and a bit of detective work to see if your machine will accept any parameters for PRINT_START.  (BTW The curly brackets are required for Cura keywords.)

    • Like 1
    • Thanks 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 Cura 5.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...