Skip to content

Instantly share code, notes, and snippets.

@kellertk
Created February 5, 2023 06:19
Show Gist options
  • Save kellertk/311b7ed109ad34a13d84cb928dfe7bad to your computer and use it in GitHub Desktop.
Save kellertk/311b7ed109ad34a13d84cb928dfe7bad to your computer and use it in GitHub Desktop.
Marlin gcode to level the bed and report how long it took. Used to benchmark different Z_PROBE settings.
;
; Copyright Tom Keller. Distributed under the Boost Software License, Version 1.0.
; (See https://www.boost.org/LICENSE_1_0.txt)
;
M155 S60 ; Set status interval to 60 seconds
M104 S140 ; Set temps for abl
M140 S60
G28 O ; Home
M190 S60 ; Wait for temps
M109 S140
M75 ; Start print job timer
G29 ; Run abl
M420 S1 ; Enable abl
M104 S0 ; Turn off hotend
M140 S0 ; Turn off bed
M18 ; Turn off motors
M77 ; Stop print job timer
M31 ; Show print time
M118 A1 action:prompt_begin Finished ; Tell Octoprint it's finished
M118 A1 action:prompt_choice OK!
M118 A1 action:prompt_show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment