From 4ae4e7be1aef1fc8b6b608cc26ec2c46ba91ed9c Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 12 Mar 2022 12:05:57 -0600 Subject: [PATCH] Path: Correct beginning retraction to safe height feed rate, issue #6279 [Bug] This commit changes the feed rate of the beginning retraction from G1 at Feed to a G0 Rapid rate. This initial command is causing a problem with the Tag Dressup due to the first move being a G1 to Safe Height. --- src/Mod/Path/PathScripts/PathDressupPathBoundary.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathDressupPathBoundary.py b/src/Mod/Path/PathScripts/PathDressupPathBoundary.py index 6e7df53aeb..834528d8b4 100644 --- a/src/Mod/Path/PathScripts/PathDressupPathBoundary.py +++ b/src/Mod/Path/PathScripts/PathDressupPathBoundary.py @@ -123,7 +123,7 @@ class PathBoundary: self.inside = inside self.safeHeight = None self.clearanceHeight = None - self.strG1ZsafeHeight = None + self.strG0ZsafeHeight = None self.strG0ZclearanceHeight = None def boundaryCommands(self, begin, end, verticalFeed): @@ -132,7 +132,7 @@ class PathBoundary: return [] cmds = [] if begin.z < self.safeHeight: - cmds.append(self.strG1ZsafeHeight) + cmds.append(self.strG0ZsafeHeight) if begin.z < self.clearanceHeight: cmds.append(self.strG0ZclearanceHeight) if end: @@ -161,8 +161,8 @@ class PathBoundary: self.clearanceHeight = float( PathUtil.opProperty(self.baseOp, "ClearanceHeight") ) - self.strG1ZsafeHeight = Path.Command( - "G1", {"Z": self.safeHeight, "F": tc.VertFeed.Value} + self.strG0ZsafeHeight = Path.Command( # was a Feed rate with G1 + "G0", {"Z": self.safeHeight, "F": tc.VertRapid.Value} ) self.strG0ZclearanceHeight = Path.Command("G0", {"Z": self.clearanceHeight})