- fixed all the laser preprocessors to work correctly and the resulting GCode to be plotted
- made sure that when drilling and milling with a `laser` preprocessor the first move is not done with the laser on
This commit is contained in:
@@ -63,14 +63,12 @@ class Marlin_laser_Spindle_pin(PreProc):
|
||||
|
||||
def lift_code(self, p):
|
||||
if float(p.laser_min_power) > 0.0:
|
||||
return 'M3 S%s' % str(p.laser_min_power)
|
||||
# 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:
|
||||
if float(p.laser_min_power) > 0.0:
|
||||
return 'M3 S%s' % str(p.laser_min_power)
|
||||
else:
|
||||
gcode = 'M400\n'
|
||||
gcode += 'M5'
|
||||
return gcode
|
||||
gcode = 'M400\n'
|
||||
gcode += 'M5'
|
||||
return gcode
|
||||
|
||||
def down_code(self, p):
|
||||
if p.spindlespeed:
|
||||
@@ -82,12 +80,7 @@ class Marlin_laser_Spindle_pin(PreProc):
|
||||
return ''
|
||||
|
||||
def up_to_zero_code(self, p):
|
||||
if float(p.laser_min_power) > 0.0:
|
||||
return 'M3 S%s' % str(p.laser_min_power)
|
||||
else:
|
||||
gcode = 'M400\n'
|
||||
gcode += 'M5'
|
||||
return gcode
|
||||
return ''
|
||||
|
||||
def position_code(self, p):
|
||||
# formula for skewing on x for example is:
|
||||
@@ -143,7 +136,8 @@ class Marlin_laser_Spindle_pin(PreProc):
|
||||
|
||||
def spindle_stop_code(self, p):
|
||||
if float(p.laser_min_power) > 0.0:
|
||||
return 'M3 S%s' % str(p.laser_min_power)
|
||||
# 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'
|
||||
|
||||
Reference in New Issue
Block a user