- modified grbl_laser postprocessor file so it includes a Sxxxx command on the line with M02 (laser active) whenever a value is enter in the Spindlespeed entry field
This commit is contained in:
parent
a9bc0dea56
commit
90ec8b3899
|
@ -970,8 +970,9 @@ class GeometryObjectUI(ObjectUI):
|
||||||
# Spindlespeed
|
# Spindlespeed
|
||||||
spdlabel = QtWidgets.QLabel('Spindle speed:')
|
spdlabel = QtWidgets.QLabel('Spindle speed:')
|
||||||
spdlabel.setToolTip(
|
spdlabel.setToolTip(
|
||||||
"Speed of the spindle\n"
|
"Speed of the spindle in RPM (optional).\n"
|
||||||
"in RPM (optional)"
|
"If LASER postprocessor is used,\n"
|
||||||
|
"this value is the power of laser."
|
||||||
)
|
)
|
||||||
self.grid3.addWidget(spdlabel, 14, 0)
|
self.grid3.addWidget(spdlabel, 14, 0)
|
||||||
self.cncspindlespeed_entry = IntEntry(allow_empty=True)
|
self.cncspindlespeed_entry = IntEntry(allow_empty=True)
|
||||||
|
|
|
@ -17,6 +17,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||||
- added options for trace segmentation that can be useful for auto-levelling (code snippet from Lei Zheng from a rejected pull request on FlatCAM https://bitbucket.org/realthunder/ )
|
- added options for trace segmentation that can be useful for auto-levelling (code snippet from Lei Zheng from a rejected pull request on FlatCAM https://bitbucket.org/realthunder/ )
|
||||||
- added shortcut key 'L' for creating 'New Excellon'
|
- added shortcut key 'L' for creating 'New Excellon'
|
||||||
- added shortcut key combo 'SHIFT+S' for Running a Script.
|
- added shortcut key combo 'SHIFT+S' for Running a Script.
|
||||||
|
- modified grbl_laser postprocessor file so it includes a Sxxxx command on the line with M02 (laser active) whenever a value is enter in the Spindlespeed entry field
|
||||||
|
|
||||||
26.01.2019
|
26.01.2019
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,9 @@ class grbl_laser(FlatCAMPostProc):
|
||||||
return 'M05'
|
return 'M05'
|
||||||
|
|
||||||
def down_code(self, p):
|
def down_code(self, p):
|
||||||
|
if p.spindlespeed:
|
||||||
|
return 'M03 S%d' % p.spindlespeed
|
||||||
|
else:
|
||||||
return 'M03'
|
return 'M03'
|
||||||
|
|
||||||
def toolchange_code(self, p):
|
def toolchange_code(self, p):
|
||||||
|
@ -67,9 +70,6 @@ class grbl_laser(FlatCAMPostProc):
|
||||||
return 'G01 F' + str(self.feedrate_format %(p.fr_decimals, p.feedrate_z))
|
return 'G01 F' + str(self.feedrate_format %(p.fr_decimals, p.feedrate_z))
|
||||||
|
|
||||||
def spindle_code(self, p):
|
def spindle_code(self, p):
|
||||||
if p.spindlespeed:
|
|
||||||
return 'S%d' % p.spindlespeed
|
|
||||||
else:
|
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
def dwell_code(self, p):
|
def dwell_code(self, p):
|
||||||
|
|
Loading…
Reference in New Issue