Page 1 of 1

GCode to wait for bed to cool? Not M116?

Posted: Tue Dec 09, 2014 5:54 pm
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.

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

Posted: Tue Dec 09, 2014 6:07 pm
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.

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

Posted: Tue Dec 09, 2014 6:30 pm
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.

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

Posted: Tue Dec 09, 2014 7:56 pm
by teoman
Do tell more about this part eject project.

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

Posted: Tue Dec 09, 2014 9:52 pm
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.

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

Posted: Wed Dec 10, 2014 12:10 pm
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...

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

Posted: Wed Dec 10, 2014 2:19 pm
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

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

Posted: Wed Dec 10, 2014 5:44 pm
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.

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

Posted: Wed Dec 10, 2014 6:15 pm
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.

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

Posted: Tue Dec 23, 2014 9:13 am
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