Welcome! Log In Create A New Profile

Advanced

Raise extruder on stop print

Posted by casperen 
Raise extruder on stop print
June 16, 2015 12:27PM
I'm trying to figure out how to get the extruder to raise if I click stop print on the LCD. I'm currently using Marlin v1.1. I did track down the resume/pause commands, they have the following line:

static void lcd_sdcard_pause()
{
//current_position[Z_AXIS] -= 5;
card.pauseSDPrint();

}
static void lcd_sdcard_resume()
{
card.startFileprint();
//current_position[Z_AXIS] += 5;

}

static void lcd_sdcard_stop()
{
card.sdprinting = false;
card.closefile();
quickStop();
if(SD_FINISHED_STEPPERRELEASE)
{
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
autotempShutdown();
}


The problem is I can only get the extruder to go down. The resume button will lower the extruder, but the pause doesn't work. My thought was to move the code down to the stop button but it doesn't work.
Sorry, only registered users may post in this forum.

Click here to login