Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only park the spindle during probing if running #143

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions macro/movement/G6600.g
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@
if { !inputs[state.thisInput].active }
M99

; This is just for safety. It is good practice to park the machine and
; stop the spindle before calling any probing macro, and we should do
; this in any post-processor that targets the MillenniumOS Gcode Dialect,
; but we do this here just to make 100% certain that nobody is going to
; end up jogging the spindle around while it is running.
G27 Z1
if { spindles[global.mosSID].current != 0 }
echo { "Spindle should be stopped before probing! Parking now..."}
G27 Z1

if { !exists(global.mosLdd) || !global.mosLdd }
abort {"MillenniumOS is not loaded! Please restart your mainboard and check for any startup errors!"}
Expand Down