- made sure that for laser preprocessors, the laser is always turned off completely at the end of a job

- added a new script example
This commit is contained in:
Marius Stanciu
2022-01-31 04:13:41 +02:00
committed by Marius
parent 056ff05e29
commit 7ac1ff6364
11 changed files with 85 additions and 54 deletions

View File

@@ -122,8 +122,4 @@ class GRBL_laser(PreProc):
return ''
def spindle_stop_code(self, p):
if float(p.laser_min_power) > 0.0:
# the formatted text: laser OFF must always be like this else the plotting will not be done correctly
return 'M3 S%s (laser OFF)\n' % str(p.laser_min_power)
else:
return 'M5'
return 'M5'

View File

@@ -143,8 +143,4 @@ class GRBL_laser_z(PreProc):
return ''
def spindle_stop_code(self, p):
if float(p.laser_min_power) > 0.0:
# the formatted text: laser OFF must always be like this else the plotting will not be done correctly
return 'M3 S%s (laser OFF)\n' % str(p.laser_min_power)
else:
return 'M5'
return 'M5'

View File

@@ -135,10 +135,6 @@ class Marlin_laser_FAN_pin(PreProc):
return ''
def spindle_stop_code(self, p):
if float(p.laser_min_power) > 0.0:
# the formatted text: laser OFF must always be like this else the plotting will not be done correctly
return 'M106 S%s ;laser OFF\n' % str(p.laser_min_power)
else:
gcode = 'M400\n'
gcode += 'M106 S0'
return gcode
gcode = 'M400\n'
gcode += 'M106 S0'
return gcode

View File

@@ -135,10 +135,6 @@ class Marlin_laser_Spindle_pin(PreProc):
return ''
def spindle_stop_code(self, p):
if float(p.laser_min_power) > 0.0:
# the formatted text: laser OFF must always be like this else the plotting will not be done correctly
return 'M3 S%s ;laser OFF\n' % str(p.laser_min_power)
else:
gcode = 'M400\n'
gcode += 'M5'
return gcode
gcode = 'M400\n'
gcode += 'M5'
return gcode

View File

@@ -176,10 +176,6 @@ class Marlin_laser_z(PreProc):
return ''
def spindle_stop_code(self, p):
if float(p.laser_min_power) > 0.0:
# the formatted text: laser OFF must always be like this else the plotting will not be done correctly
return 'M3 S%s ;laser OFF\n' % str(p.laser_min_power)
else:
gcode = 'M400\n'
gcode += 'M5'
return gcode
gcode = 'M400\n'
gcode += 'M5'
return gcode