Jump to content
Ultimaker Community of 3D Printing Experts

Add a Pause in GCode


jeex
 Share

Recommended Posts

Posted (edited) · Add a Pause in GCode

Hi All,

 

My next project is printed in parts. One part needs to be added to the part that is in the printer. So, I manually pause the printer, so I can add the other part. Then, I continue printing.

 

Question: is there a GCode Command that I can add in the GCode file, so that the printers pauses automatically at the right line? Or is there a function in Cura or a plugin that can do that?

 

Thanks.

Edited by jeex
  • Link to post
    Share on other sites

    Posted (edited) · Add a Pause in GCode

    This is a piece of cake.

    In Cura, select Extensions / Post Processing / Modify Gcode

    Select "Add a Script" and then select Pause At Height

    In the dialog box for Pause at Height in "pause at" select By Layer (Height can be fooled by Z-hops)

    Remember that the layer you see in  the Cura preview is a base 1 number, but gcode layers are base 0.  So if you see in Cura that you want to pause at Layer 57, then in the dialog enter 56 (Cura layer - 1).

    Disarm timeout = 1800 (that's the max of 30 minutes)

    Park the head wherever you want to get it out of the way.

    I don't bother with the retraction stuff.  It requires some dialing in.

    Standby Temperature should be your printing temperature.

    Code before pause is M300.  It means Beep.

     

    So the print will move along and then get to the pause.  The printer will beep, maybe make 1 or 2 more moves, and then park the head where you told it to.  Insert your insert.  I know that if the pause uses the M0 Marlin command, it will require a button click to resume.  Other firmware might be different.

    Do to some oozing, the first few mm of extrusion may be sparse, then it will get back to normal.  You might be able to fix that by practicing with the retraction settings. 

     

    Oh yeah...Show Progress.  The "ShowProgress.py" file goes here:  "C:\Program Files\Ultimaker Cura 4.x.x\plugins\PostProcessingPlugin\scripts".  Copy it in and re-start Cura.  Add ShowProgress as a post processing / Modify Gcode script.  It will show the Cura layer number and a time estimate on the LCD screen.

     

     

     

     

    ShowProgress.zip

    Edited by GregValiant
    CRS disease
    • Like 3
    Link to post
    Share on other sites

    • 1 month later...
    Posted · Add a Pause in GCode

    Greg, Thanks for the help on this. I have been looking for this information for awhile now and just couldn't get the exact information like you had said. I didn't know that Gcode started at 0 and Cura started at 1. Now I understand why my prints kept failing. Thanks again Greg.

  • Link to post
    Share on other sites

    Posted · Add a Pause in GCode

    Glad to have been some help.  By the way, the "speed factor" in the plugin refers to the time difference that might exist between what Cura says a print will take, and how long it actually takes.  It's a percentage based calculation.  If the Time line in a Cura gcode file (second line) says 34222 (seconds), and it actually takes exactly 10 hours to print (36000 seconds), then 34222/36000 = 0.95.  That is the speed factor for that print.  You would want a fair sampling of print times to come up with a good average for the "offage" and enter that average as the Speed Factor.

    My thanks to Louis Wooters for writing ShowProgress.Py.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 11 replies
    ×
    ×
    • Create New...