summaryrefslogtreecommitdiff
path: root/nc_files/threading.ngc
blob: c08a7625dfd7fb8e0290be99cf0ef97797c75ead (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
g20
g64

s1200 m3
g4p2
g0x.5
z.7
f3

#1=.05
o101 while [#1 GE .04]
g0z.7
g1x.020
g1z[#1 + .65]
z[#1 + .54]x.13
#1=[#1-.008]
o101 endwhile

s400 m3 (=20ipm cutting at .05tpi)
g4p2
f20

#1=0.118 (full radius)
#2=0.0005 (X increment)
#3=0.0375 (depth of cut)
#4=0.05 (thread pitch)
#5=0.7 (Z length)
(end of arguments)

#6=0.0
o100 while [#6 LE #3]
#7=[[#3 - #6] * TAN [29]]
g0x[#1 + .2]z[#5 + #7]
g0x[.1 + #1 - #6]
g1x[#1 - #6]
g33z[.1 + #7]k#4
(stay synchronized and exit at 45 degrees)
g33x[.1 + #1 - #6]z#7k[sqrt[2]*[#4]]
g0x[#1 + .2]
#6=[#6 + #2]
o100 endwhile

(two spring passes)
g0x[#1 + .2]z[#5 + #7]
g0x[.1 + #1 - #6]
g1x[#1 - #6]
g33z[.1 + #7]k#4
g33x[.1 + #1 - #6]z#7k[sqrt[2]*[#4]]
g0x[#1 + .2]

g0x[#1 + .2]z[#5 + #7]
g0x[.1 + #1 - #6]
g1x[#1 - #6]
g33z[.1 + #7]k#4
g33x[.1 + #1 - #6]z#7k[sqrt[2]*[#4]]
g0x[#1 + .2]

s1000 m3
g4p2
g0x.5
z.7
x.117
f1.5
g1z0
g0x.13
z.7
g0x.13

s300m3
g4p2
g0x.68
g0z0
g1x.82f.15
g0x.68

m2