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

G28 X0 extrudes filament after G92 E0 #13

Open
AlanKilian opened this issue Feb 24, 2017 · 1 comment
Open

G28 X0 extrudes filament after G92 E0 #13

AlanKilian opened this issue Feb 24, 2017 · 1 comment

Comments

@AlanKilian
Copy link

If the extruder is zereod before performing an axis zero on a non-Z axis, the extruder runs because the Printer::destinationSteps[E_AXIS] value does not get set to zero prior to the move.

g0 x0 y0 z100
g1 x100 e30 f2000 ; Make a move and extrude
g92 e0 ; zero the extruder
g28 x0 ; Move to X=0 and home

This sequence causes the extruder to extrude 30mm of filament during the move to x=0

@AlanKilian
Copy link
Author

Fix is as follows:

diff --git a/Repetier Firmware/Repetier/Printer.cpp b/Repetier Firmware/Repetier/Printer.cpp
old mode 100644
new mode 100755
index 53e413c..19bced0
--- a/Repetier Firmware/Repetier/Printer.cpp
+++ b/Repetier Firmware/Repetier/Printer.cpp
@@ -1034,6 +1034,10 @@ void Printer::homeAxis(bool xaxis,bool yaxis,bool zaxis) // Delta homing code
// gratuitously fail due to incorrect settings.
// The following movements would be meaningless unless it was zeroed for example.
UI_STATUS_UPD(UI_TEXT_HOME_DELTA);
+

  • // For all homing operations, set the extruder target position to zero to avoid extruder operation
  • Printer::destinationSteps[E_AXIS] = 0;
  • // Homing Z axis means that you must home X and Y
    if (homeallaxis || zaxis)
    {

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

No branches or pull requests

1 participant