mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-01-16 20:58:26 +01:00
827723d1b1
Replaces threads.xlsx by one .csv file and one awk script per thread type. The script calculates threadlib specs from the data in the .csv file. Finally and as before, autogenerate.awk generates the OpenSCAD code (i.e. THREAD_TABLE.scad). A new Makefile automates this process: make does what is needed. It also provides a target 'test' to run the (existing) tests. To add a new thread type: - provide newthread.csv - provide newthread.awk - modify Makefile to generate your new threads - add appropriate tests Additionally: - fixed bug in Rrot when DRmax is too large. - reduced number of significant figures to a resolution of 0.1 um (while not extremely generous for the very finest threads, it should be enough by far for any 3D-prints). - increased test limit for thread angle deviations (necessary due to reduced number of significant figures) - added test counter: 'make test' now prints number of tests run + number of threads tested. - For unknown reasons (MacOS awk?) final match-all rule in test_table.awk does not match with double-quotes. Work-around: Match without double-quotes.
2.2 KiB
2.2 KiB
1 | # Tolerances on pitch diametera Tolerance on minor diameter Tolerance on major diameter |
---|---|
2 | # Tolerances Pitch Diameters Tol. min. Dia. Tol. maj. Dia |
3 | # Diameters Int thread TD2 Ext thread Td2 Int thread TD1 Ext thread Td |
4 | #Desig TPI Pitch h d=D d2=D2 d1=D1 -Delta +Delta -Delta -Delta +Delta -Delta +Delta -Delta +Delta |
5 | #http://mdmetric.com/tech/thddat7.htm |
6 | 1/16 28 0.907 0.581 7.723 7.142 6.561 0 0.107 -0.107 -0.214 0 0 0.282 -0.214 0 |
7 | 1/8 28 0.907 0.581 9.728 9.147 8.566 0 0.107 -0.107 -0.214 0 0 0.282 -0.214 0 |
8 | 1/4 19 1.337 0.856 13.157 12.301 11.445 0 0.125 -0.125 -0.25 0 0 0.445 -0.25 0 |
9 | 3/8 19 1.337 0.856 16.662 15.806 14.95 0 0.125 -0.125 -0.25 0 0 0.445 -0.25 0 |
10 | 1/2 14 1.814 1.162 20.955 19.793 18.631 0 0.142 -0.142 -0.284 0 0 0.541 -0.284 0 |
11 | 5/8 14 1.814 1.162 22.911 21.749 20.587 0 0.142 -0.142 -0.284 0 0 0.541 -0.284 0 |
12 | 3/4 14 1.814 1.162 26.441 25.279 24.117 0 0.142 -0.142 -0.284 0 0 0.541 -0.284 0 |
13 | 7/8 14 1.814 1.162 30.201 29.039 27.877 0 0.142 -0.142 -0.284 0 0 0.541 -0.284 0 |
14 | 1 11 2.309 1.479 33.249 31.77 30.291 0 0.18 -0.18 -0.36 0 0 0.64 -0.36 0 |
15 | 1 1/8 11 2.309 1.479 37.897 36.418 34.939 0 0.18 -0.18 -0.36 0 0 0.64 -0.36 0 |
16 | 1 1/4 11 2.309 1.479 41.91 40.431 38.952 0 0.18 -0.18 -0.36 0 0 0.64 -0.36 0 |
17 | 1 1/2 11 2.309 1.479 47.803 46.324 44.845 0 0.18 -0.18 -0.36 0 0 0.64 -0.36 0 |
18 | 1 3/4 11 2.309 1.479 53.746 52.267 50.788 0 0.18 -0.18 -0.36 0 0 0.64 -0.36 0 |
19 | 2 11 2.309 1.479 59.614 58.135 56.656 0 0.18 -0.18 -0.36 0 0 0.64 -0.36 0 |
20 | 2 1/4 11 2.309 1.479 65.71 64.231 62.752 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
21 | 2 1/2 11 2.309 1.479 75.184 73.705 72.226 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
22 | 2 3/4 11 2.309 1.479 81.534 80.055 78.576 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
23 | 3 11 2.309 1.479 87.884 86.405 84.926 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
24 | 3 1/2 11 2.309 1.479 100.33 98.851 97.372 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
25 | 4 11 2.309 1.479 113.03 111.551 110.072 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
26 | 4 1/2 11 2.309 1.479 125.73 124.251 122.772 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
27 | 5 11 2.309 1.479 138.43 136.951 135.472 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
28 | 5 1/2 11 2.309 1.479 151.13 149.651 148.172 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |
29 | 6 11 2.309 1.479 163.83 162.351 160.872 0 0.217 -0.217 -0.434 0 0 0.64 -0.434 0 |