Fixed M6 tool index for linuxcnc and opensbp.

This commit is contained in:
Markus Lampert
2017-06-02 21:10:53 -07:00
parent 88c41117b8
commit 57fed76be7
3 changed files with 5 additions and 5 deletions

View File

@@ -261,7 +261,7 @@ def parse(pathobj):
outstring.append(
param + format(float(speed.getValueAs(UNIT_FORMAT)), precision_string) )
elif param == 'T':
outstring.append(param + str(c.Parameters['T']))
outstring.append(param + str(int(c.Parameters['T'])))
else:
outstring.append(
param + format(c.Parameters[param], precision_string))

View File

@@ -248,9 +248,9 @@ def tool_change(command):
txt += "'a tool change happens now\n"
for line in TOOL_CHANGE.splitlines(True):
txt += line
txt += "&ToolName=" + str(command.Parameters['T'])
txt += "&ToolName=" + str(int(command.Parameters['T']))
txt += "\n"
txt += "&Tool=" + str(command.Parameters['T'])
txt += "&Tool=" + str(int(command.Parameters['T']))
txt += "\n"
return txt

View File

@@ -1,10 +1,10 @@
G17 G90
G21
(Default_Tool)
M6 T1.0
M6 T1
M3 S0.00
(TC)
M6 T2.0
M6 T2
M3 S0.00
(Contour)
(Uncompensated Tool Path)