Update M142 command for setting cooler temp

parent d0b2f770
Pipeline #67 skipped
...@@ -819,7 +819,7 @@ class Gcode_tools(inkex.Effect): ...@@ -819,7 +819,7 @@ class Gcode_tools(inkex.Effect):
gcode += ("M5 \n"); gcode += ("M5 \n");
gcode += ';End of Raster Image '+str(curve['id'])+'\n\n' gcode += ';End of Raster Image '+str(curve['id'])+'\n\n'
if float(self.options.cooler) > 0.0 and bool(self.options.cooleronstop): if float(self.options.cooler) > 0.0 and bool(self.options.cooleronstop):
gcode += 'M140 C'+str(self.options.cooler)+' ; continue to cool down laser\n' gcode += 'M142 S'+str(self.options.cooler)+' ; continue to cool down laser\n'
return gcode return gcode
...@@ -1449,7 +1449,7 @@ class Gcode_tools(inkex.Effect): ...@@ -1449,7 +1449,7 @@ class Gcode_tools(inkex.Effect):
gcode += "M80 ; Turn on Optional Peripherals Board at LMN\n" gcode += "M80 ; Turn on Optional Peripherals Board at LMN\n"
if float(self.options.cooler) > 0: if float(self.options.cooler) > 0:
gcode +="M140 C S"+str(self.options.cooler)+"\n" gcode +="M142 S"+str(self.options.cooler)+"\n"
#Put the header data in the gcode file #Put the header data in the gcode file
gcode += """ gcode += """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment