GCode to wait for bed to cool? Not M116?

A pre-assembled Delta Printer that can print a 6" cube 8" tall!
Post Reply
peterdaly
Prints-a-lot
Posts: 20
Joined: Wed Sep 17, 2014 3:31 pm

GCode to wait for bed to cool? Not M116?

Post by peterdaly »

What is gcode I can run, after setting the bed to a colder temperature, to wait for that lower bed temperature to be hit before proceeding?

It seems like M116 SHOULD work, but does not. Here's a quick test...maybe I'm doing it wrong. That last G28 is called immediately, even though bed (and extruder) are way above the target temperature.
G21
G28
G1 Z10
M190 S35
M104 S100
G4 P5000
M104 S0
M190 S30
M116
G28
Thanks for any assistance.
Earthbound
Printmaster!
Posts: 458
Joined: Sun Sep 07, 2014 2:39 am

Re: GCode to wait for bed to cool? Not M116?

Post by Earthbound »

Repetier does not support M116 as far as I know.

https://github.com/repetier/Repetier-Fi ... ki/G-codes

I do not know of a "drop below threshold" function.
"Trust no quote from the Internet." - Abraham Lincoln
peterdaly
Prints-a-lot
Posts: 20
Joined: Wed Sep 17, 2014 3:31 pm

Re: GCode to wait for bed to cool? Not M116?

Post by peterdaly »

Hmm. OK. I guess a dwell is the next best option...

Waiting for the bed to cool (and the part break loose), for a part eject routine to run.
User avatar
teoman
ULTIMATE 3D JEDI
Posts: 1770
Joined: Sat May 24, 2014 5:43 pm

Re: GCode to wait for bed to cool? Not M116?

Post by teoman »

Do tell more about this part eject project.
When on mobile I am brief and may be perceived as an arsl.
User avatar
Captain Starfish
Printmaster!
Posts: 950
Joined: Tue Dec 10, 2013 5:24 am

Re: GCode to wait for bed to cool? Not M116?

Post by Captain Starfish »

If I preheat higher than I've set up the print job, my Max will wait at the start of a job to cool down before it'll begin the print.

Looks like you need to use the M140 to set the target bed temp before you wait for it with M190. And you're never going to hit a target of 0. So maybe something like this?

Code: Select all

M140 S30
M190
M140 S0
would set target bed to 30, wait until it hits it, then kill the bed heater altogether before moving on.
peterdaly
Prints-a-lot
Posts: 20
Joined: Wed Sep 17, 2014 3:31 pm

Re: GCode to wait for bed to cool? Not M116?

Post by peterdaly »

teoman - If I can reliably get a part to break loose from the bed, I can use gcode to move the arms to push the part off the bed, then start another print without human intervention.

A work in progress...
peterdaly
Prints-a-lot
Posts: 20
Joined: Wed Sep 17, 2014 3:31 pm

Re: GCode to wait for bed to cool? Not M116?

Post by peterdaly »

Captain Starfish wrote:If I preheat higher than I've set up the print job, my Max will wait at the start of a job to cool down before it'll begin the print.

Looks like you need to use the M140 to set the target bed temp before you wait for it with M190. And you're never going to hit a target of 0. So maybe something like this?

Code: Select all

M140 S30
M190
M140 S0
would set target bed to 30, wait until it hits it, then kill the bed heater altogether before moving on.
Not working for me...waits for the heatup, but not the cooldown.
G21
G28
G1 Z10
M140 S45
M190
G4 P5000
M140 S37
M190
M140 S0
G28
User avatar
Captain Starfish
Printmaster!
Posts: 950
Joined: Tue Dec 10, 2013 5:24 am

Re: GCode to wait for bed to cool? Not M116?

Post by Captain Starfish »

Damn, well that's annoying.

You might have to go digging in the Repetier firmware and change the logic around the test.
User avatar
teoman
ULTIMATE 3D JEDI
Posts: 1770
Joined: Sat May 24, 2014 5:43 pm

Re: GCode to wait for bed to cool? Not M116?

Post by teoman »

I was pondering about automatic bed changing recently. And sometimes even after the bed has cooled down, the part is attached to the bed.

I have never tried to cool my plate as i have always been able to pull of the part with ease. However if I wanted to do automatic part change i would definitely cool the bed down further. I did have something like this in mind that would blow cold air on to the part to get it really cold:
http://www.aliexpress.com/wholesale?ini ... 1258493117

However i would not use the printer to knock the part of. For that i would prefer a different pusher mechanism. Check out Mplaglia's thread there we (mostly he) modified the repetier firmware to scan the gcodes and pump out the relevant ones over I2C to an auxiliary arduino board.
When on mobile I am brief and may be perceived as an arsl.
johnoly99
Printmaster!
Posts: 709
Joined: Mon Mar 26, 2012 1:07 pm
Location: Goshen, IN

Re: GCode to wait for bed to cool? Not M116?

Post by johnoly99 »

If you set M190 Sxxx where xxx is the target temp you want to wait to get to it will do just that :)


M104 S set hotend and continue
M109 S set hotend and wait to hit target

M140 S set bed and continue
M190 S set bed and wait to hit target
Post Reply

Return to “ORION”