Created
June 18, 2025 18:41
-
-
Save ravenlp/fcdca07568a5c7fd409092a52a82e072 to your computer and use it in GitHub Desktop.
Custom G-CODE to hit a switch on top of the back-left stepper motor on a Prusa Core One. Parts of the code has been taken from bambooStudio that let the user enable this feature from the UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;AFTER_LAYER_CHANGE | |
| ;[layer_z] | |
| G92 E0 ;Stop extrusion | |
| G1 E-0.7 F1800 ;Retraction | |
| G17 | |
| G2 Z{layer_z + 0.4} I0.86 J0.86 P1 F20000 ;Spiral lift a little | |
| G1 X110 Y220 F20000 ;Move to safe pos | |
| G17 | |
| G2 Z{layer_z} I0.86 J0.86 P1 F20000 | |
| G1 X0 F15000 | |
| G4 S0; Wait for move to finish | |
| G1 X5; | |
| G4 P250 ;Wait for the picture to be taken | |
| G92 E0 | |
| G1 E0.3 F300 ;Extrude some so we don't leave gaps | |
| G1 X110 F20000 ;Move to the back to continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment