Skip to content

Commit

Permalink
Add tool height offsets to Linuxcnc_post
Browse files Browse the repository at this point in the history
  • Loading branch information
dubstar-04 committed Sep 6, 2019
1 parent 6195b5e commit c3e7d7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Path/PathScripts/post/linuxcnc_post.py
Expand Up @@ -354,6 +354,10 @@ def parse(pathobj):
for line in TOOL_CHANGE.splitlines(True):
out += linenumber() + line

# add height offset
tool_height = '\nG43 H' + str(int(c.Parameters['T']))
outstring.append(tool_height)

if command == "message":
if OUTPUT_COMMENTS is False:
out = []
Expand Down

0 comments on commit c3e7d7c

Please sign in to comment.