- added a new preprocessor for Marlin that has movemements on the Z axis named Marlin_laser_Z

- cleaned up Marlin preprocessors
This commit is contained in:
Marius Stanciu
2022-01-29 13:51:41 +02:00
committed by Marius
parent 965ccca885
commit a0fb8b5413
7 changed files with 193 additions and 31 deletions

View File

@@ -65,7 +65,7 @@ class GRBL_laser_Z(PreProc):
gcode += '(X range: ' + '{: >9s}'.format(xmin) + ' ... ' + '{: >9s}'.format(xmax) + ' ' + units + ')\n'
gcode += '(Y range: ' + '{: >9s}'.format(ymin) + ' ... ' + '{: >9s}'.format(ymax) + ' ' + units + ')\n\n'
gcode += ('G20' if p.units.upper() == 'IN' else 'G21') + "\n"
gcode += 'G20\n' if p.units.upper() == 'IN' else 'G21\n'
gcode += 'G90\n'
gcode += 'G17\n'
gcode += 'G94'