seemecnc / Firmware

One Repetier firmware for all SeeMeCNC RAMBo controll 3D printers.
28 stars 43 forks source link

G28 X0 extrudes filament after G92 E0 #13

Open AlanKilian opened 7 years ago

AlanKilian commented 7 years ago

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 commented 7 years ago

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); +