Jump to content
UltiMaker Community of 3D Printing Experts

G-code modification - Printer doesn't wait for bed to cool down


MatijaP
 Share

Recommended Posts

Posted · G-code modification - Printer doesn't wait for bed to cool down

Hello,

 

I am working on a project where we have to print a lot of piece and would like to leave the printer (Ultimker S5) to print over the whole weekend (so I don't loose the 20h of possible print time).

 

So I have changed the G-code to make it "automatized", where it print the model, pushes it out and goes off to print the same thing again.

I have defined the travel and it works, but I have encountered a problem with the heating bed temperature.

So, the printer should cool the glass plate to about 20-25 °C before pushing the model out to be sure it will be removed easier.

 

Here is the G-code I have added/changed (# are just the comments I added here😞

M140 S25 #cool the bed to 25 °C
G0 X160 Y125  #move "behind" the model
G0 Z10 #move down
G0 Y0 F2000 #push the model out

#The rest is c/p from the beggining of the print
M140 S85 #heat the bed to 85 °C
M106 S1 
M204 S2812
M205 X18 Y18
;MESH:Object 34
G0 F6180 X158.075 Y28.465 Z0.42
M204 S750
M205 X7.5 Y7.5
;TYPE:WALL-INNER
G1 F1500 E51.96984

However, the printer does not wait for the bed to cool down, but only continues to push the model out right away and start a new print.

I have also tried with M190 (Wait for bed temperature to reach target temp) after the M140, but Im not sure it is supported by UM as I receive an error on the S5 that the bed temperature is not defined properly.

 

Any ideas how can I make the UM S5 wait to reach defined temperature and then proceed to push the model out, wait to heat the bed again and start printing again ?

 

Thanks,

Matija

  • Link to post
    Share on other sites

    Posted (edited) · G-code modification - Printer doesn't wait for bed to cool down

    Try

     

     

    M140 S25 #cool the bed to 25 °C
    M190 S25 ;wait for bed to reach target temp
    G0 X160 Y125  #move "behind" the model
    G0 Z10 #move down
    G0 Y0 F2000 #push the model out
    
    #The rest is c/p from the begining of the print
    M140 S85 #heat the bed to 85 °C
    M106 S1 
    M204 S2812
    M205 X18 Y18
    ;MESH:Object 34
    G0 F6180 X158.075 Y28.465 Z0.42
    M204 S750
    M205 X7.5 Y7.5
    ;TYPE:WALL-INNER
    G1 F1500 E51.96984
    Edited by obewan
  • Link to post
    Share on other sites

    Posted · G-code modification - Printer doesn't wait for bed to cool down
    2 minutes ago, obewan said:

    Try using after the M140

    M190 S25  ;Wait for bed temperature to reach target temp

     

    I have tried replacing the M140 S25 with M190 S25 and that didn't work.

    Also tired M140 S25 followed by M190.

     

    But I haven't tried M140 S25

    M190 S25

     

    I am away from the printer now, but will try on Monday 🙂

  • Link to post
    Share on other sites

    Posted · G-code modification - Printer doesn't wait for bed to cool down

    you might want to put this in your start g code  after the cool down part also

     

    M190 S{material_bed_temperature_layer_0} ;Wait for bed to reach temp before proceeding

    M109 S{material_print_temperature_layer_0} ;Wait for extruder to reach temp before proceeding
     

  • Link to post
    Share on other sites

    Posted · G-code modification - Printer doesn't wait for bed to cool down

    M190 S25 only waits for the bed to *heat up* to 25 degrees. Since the bed temperature directly after printing will be higher than 25 degrees, effectively it will not wait at all.

     

    According to the Marlin documentation, it should be possible to wait for the bed to cool down by specifying the temperature with R instead of S: M190 R25

    https://marlinfw.org/docs/gcode/M190.html

     

    Two caveats:

    * I don't know if the flavor/fork of Marlin in the S5 supports the R argument for M190

    * It may take a very long time for the bed to reach 25 degrees, especially in the summer. There will be no way to "abort" the wait, other than aborting the whole print including the part(s) that come(s) after the cooldown.

  • Link to post
    Share on other sites

    Posted · G-code modification - Printer doesn't wait for bed to cool down
    24 minutes ago, ahoeben said:

    M190 S25 only waits for the bed to *heat up* to 25 degrees. Since the bed temperature directly after printing will be higher than 25 degrees, effectively it will not wait at all.

     

    According to the Marlin documentation, it should be possible to wait for the bed to cool down by specifying the temperature with R instead of S: M190 R25

    https://marlinfw.org/docs/gcode/M190.html

     

    Two caveats:

    * I don't know if the flavor/fork of Marlin in the S5 supports the R argument for M190

    * It may take a very long time for the bed to reach 25 degrees, especially in the summer. There will be no way to "abort" the wait, other than aborting the whole print including the part(s) that come(s) after the cooldown.

     

    Ahh I didn't pay any attention of the wait until heated to xx °C.

    I will definitely try with the R25 instead and will let you know. But on Monday.

     

    Thanks for the notes as well.

    1° I guess we will see if it is supported soon.

    2° Since Im in northern Germany ATM and the project will be done in 1.5 months, it won't be to hot 🙂

  • Link to post
    Share on other sites

    Posted · G-code modification - Printer doesn't wait for bed to cool down

    M190 with the 'R' option is not supported by the Ultimaker printers (at least not with the current v5.6 of the firmware).

    What you can do is to add a wait time: G4 S<time in seconds>

     

    We did a similar project for series production where we printed 1 PLA object and then used the print head to bump it off the glass plate. So, it is possible but we didn't cool the build plate in between prints. We added the famous blue tape to the build plate so the adhesion of the PLA was good, but weaker than when printing on the glass plate.

     

    • Thanks 1
    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

      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
         
         
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
         
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
         
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.
         

         
        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 12 replies
      • UltiMaker Cura 5.3.0-Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
         
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 17 replies
      • 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
        • 14 replies
    ×
    ×
    • Create New...