Full retract when complete



  • Is there a default macro which does a full retract , because after each print it does a full eject of filament .
    I can see anything in the cura end code which will do it.

    G91 ;Relative positioning
    G1 E-2 F2700 ;Retract a bit
    G1 E-2 Z0.2 F2400 ;Retract and raise Z
    G1 X5 Y5 F3000 ;Wipe out
    G1 Z10 ;Raise Z more
    G90 ;Absolute positionning
    
    G1 X0 Y{machine_depth} ;Present print
    M106 S0 ;Turn-off fan
    M104 S0 ;Turn-off hotend
    M140 S0 ;Turn-off bed
    
    M84 X Y E ;Disable all steppers but Z
    


  • Are you using absolute extrusion? Cura might think that putting the printer into G91 relative mode affects the extruder axis too -- it doesn't in RRF.

    So, I suspect what is happening is that instead of retracting 2 mm, it's commanding the E axis to -2 mm absolute location.


  • administrators

    Use M83 to put the firmware in relative extrusion mode before those G1 E-xx commands.



  • @dc42 Wasn't M83 first line of the old config.g file ?
    oops M83 is still the first line of the config.g file , so will add it to the end g-code .


  • Moderator

    Definitely check Cura to make sure it's set to relative extrusion mode.



  • @Phaedrux Yep , done that , but in cura it is hidden away in a special mode section.


Log in to reply