- modified the export_gcode() method and the preprocessors such that the preprocessors now have the information if to include the gcode header

- RELEASE 8.99
This commit is contained in:
Marius Stanciu
2019-12-16 00:12:04 +02:00
committed by Marius
parent 0eabc57e70
commit 7ad091e163
18 changed files with 182 additions and 87 deletions

View File

@@ -14,6 +14,8 @@ from FlatCAMPostProc import *
class Berta_CNC(FlatCAMPostProc):
include_header = True
coordinate_format = "%.*f"
feedrate_format = '%.*f'
@@ -66,18 +68,19 @@ class Berta_CNC(FlatCAMPostProc):
gcode += '(Spindle Speed: %s RPM)\n' % str(p['spindlespeed'])
gcode += '(Berta)\n'
gcode += 'G90 G94 G17 G91.1'
gcode += (
# This line allow you to sets the machine to METRIC / INCH in the GUI
'G20\n' if p.units.upper() == 'IN' else 'G21\n')
'G20\n' if p.units.upper() == 'IN' else 'G21\n') + '\n'
# gcode += 'G21\n' # This line sets the machine to METRIC ONLY
# gcode += 'G20\n' # This line sets the machine to INCH ONLY
gcode += 'G90 G17 G91.1\n'
gcode += 'G64 P0.03\n'
gcode += 'M110\n'
gcode += 'G54\n'
gcode += 'G0\n'
gcode += '(Berta)\n'
gcode += 'G94\n'
return gcode