Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Extruder End G-code

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    2
    4
    270
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • deonholtundefined
      deonholt
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Vetiundefined
        Veti
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • deonholtundefined
          deonholt
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • Vetiundefined
            Veti
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA