- added the bounds coordinates to the GCODE header; modified the postprocessor files to show them.

This commit is contained in:
Marius Stanciu
2019-02-01 00:23:20 +02:00
committed by Marius S
parent d5853722c3
commit d45d2c05ec
8 changed files with 60 additions and 8 deletions

View File

@@ -22,7 +22,13 @@ class grbl_laser(FlatCAMPostProc):
gcode += '(Postprocessor Excellon: ' + str(p['pp_excellon_name']) + ')\n'
else:
gcode += '(Postprocessor Geometry: ' + str(p['pp_geometry_name']) + ')\n'
gcode += ('G20' if p.units.upper() == 'IN' else 'G21') + "\n"
gcode += ('G20' if p.units.upper() == 'IN' else 'G21') + "\n" + '\n'
gcode += '(X min: ' + '%.*f' % (p.coords_decimals, p['options']['xmin']) + units + ')\n'
gcode += '(Y min: ' + '%.*f' % (p.coords_decimals, p['options']['ymin']) + units + ')\n'
gcode += '(X max: ' + '%.*f' % (p.coords_decimals, p['options']['xmax']) + units + ')\n'
gcode += '(Y max: ' + '%.*f' % (p.coords_decimals, p['options']['ymax']) + units + ')\n\n'
gcode += 'G90\n'
gcode += 'G94\n'
gcode += 'G17\n'