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

Delay after finish printing

Discussion in 'Software' started by Shrey, Jan 23, 2018.

  1. Shrey

    Shrey Active Member

    Joined:
    Jul 6, 2017
    Messages:
    143
    Likes Received:
    60
    So for my last few successful prints, i'm noticing that the nozzle stays in contact with the part for roughly 3-5 seconds after it's finished printing. Is there a way for me to get rid of that delay after it's done printing in the octoprint, or through some manual control?
     
  2. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Check the ending GCode script in OctoPrint. See what it is up to. Or add some to whichever slicer you use that raises the Z a few mm when done.
     
  3. Shrey

    Shrey Active Member

    Joined:
    Jul 6, 2017
    Messages:
    143
    Likes Received:
    60
    @mark tomlinson I put the ending gcode to see what’s needs to be changed but so far it does have 10 mm z change but let’s see


    Sent from my iPhone using Tapatalk
     
  4. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Hmm, well make sure you check OctoPrint too. Mine sometimes pauses a few seconds there.
     
    Geof and Shrey like this.
  5. Shrey

    Shrey Active Member

    Joined:
    Jul 6, 2017
    Messages:
    143
    Likes Received:
    60
    ; 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 from the octoprint, so which code should i change to get rid of that small delay. What if i moved the G91, G1 Z10 G90. part before it turns off the heater
     
  6. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    Sure, might sort it. The delay could be coming from the commands to switch off everything so moving the head away first would get done faster.
     
  7. Shrey

    Shrey Active Member

    Joined:
    Jul 6, 2017
    Messages:
    143
    Likes Received:
    60
    Just changed up the order of the code and started the print let’s see.


    Sent from my iPhone using Tapatalk
     
    mark tomlinson likes this.
  8. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I believe there is a slight delay between the commands issued in sliced G-Code and switching to code included in OctoPrint's "After print job completes."
     
  9. Shrey

    Shrey Active Member

    Joined:
    Jul 6, 2017
    Messages:
    143
    Likes Received:
    60
    Is there a way to incorporate that code into the slicer like Cura,

    So would I just copy paste the end code in the Cura


    Sent from my iPhone using Tapatalk
     
  10. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    I would just add a lift to Cura, and leave the OctoPrint alone.

    In Cura click on the Printer name, then Manage Printers, then Machine Settings in the dialog, add something like the following at the beginning of End Gcode.
    Code:
    G91 ; relative positioning
    G1 Z10 ; move hotend up 10 mm
    G90 ; absolute mode
    What this does is move up 10 mm from the last position as soon as the last print or movement command is issued. It will execute this before OctoPrint takes over and executes it's own code. Although @mark tomlinson might disagree ;) (he is a big fan of doing all sorts of stuff in OctoPrint) there are times when you just have to do extra stuff with the slicer.
     
  11. Shrey

    Shrey Active Member

    Joined:
    Jul 6, 2017
    Messages:
    143
    Likes Received:
    60
    I see what you mean thanks I will give that a try and printer later tonight after work


    Sent from my iPhone using Tapatalk
     
  12. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    After doing some testing with the Robo web interface and scripts section, there is a noticeable delay in script execution. This can be verified with personal testing. The delay is several seconds. So you will have the nozzle sitting on the top of your model and it may leave a scar or mark while the R2 decides to run the OctoPrint script.

    The best remedy is to add code to your slicer to lift the nozzle at the end of the print job. That code will execute as quickly as any other code in your model print, then the delay has no impact.
     
  13. Shrey

    Shrey Active Member

    Joined:
    Jul 6, 2017
    Messages:
    143
    Likes Received:
    60
    I’ve tested with what you recommended it works perfectly.


    Sent from my iPhone using Tapatalk
     

Share This Page