Move up nozzle after aborting

Raise Z for up to 5 cm (depending on current height) after aborting a print via display.

Referencing issue #9.
This commit is contained in:
David Ramiro
2019-01-07 14:07:20 +01:00
parent 4a105e338e
commit 7c05040274
2 changed files with 5 additions and 2 deletions

View File

@@ -465,6 +465,9 @@ void AnycubicTFTClass::StateHandler()
#ifdef ANYCUBIC_TFT_DEBUG
SERIAL_ECHOLNPGM("TFT Serial Debug: SD print stopped... J16");
#endif
if((current_position[Z_AXIS]>200)) enqueue_and_echo_commands_P(PSTR("G91\nG1 Z2 F240\nG90"));
if((current_position[Z_AXIS]<200)) enqueue_and_echo_commands_P(PSTR("G91\nG1 Z5 F240\nG90"));
if((current_position[Z_AXIS]<150)) enqueue_and_echo_commands_P(PSTR("G91\nG1 Z45 F240\nG90"));
enqueue_and_echo_commands_P(PSTR("M84"));
}
#endif