Extruder End G-code



  • Hi all and thanks for your help.
    Ender 5.
    I need to setup new starting- and end g-code for my printer.
    I used someone's code who shared it on his website but it messed up a lot of things. When I Googled I saw many examples and they are all different. And to add to that, there are so many and every author insists that his/her code is the best. Some will insist that G91 needs to be in the end code and others differ.
    Since I only know G28 and G29 and what they do, I have the candidness (hope its the right word) to ask here for need to have start- and end g-code.

    Current Start-g-code
    G28 ;Home
    G29 ;probe bed for abl
    G92 E0 ;Reset Extruder
    G1 Z2.0 F3000 ;Move Z Axis up
    G1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position
    G1 X10.1 Y200.0 Z0.28 F1500.0 E15 ;Draw the first line
    G1 X10.4 Y200.0 Z0.28 F5000.0 ;Move to side a little
    G1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line
    G92 E0 ;Reset Extruder
    G1 Z2.0 F3000 ;Move Z Axis up

    End code
    G28 X0 ; home x-axis
    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 Y0 ;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

    Thank you very much so long.



  • it really depends on what you want to do.
    if the print finishes in the way that is ok for you then there is no need to change it.



  • I don't even know exactly what needs to be done and if this is OK or too much. That is my concern.
    This is why I asked here. Thanks.



  • the end code is supposed to turn of the heater for hotend and bed.

    if it does that and you are satisfied then you can leave it.

    some people want wipe or other stuff, but that is based on their requirements.


Log in to reply