Implement libarea improvements for profile Implement libarea pocketing. consolidate occ and libarea pocketing operation into one with algorithm switch consolidate occ aand libarea profile op into one with algorithm switch add basic engraving operation. Add rough UI for profile holding tags implement holding tags for libarea profile. implement basic defaults for depth settings. First move in Drilling is rapid to clearance height. UI needs lots of work but is usable.
25 lines
550 B
Python
Executable File
25 lines
550 B
Python
Executable File
import nc
|
|
import emc2
|
|
|
|
class Creator(emc2.Creator):
|
|
def init(self):
|
|
iso.Creator.init(self)
|
|
|
|
def program_begin(self, id, comment):
|
|
self.write( ('(' + comment + ')' + '\n') )
|
|
|
|
def tool_change(self, id):
|
|
self.write_blocknum()
|
|
self.write('G53 G00 Z30\n')
|
|
self.write_blocknum()
|
|
self.write((self.TOOL() % id) + '\n')
|
|
self.write_blocknum()
|
|
self.write('G01 Z100.000 F800.000\n')
|
|
self.write_blocknum()
|
|
self.write('M0\n')
|
|
self.write_blocknum()
|
|
self.write('G01 Z10.000 F300.000\n')
|
|
|
|
|
|
nc.creator = Creator()
|