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

Finishing Goober

Discussion in 'Troubleshooting' started by BJS227, Jun 8, 2020.

  1. BJS227

    BJS227 Member

    Joined:
    Sep 19, 2017
    Messages:
    42
    Likes Received:
    7
    Take a look at the pic. when all my prints finish lately it leaves a goober where the extruder stops. Any idea what i need to change in setting to fix this? Take a look at the pic. THX for the help
     

    Attached Files:

  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    You need to set the ending GCode script in your slicer to home the X and Y (but not the Z or it will collide in the print).

    I use:

    M104 S0 ;extruder heater off
    M140 S0 ;heated bed heater off (if you have it)
    G91 ;relative positioning
    G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
    G1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more
    G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
    M84 ;steppers off
    G90 ;absolute positioning
     
    BJS227 likes this.
  3. BJS227

    BJS227 Member

    Joined:
    Sep 19, 2017
    Messages:
    42
    Likes Received:
    7
    How do i do that? Do you use cura?
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    No I do not use Cura so I am afraid I am not going to be able to get specific...
    this looks like it may help:
     
  5. tkoco

    tkoco - -.- --- -.-. ---
    Staff Member

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    I would look at the Octoprint script as that G-code listed there is the last G-code executed. Yes you can place G-code in Cura just like shown in the video link posted by @mark tomlinson . There is a reason why the Octoprint script is labeled "After the Print Job Completes". The G-code created by Cura is the print job.
     
    mark tomlinson likes this.
  6. BJS227

    BJS227 Member

    Joined:
    Sep 19, 2017
    Messages:
    42
    Likes Received:
    7
    in octoprint i have in the "after print job completes":

    ; turn off heaters
    M104 S0
    M140 S0
    ; turn off fans
    M107
    ; move bed down 10mm
    G91
    G1 Z10
    G90
    ; home XY axis
    G28 X0 Y0
    ; home bed
    G28 Z0
    ; set absolute mode
    G90
    ; zero extruder
    G92 E0
    ; turn off motors
    M84


    This is very similar to the code above. When the printer finishes it stops moving and the extruder stays on the print for a little while that is when the goober is happens.

    Any thoughts?
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Try doing it in the slicer rather than OctoPi
    See if that impacts the delay
     
  8. BJS227

    BJS227 Member

    Joined:
    Sep 19, 2017
    Messages:
    42
    Likes Received:
    7
    So Mark paste your exact code above where my red line is. also leaving the two lines that are already there, Correct?
     

    Attached Files:

  9. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    The two lines already in there are comments -- you can leave them or delete them, up to you.
    Yes you can paste in the code I posted above there is nothing in that one that is slicer specific
     
  10. BJS227

    BJS227 Member

    Joined:
    Sep 19, 2017
    Messages:
    42
    Likes Received:
    7
    sweet, worked awesome. thank you very much!
     
    mark tomlinson likes this.
  11. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    The only reason to have the code in OctoPi versus the slicer block is that if you have multiple printers (and if not now, you probably will someday) OctoPi is printer specific. The slicer may not be :) For Simplify3D I just have different profiles for each printer, but it is easier to just leave the start and end gcode up to OctoPi and not have the slicer care.
     
  12. tkoco

    tkoco - -.- --- -.-. ---
    Staff Member

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    That is a good point. The goober could be a Raspberry Pi / Octoprint "delay in response" artifact. I've noticed similar artifacts in some of my prints ( but not all of them ). Perhaps I need to move the Octoprint script from Octoprint to Cura.
     
  13. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    If nothing else the Z lift and retract could be done in the slicer ending GCode and anything more complex in OctoPi since at that point it will not be adding any defects
     
    tkoco likes this.
  14. tkoco

    tkoco - -.- --- -.-. ---
    Staff Member

    Joined:
    May 7, 2018
    Messages:
    721
    Likes Received:
    273
    Move the M107 G-code to the end of the script and comment out the first version

    ;============= Like this =============

    ; turn off heaters
    M104 S0
    M140 S0
    ; turn off fans
    ; M107
    ; move bed down 10mm
    G91
    G1 Z10
    G90
    ; home XY axis
    G28 X0 Y0
    ; home bed
    G28 Z0
    ; set absolute mode
    G90
    ; zero extruder
    G92 E0
    ; turn off motors
    M84
    ; turn off fans
    M107

    =====================================

    Doing this change allows for 2 actions: 1) fans continue the cooling of the filament and hot-end & 2) the script jumps directly to moving the extruder up and away from the model.
     
    mark tomlinson likes this.

Share This Page