Jump to content

Delay in before "Start G-code"?


VladimirK

Recommended Posts

Posted (edited) · Delay in before "Start G-code"?

I replaced my bed heater to silicone 600W from 220V and it heats up to 100+ in less than a minute, thermistor reports right temperature and "M190 S110" thinks the temperature is fine. However above heater I have sandwich from aluminum and glass, bed surface temperature at that moment near 90+ and 110 reaches only after +/- 5 minutes. So I put delay into "Start G-code" "G4 S300 ;wait 5 minutes". Everything is fine except all those time filament in extruder also at high temperature and some of them like PBT becomes brown, can become hard and block the nozzle.

Is this possible to automatically put delay into Cura produced G-code? I have

;Generated with Cura_SteamEngine 4.4.1
 

M140 S110
M105
M190 S110
M104 S260
M105
M109 S260
M82 ;absolute extrusion mode
; below from "Start G-code"
G21 ;metric values
G90 ;absolute positioning
M82 ;set extruder to absolute mode
M107 ;start with the fan off
G28 X0 Y0 ;move X/Y to min endstops
G28 Z0 ;move Z to min endstops
G1 Z15.0 F60 ;move the platform down 15mm
G92 E0 ;zero the extruded length
G1 F200 E3 ;extrude 3mm of feed stock
G92 E0 ;zero the extruded length again
G1 F60
G4 S300 ;wait 5 minutes
;M117 Printing...

and I would like to put delay G4 after "M190 S110" but before "M104 S260". I asked on Duet forum but there is no such feature in their firmware.

Edited by VladimirK
  • Link to post
    Share on other sites

    Posted · Delay in before "Start G-code"?

    Cura checks if you add a heatup sequence in your start gcode. If you don't, it adds its own heatup before your start gcode. If you don't want Cura to add these lines, make sure your start gcode contains lines which have {material_print_temperature} and {material_bed_temperature} in them respectively (exactly as typed, Cura will replace the {}-text with the temperatures). eg:

    G21 ;metric values
    G90 ;absolute positioning
    M82 ;set extruder to absolute mode
    M107 ;start with the fan off
    ; etc
    
    M140 S{material_bed_temperature}   ;Start heating bed
    M190 S{material_bed_temperature}   ;Wait for bed to reach temp before proceeding
    M104 S{material_print_temperature} ;Start heating extruder 
    M109 S{material_print_temperature} ;Wait for extruder to reach temp before proceeding
    
    ;etc
    

    Having this in your start gcode prevents Cura from putting heatup commands in front of your start gcode. This means that you can insert your G4 S300 command anywhere you want to relative to your heatup commands.

    • Like 1
    Link to post
    Share on other sites

    Posted · Delay in before "Start G-code"?
    10 hours ago, ahoeben said:

    make sure your start gcode contains lines which have {material_print_temperature} and {material_bed_temperature} in them

     

    Wouldn't it be better to use the temperatures for the initial layer in the start script, or has the Cura behavior changed in this point?

     

    {material_bed_temperature_layer_0}

    {material_print_temperature_layer_0}

     

    • Like 2
    Link to post
    Share on other sites

    Posted · Delay in before "Start G-code"?

    Yes, that would be better. But I always forget if it is layer0 or layer_0 or just _0, and sometimes I get lazy and don't want to look things up. So I used the temperatures for the normal layers. 😉

    • 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

      • Introducing Universal Cura Projects in the UltiMaker Cura 5.7 beta
        Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
          • Like
        • 10 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...