- 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:
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user