1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

How to retract filament out of extruder at the end of each print.

Discussion in 'General Questions' started by Sid, Oct 19, 2015.

  1. Sid

    Sid New Member

    Joined:
    Oct 19, 2015
    Messages:
    3
    Likes Received:
    0
    I know I can add some custom G-code to execute at the end of a print to remove the filament completely from the hotend, but I'm not sure what it would be. I know I need to retract about 100 mm to make sure the filament is out completely.

    The reason I want to do this is because some of the filaments I have snap off after the print is done if I'm not there to retract it out manually, leaving a solid segment in the hot end. I have to open the hot end after each print and remove it. It may just be crappy filament I'm using, but this would help until I finish this batch and move on to better filament. Thanks in advance!
     
  2. Sid

    Sid New Member

    Joined:
    Oct 19, 2015
    Messages:
    3
    Likes Received:
    0
    For reference, my End G-code is:
    M104 S0 to turn off the temperature
    G1 X10 Y200
    M84 to stop all motors

    I know it will just take adding one line to do the trick, and I've tried some different combinations, but nothing seems to work. Sorry, I'm new to messing with G-code manually.
     
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    G1 E-1 F300

    Set the E value (-1 in this example) to whatever works for you.
     
  4. Sid

    Sid New Member

    Joined:
    Oct 19, 2015
    Messages:
    3
    Likes Received:
    0
    Ok. will try this and let you know. Thanks!
     
  5. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,276
    Add a G91 before the G1 command otherwise if the position is something like 800 it won't try and retract 801mm
     
    mark tomlinson likes this.

Share This Page