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

Solved R1+ homes to top left when finished printing, dragging TPU string across the print.

Discussion in 'Troubleshooting' started by twistedplastic, Sep 21, 2022.

Thread Status:
Not open for further replies.
  1. twistedplastic

    twistedplastic New Member

    Joined:
    Sep 21, 2022
    Messages:
    10
    Likes Received:
    2
    Can I make it home to the bottom right instead? This problem has developed fairly recently and only happens when using Ninjatek Cheetah filament.

    Retraction settings are: length on move 1mm, and retraction speed 30mm/s. I tried raising them to 3mm and 50mm/s respectively and the texture of the print got more rough without preventing the string at the end.

    Can anyone help me stop the printer from doing this?
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Whatever slicer you are using should have a way to set an ending GCODE block and what you have currently is homing the X and Y when completed. What you should do is stop that :) Instead have it lift the nozzle first and then home X and Y:

    Here is an example, note the highlighted line:

    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
    G1 Y150 F5000 ;move completed part out
    M84 ;steppers off
    G90 ;absolute positioning
     
  3. twistedplastic

    twistedplastic New Member

    Joined:
    Sep 21, 2022
    Messages:
    10
    Likes Received:
    2
    Thanks very much for your help! I should have mentioned that I'm using MatterControl 1.7.

    I've been 3D printing for a few years, but haven't really messed around with G-code. I've looked at the terminal, but I'm not exactly sure how to input the code. Do I copy the code you provided, paste it into the window at the bottom, and click send?
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
  5. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Just remember that when adding gcode to the ending block you do NOT want to lower the Z. Home X = fine, home Y = fine, but do not try to HOME the Z or you run the risk of crashing the extruder into the print.
     
  6. twistedplastic

    twistedplastic New Member

    Joined:
    Sep 21, 2022
    Messages:
    10
    Likes Received:
    2
    Thanks for all the help! I'll give it a try.
     
    mark tomlinson likes this.
  7. twistedplastic

    twistedplastic New Member

    Joined:
    Sep 21, 2022
    Messages:
    10
    Likes Received:
    2
    Once I understood where to paste the code, it worked perfectly. I'm very interested in learning more G-code now. Thanks again for your help.
     
    mark tomlinson likes this.
  8. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Excellent.

    Marlin has a resource / reference for their GCode here: https://marlinfw.org/meta/gcode/

    While almost all 'flavors' of code (like Marlin, Repetier and many others) are very similar it helps to use a reference for the GCode maker you have. Our laser and CNC machines use GCode too, but not exactly the same as Marlin.
     
  9. twistedplastic

    twistedplastic New Member

    Joined:
    Sep 21, 2022
    Messages:
    10
    Likes Received:
    2
    Thanks for the link - it looks like a good place to start.
     
Thread Status:
Not open for further replies.

Share This Page