Last active
January 9, 2019 06:13
-
-
Save gmatcha/0b76eabe82802aa8fd70ee2a973689a5 to your computer and use it in GitHub Desktop.
Sample gcode to calibrate z-offset for auto bed leveling
This file contains 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
; for PLA calibration | |
M140 S60 ; head up bed first for thermal expansion | |
M104 S190 T0 ; start heating T0 to 190 degrees Celsius | |
; inspect probe placement & ensure safe Z home return is enabled | |
; | |
M851 Z0 ; reset z-offset to zero | |
G28 ; safe-z home all x,y,z while the extruder is still heating | |
M109 S190 T0 ; wait for T0 to reach 190 degrees before continuing with any other commands | |
; | |
G1 X110 Y110 ; move center of bed with offset zero | |
; | |
M211 S0 ; now disable software endstops | |
; record nozzle z-offset | |
; | |
M851 Z-1.00 ; save offset of -1.0 | |
M500 ; store EEPROM | |
M211 S1 ; restore endstops ***** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment