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

Fix E3 V2 extruder movement when moving other axis #20806

Conversation

sjasonsmith
Copy link
Contributor

@sjasonsmith sjasonsmith commented Jan 18, 2021

Description

The E3 DWIN Motion menu resets E to zero each time the menu is entered, so that extruder movement is relative from 0.0.

The code injected a G92 command and immediately after set current_position.e to zero. This caused the G92 code to optimize out any adjustment, since current_position already matched the adjusted position.

I've changed this to call sync_plan_position_e instead of injecting G92. This code already uses internal calls to perform moves, so it doesn't make sense to use g-code for this when we have an internal call it can easily use.

Requirements

Ender 3 V2 DWIN display.

Benefits

No more weird E movement when manually moving other axis.

Configurations

Ender 3 V2 example.

Related Issues

#19944

@sjasonsmith sjasonsmith added Needs: Testing Testing is needed for this change PR: Bug Fix labels Jan 18, 2021
@sjasonsmith sjasonsmith changed the title Fix E3 V2 E movement when moving other axis Fix E3 V2 extruder movement when moving other axis Jan 18, 2021
@sjasonsmith sjasonsmith linked an issue Jan 18, 2021 that may be closed by this pull request
@Bluelinegecko
Copy link

Seems to have resolved the issue on the Ender3V2 I am working on.

@sjasonsmith sjasonsmith removed the Needs: Testing Testing is needed for this change label Jan 18, 2021
@thinkyhead
Copy link
Member

The real question is: Why is the E coordinate being reset to 0 by the LCD code at that point? Maybe the E position should be left alone, just as it is left untouched by the reference code (MarlinUI manual move).

@thinkyhead thinkyhead merged commit d879853 into MarlinFirmware:bugfix-2.0.x Jan 21, 2021
@thinkyhead
Copy link
Member

I've posted a followup #20837 to prevent the E position being reset to zero by entering the manual move menu. Instead it just initializes the scaled copy of the E position from the current E position. With that change manual moves should work in the same manner as with the other rotary-knob LCD controllers. Please give it a test to make sure I haven't misplaced any commas….

JayceeB1 added a commit to JayceeB1/Marlin that referenced this pull request Jan 21, 2021
JayceeB1 added a commit to JayceeB1/Marlin that referenced this pull request Jan 21, 2021
kpishere pushed a commit to kpishere/Marlin that referenced this pull request Feb 19, 2021
zillarob pushed a commit to zillarob/Marlin that referenced this pull request Feb 25, 2021
W4tel-BiDi pushed a commit to W4tel-BiDi/Marlin that referenced this pull request Apr 5, 2021
thinkyhead pushed a commit to thinkyhead/Marlin that referenced this pull request Apr 29, 2021
@sjasonsmith sjasonsmith deleted the PR/Bug19944_DWIN_Extruder_Movement branch April 21, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Ender 3V2 - Moving Z after called print also moves extruder
3 participants