Fixed M6 tool index for linuxcnc and opensbp.
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user