From b53df3be570fca98bdf7adde7c01eee465265c59 Mon Sep 17 00:00:00 2001 From: Daniel Wood Date: Mon, 2 Mar 2020 13:34:08 +0000 Subject: [PATCH] Stop the spindle before tool changes. --- src/Mod/Path/PathScripts/post/linuxcnc_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/post/linuxcnc_post.py b/src/Mod/Path/PathScripts/post/linuxcnc_post.py index 8673c50d1d..372bd40974 100644 --- a/src/Mod/Path/PathScripts/post/linuxcnc_post.py +++ b/src/Mod/Path/PathScripts/post/linuxcnc_post.py @@ -366,8 +366,8 @@ def parse(pathobj): # Check for Tool Change: if command == 'M6': - # if OUTPUT_COMMENTS: - # out += linenumber() + "(begin toolchange)\n" + # stop the spindle + out += linenumber() + "M5\n" for line in TOOL_CHANGE.splitlines(True): out += linenumber() + line