Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
468b813b
Unverified
Commit
468b813b
authored
5 years ago
by
Ondřej Nový
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Better ooze prevention during pause (#17625)
parent
6d90d1e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/src/feature/pause.cpp
+16
-12
16 additions, 12 deletions
Marlin/src/feature/pause.cpp
with
16 additions
and
12 deletions
Marlin/src/feature/pause.cpp
+
16
−
12
View file @
468b813b
...
@@ -541,11 +541,13 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
...
@@ -541,11 +541,13 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
* - a nozzle timed out, or
* - a nozzle timed out, or
* - the nozzle is already heated.
* - the nozzle is already heated.
* - Display "wait for print to resume"
* - Display "wait for print to resume"
* - Retract to prevent oozing
* - Move the nozzle back to resume_position
* - Unretract
* - Re-prime the nozzle...
* - Re-prime the nozzle...
* - FWRETRACT: Recover/prime from the prior G10.
* - FWRETRACT: Recover/prime from the prior G10.
* - !FWRETRACT: Retract by resume_position.e, if negative.
* - !FWRETRACT: Retract by resume_position.e, if negative.
* Not sure how this logic comes into use.
* Not sure how this logic comes into use.
* - Move the nozzle back to resume_position
* - Sync the planner E to resume_position.e
* - Sync the planner E to resume_position.e
* - Send host action for resume, if configured
* - Send host action for resume, if configured
* - Resume the current SD print job, if any
* - Resume the current SD print job, if any
...
@@ -574,6 +576,18 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
...
@@ -574,6 +576,18 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
TERN_
(
HAS_LCD_MENU
,
lcd_pause_show_message
(
PAUSE_MESSAGE_RESUME
));
TERN_
(
HAS_LCD_MENU
,
lcd_pause_show_message
(
PAUSE_MESSAGE_RESUME
));
// Retract to prevent oozing
unscaled_e_move
(
-
(
PAUSE_PARK_RETRACT_LENGTH
),
feedRate_t
(
PAUSE_PARK_RETRACT_FEEDRATE
));
// Move XY to starting position, then Z
do_blocking_move_to_xy
(
resume_position
,
feedRate_t
(
NOZZLE_PARK_XY_FEEDRATE
));
// Move Z_AXIS to saved position
do_blocking_move_to_z
(
resume_position
.
z
,
feedRate_t
(
NOZZLE_PARK_Z_FEEDRATE
));
// Unretract
unscaled_e_move
(
PAUSE_PARK_RETRACT_LENGTH
,
feedRate_t
(
PAUSE_PARK_RETRACT_FEEDRATE
));
// Intelligent resuming
// Intelligent resuming
#if ENABLED(FWRETRACT)
#if ENABLED(FWRETRACT)
// If retracted before goto pause
// If retracted before goto pause
...
@@ -583,13 +597,6 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
...
@@ -583,13 +597,6 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
// If resume_position is negative
// If resume_position is negative
if
(
resume_position
.
e
<
0
)
unscaled_e_move
(
resume_position
.
e
,
feedRate_t
(
PAUSE_PARK_RETRACT_FEEDRATE
));
if
(
resume_position
.
e
<
0
)
unscaled_e_move
(
resume_position
.
e
,
feedRate_t
(
PAUSE_PARK_RETRACT_FEEDRATE
));
// Move XY to starting position, then Z
do_blocking_move_to_xy
(
resume_position
,
feedRate_t
(
NOZZLE_PARK_XY_FEEDRATE
));
// Move Z_AXIS to saved position
do_blocking_move_to_z
(
resume_position
.
z
,
feedRate_t
(
NOZZLE_PARK_Z_FEEDRATE
));
#if ADVANCED_PAUSE_RESUME_PRIME != 0
#if ADVANCED_PAUSE_RESUME_PRIME != 0
unscaled_e_move
(
ADVANCED_PAUSE_RESUME_PRIME
,
feedRate_t
(
ADVANCED_PAUSE_PURGE_FEEDRATE
));
unscaled_e_move
(
ADVANCED_PAUSE_RESUME_PRIME
,
feedRate_t
(
ADVANCED_PAUSE_PURGE_FEEDRATE
));
#endif
#endif
...
@@ -611,10 +618,7 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
...
@@ -611,10 +618,7 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
TERN_
(
HOST_PROMPT_SUPPORT
,
host_prompt_open
(
PROMPT_INFO
,
PSTR
(
"Resuming"
),
DISMISS_STR
));
TERN_
(
HOST_PROMPT_SUPPORT
,
host_prompt_open
(
PROMPT_INFO
,
PSTR
(
"Resuming"
),
DISMISS_STR
));
#if ENABLED(SDSUPPORT)
#if ENABLED(SDSUPPORT)
if
(
did_pause_print
)
{
if
(
did_pause_print
)
{
card
.
startFileprint
();
--
did_pause_print
;
}
card
.
startFileprint
();
--
did_pause_print
;
}
#endif
#endif
#if ENABLED(ADVANCED_PAUSE_FANS_PAUSE) && FAN_COUNT > 0
#if ENABLED(ADVANCED_PAUSE_FANS_PAUSE) && FAN_COUNT > 0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment