Skip to content

Conversation

DTV96Calibre
Copy link

The Simplify3D generated G-Code uses absolute extruder and XYZ position values. If the user's custom start gcode sets it to relative and fails to set it back, the printer will be operating in the wrong mode.

Notably PrusaSlicer profiles for Prusa machines includes start g-code that sets the extruder to relative mode (M83) and doesn't change it back.

customstart may fail to restore extruder to absolute mode, so reset extruder position and extrusion mode
@DTV96Calibre DTV96Calibre changed the title Patch 1 Post-customstart axes mode failsafe Jul 27, 2021
@DTV96Calibre
Copy link
Author

So... the behavior of G90 differs slightly between RepRap and Marlin. Marlin also sets the extruder axis to absolute mode but RepRap requires the use of M82. Both support M82, so I'll re-add that in the next commit.

@teachingtechYT
Copy link
Owner

G90 and M82 are already in the start gcode. Is the important addition here the G92 E0.0?
That comes early in the gcode but I can see the value of putting it in the start gcode to prepare for any user added priming moves.

@DTV96Calibre
Copy link
Author

DTV96Calibre commented Jul 30, 2021

The problem is that the custom start gcode might undo the earlier G90 and M82. The changes in this pull request reapplies G90 and M82 after the custom start gcode. We can't trust the user (i.e. me) to tidy up after themselves, so we cleanup after them.

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.

2 participants