Cura Start and End GCode?



  • I've searched and I can't seem to find anything relevant to this and it could be my simple ignorance to this (As I'm new to the Duet and reprap firmware) but I can't seem to find anyone using 'Suggested' gcode start and end code?

    Can I ask what all you lot out there are using in yours? I'm trying to work out what is needed and not needed now with my new setup.

    This is what I am using now as it was what I used on my old printer

    Start Code

    G21 ;metric values
    G90 ;absolute positioning
    M82 ;set extruder to absolute mode
    M107 ;start with the fan off
    G28
    
    

    End Code

    M104 S0 ; turn off extruder
    M140 S0 ; turn off bed
    G1 X0 Y200 F1000 ; prepare for part removal
    M107 ; Fan Off
    M84 ; disable motors
    
    

    I do get errors on start a print now but I'm not sure whats best to put in there? Should I do G29? As I have the mini IR sensor for auto leveling.

    I'm curious to see what everyone else does for theres

    Thanks

    Gareth



  • My Start-script (using slic3r) is this:

    M140 S[first_layer_bed_temperature] ; set bed temperature with 
    ;M104 S[first_layer_temperature]         ; set extruder temperature tool selection
    M98 P/sys/before_print.g
    
    

    The commented out M104 is so that slic3r thinks it's setting the extruder temperature, when it's actually not.

    /sys/before_print.g looks like this:

    M80 	; turn PSU on
    T0      ; Select tool 0
    M116	; Wait for tools
    
    G32 	; call bed.g
    
    ; Purge line
    G1 Z0.2
    G1 Y2 X25 F15000        ; move out of build volume
    G1 X175.0 E24 F1200     ; finish purge line
    G4 P5000	        ; Wait to let the plastic cool a little 
    G1 X100.0 Y100.0 F15000 ; Move to middle to rip plastic off tip
    G92 E0                  ; reset extruder position to 0
    
    

    and bed.g looks like this, so I probably could replace the G32 with G29 S1…

    ; Clear any bed transform
    M561
    ; Home all axes
    G28
    ; Grid compensation
    G29 S1
    
    

    What this all does is

    • Setting the bed temperature
    • Selecting the first tool (the printer only has one)
    • Waits for all the temperatures to be at the set point
    • loads the mesh compensation map
    • extrudes a bit of filament to the front of the bed


  • Thank you very much darookee, can I ask what setup you have as well?



  • My cura start/end scripts for a kossel delta (using relative extrusion mode) are:

    [[language]]
    G28 ; home all axes
    G1 X0 Y0 Z25 F8000 ; descend
    
    

    and

    [[language]]
    M83 ; extruder relative mode
    G1 E-2 F2000 ; retract
    M104 S0 ; turn off extruder
    M140 S0 ; turn off bed
    M106 S0 ; turn off fan
    G28 ; home
    M84 ; disable motors
    
    

    Please remember that in cura, the extrusion mode is set to absolute before the scripts are inserted even if relative extrusion mode is enabled in the cura settings. I know this is dumb but the cura devs insisted upon it.



  • @Icthus:

    Thank you very much darookee, can I ask what setup you have as well?

    My printer is a HyperCube-y CoreXY using the extruder of the Wanhao i3 I ripped apart…


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.