Metric Threads - Coarse / Fine / Super-Fine Pitches

This commit is contained in:
Adrian Schlatter
2019-04-09 21:57:32 +02:00
parent dc05e4475b
commit 873a266abc
5 changed files with 1006 additions and 10 deletions

View File

@@ -27,17 +27,17 @@ inside the ranges allowed by the norms.
Usage
===========================
To create a bolt (without head) with 10 turns of G1-inch thread:
To create a bolt (without head) with 10 turns of M12 thread:
.. code-block:: OpenSCAD
bolt("G1", turns=10);
bolt("M12x0.5", turns=10);
A nut:
.. code-block:: OpenSCAD
nut("G1", turns=10, Douter=40);
nut("M12x0.5", turns=10, Douter=40);
Note that for a nut you also have to specify an outer diameter. The inner
diameter is implicitly given by the thread designator ("G1" in this case).
@@ -69,8 +69,8 @@ List of supported threads
Currently, threadlib knows these threads:
- British Standard Pipe Parallel Threadss G1/16 to G6
- British Standard Pipe Parallel Threads G1/16 to G6
- Metric threads (coarse, fine, and super-fine pitches) M0.25 to M600
Extensibility
===========================
@@ -97,5 +97,6 @@ for addition to threadlib!
Change Log
===========================
- 0.2: Metric threads
- 0.1: Initial release supporting BSP parallel thread

File diff suppressed because it is too large Load Diff

View File

@@ -2,5 +2,5 @@ BEGIN { FS = "," ; RS = "\n"
print "/* This script is auto-generated - do not edit"
print " :License: 3-clause BSD. See LICENSE. */"
printf "\nTHREAD_TABLE = [" }
/^[GP]/ { print "[\"" $1 "\", [" $2 ", " $3 ", " $4 ", [[" $5 ", " $6 "], [" $7 ", " $8 "], [" $9 ", " $10 "], [" $11 ", " $12 "]]]],"}
/^[GPM]/ { print "[\"" $1 "\", [" $2 ", " $3 ", " $4 ", [[" $5 ", " $6 "], [" $7 ", " $8 "], [" $9 ", " $10 "], [" $11 ", " $12 "]]]],"}
END { print "];" }

View File

@@ -10,14 +10,15 @@ use <threadlib/threadlib.scad>
echo ("threadlib version: ", __THREADLIB_VERSION());
type = "G1";
type = "M12x0.5";
turns = 5;
Douter = thread_specs(str(type, "-int"))[2] * 1.2;
echo(thread_specs(str(type, "-ext")));
intersection() {
color("Green")
translate([-100, 0, -100])
cube(200, 200, 200);
translate([-1000, 0, -1000])
cube(2000, 2000, 2000);
union() {
bolt(type, turns);
nut(type, turns, Douter);

Binary file not shown.