-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbksp_drill.py
52 lines (36 loc) · 1.01 KB
/
bksp_drill.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from appPreProcessor import *
"""
Drilling preprocessor for B4CKSP4CE Laser CNC
"""
class BKSPDrill(PreProc):
include_header = False
coordinate_format = "%.*f"
feedrate_format = '%.*f'
def start_code(self, p):
return "# start"
def startz_code(self, p):
return "# startz"
def lift_code(self, p):
return "up"
def down_code(self, p):
return "down"
def toolchange_code(self, p):
return "# toolchange"
def up_to_zero_code(self, p):
return "# up to zero"
def rapid_code(self, p):
return f"move_fast\t{p.x:.4f}\t{p.y:.4f}"
def linear_code(self, p):
return "# linear"
def end_code(self, p):
return "# end"
def feedrate_code(self, p):
return "# feedrate"
def z_feedrate_code(self, p):
return "# z feedrate"
def spindle_code(self, p):
return "# spindle"
def dwell_code(self, p):
return "# dwell"
def spindle_stop_code(self, p):
return "# spindle stop"