Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay Z-Axis on Autoload #4280

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

sarusani
Copy link
Collaborator

@sarusani sarusani commented Jul 25, 2023

Delay z-axis movement when the operators hand is close to the printhead.

This is my proposed solution to resolve #4115.

The basic idea is to wait with z-axis movement until the user removed his hand from the printhead.
Instead of moving as soon as the filament sensor is triggered, the filament is first grabbed by "fast load" and after that the z-axis is moved up.

How to reproduce:

  1. Unload filament if loaded.
  2. Make sure filament sensor is activated.
  3. Make sure the printed does not know the current z position of the extruder or the z position is below MIN_Z_FOR_LOAD (Currently 50mm).
  4. Insert filament.

Original behavior: Printhead lifts Z position to MIN_Z_FOR_LOAD (50mm) as soon as filament sensor is triggered and then starts fast loading the filament.

New behavior: Printhead grabs filament with fast load and then moves Z axis up to MIN_Z_FOR_LOAD (50mm).

@sarusani
Copy link
Collaborator Author

sarusani commented Jul 25, 2023

Commit 26369ac made some code obsolete.
raise_z_above was now called twice during load and unload when the preheat screen was involved.
Cleaning it up saved some bytes.

The behavior is now consistent in all load cases (autoload, manual, gcode, mmu). If MIN_Z_FOR_LOAD is set, it will always raise the z-axis after the fast load sequence.

@github-actions
Copy link

github-actions bot commented Aug 4, 2023

All values in bytes. Δ Delta to base

Target ΔFlash ΔSRAM Used Flash Used SRAM Free Flash Free SRAM
MK3S_MULTILANG -26 0 247758 5653 6194 2539
MK3_MULTILANG -8 0 247074 5662 6878 2530

@sarusani sarusani force-pushed the DelayZAxisonAutoload branch 6 times, most recently from eeab619 to 7af3906 Compare August 17, 2023 09:45
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch 3 times, most recently from 40d7a0a to c4409b8 Compare August 22, 2023 06:52
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch 3 times, most recently from 69e4ce5 to af19cf4 Compare September 6, 2023 11:22
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch 2 times, most recently from 5d21f6b to b4c8b87 Compare September 13, 2023 08:50
@3d-gussner 3d-gussner self-assigned this Sep 13, 2023
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch 2 times, most recently from ccd833d to a984c7c Compare September 22, 2023 16:25
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch 2 times, most recently from 9d3bbd4 to 82ca402 Compare October 6, 2023 11:20
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch from 82ca402 to b371cb7 Compare November 23, 2023 13:49
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch from b371cb7 to 92b865d Compare December 19, 2023 21:17
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch from 92b865d to b3d1b21 Compare January 5, 2024 23:46
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch from b3d1b21 to 1d2f427 Compare January 19, 2024 18:51
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch from 1d2f427 to aec53ce Compare January 29, 2024 14:04
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch from aec53ce to c364654 Compare February 18, 2024 16:13
@3d-gussner 3d-gussner added this to the FW 3.14.1 milestone Jul 5, 2024
Delay z-axis movement when the operators hand is close to the printhead.
@sarusani sarusani force-pushed the DelayZAxisonAutoload branch from c364654 to 5efae44 Compare July 5, 2024 14:12
@3d-gussner
Copy link
Collaborator

@gudnimg @sarusani is the #4280 (review) resolved if so please mark it as "resolved".

@gudnimg
Copy link
Collaborator

gudnimg commented Jul 7, 2024

@gudnimg @sarusani is the #4280 (review) resolved if so please mark it as "resolved".

Looked over the changes again and the PR looks good to me. I haven't tested the changes though.

@gudnimg gudnimg requested a review from 3d-gussner July 7, 2024 21:16
Copy link
Collaborator

@gudnimg gudnimg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. It would be nice to get another approval as well (@3d-gussner ?)

Copy link
Collaborator

@3d-gussner 3d-gussner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with MK404

  • MK3S
  • MK3

@3d-gussner 3d-gussner merged commit 2ed3ee8 into prusa3d:MK3 Jul 11, 2024
4 checks passed
@sarusani sarusani deleted the DelayZAxisonAutoload branch July 14, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Do not move printhead up when loading filament is triggered by sensor
3 participants