threadlib/design/BSPP_thread.csv
Adrian Schlatter 827723d1b1 Eliminate threads.xlsx
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.
2019-05-05 22:29:09 +02:00

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
61/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
71/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
81/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
93/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
101/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
115/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
123/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
137/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
141 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
151 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
161 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
171 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
181 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
192 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
202 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
212 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
222 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
233 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
243 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
254 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
264 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
275 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
285 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
296 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