Extrude before printing

Dear all,

I'm trying to get my printer to extrude about 30mm of filament before it starts the actual print. My current start g-code is as followed:
; Default start code
M280 P0 S160 ; resets the z probe before every print
G1 Z5 F{Z_TRAVEL_SPEED}
G28 ; Home extruder
G29
G1 Z15 F{Z_TRAVEL_SPEED}
M107 ; Turn off fan
G90 ; Absolute positioning
M82 ; Extruder in absolute mode
{IF_BED}M190 S{BED}
; Activate all used extruder
{IF_EXT0}M104 T0 S{TEMP0}
G92 E0 ; Reset extruder position
; Wait for all used extruders to reach temperature
{IF_EXT0}M109 T0 S{TEMP0}

I slice with the CuraEngine.

What and where do I need to implement the g-code to extrude 30mm of filament in for example the corner X0 Y0?

Kind regards,
Wim

Comments

  • You can only extruder after it is hot so after
    {IF_EXT0}M109 T0 S{TEMP0}

    add

    G92 E0
    G1 E30 F600
    G92 E0

    adjust speed to what makes sense for your extruder.
  • Thank you I'll try it!
Sign In or Register to comment.