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