Re: Use an Opto stop to pause print when filament runs out? October 11, 2014 01:05PM |
Registered: 10 years ago Posts: 167 |
Re: Use an Opto stop to pause print when filament runs out? October 11, 2014 01:52PM |
Registered: 10 years ago Posts: 3 |
card.pauseSDPrint(); // inject pause command to prevent further instances of this command!!
#ifdefined(PAUSE_PIN) && (PAUSE_PIN > -1) if(card.sdprinting) // only execute when printing { if( 0 != READ)PAUSE_PIN) ) { pause(); } } #endif
void pause() { #if pauseAdded == false enquecommand("M600"); pauseAdded = true; #endif }
Re: Use an Opto stop to pause print when filament runs out? October 11, 2014 04:00PM |
Registered: 10 years ago Posts: 167 |
Re: Use an Opto stop to pause print when filament runs out? October 11, 2014 08:11PM |
Registered: 10 years ago Posts: 3 |
void pause() { #if pauseAdded == false enquecommand("M600"); pauseAdded = true; enquecommand("M24"); // add this to automatically resume (untested) #endif }Edit: this is kind of a dirty way of doing it, but if it works there's no reason to change it. I'll try when I get back to my printer tomorrow.
Re: Use an Opto stop to pause print when filament runs out? October 12, 2014 10:15AM |
Registered: 10 years ago Posts: 167 |
Re: Use an Opto stop to pause print when filament runs out? October 12, 2014 02:56PM |
Registered: 10 years ago Posts: 3 |
Re: Use an Opto stop to pause print when filament runs out? October 13, 2014 03:27AM |
Registered: 9 years ago Posts: 269 |
Re: Use an Opto stop to pause print when filament runs out? October 13, 2014 11:58AM |
Registered: 10 years ago Posts: 167 |
Re: Use an Opto stop to pause print when filament runs out? January 06, 2015 04:39AM |
Registered: 10 years ago Posts: 29 |
Re: Use an Opto stop to pause print when filament runs out? February 25, 2015 08:52AM |
Registered: 10 years ago Posts: 4 |
Re: Use an Opto stop to pause print when filament runs out? April 09, 2015 03:01AM |
Registered: 9 years ago Posts: 1 |
Re: Use an Opto stop to pause print when filament runs out? November 02, 2022 05:49PM |
Registered: 4 years ago Posts: 9 |