Jump to content

Add a Pause in GCode


jeex

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
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...