FILENAMES: threads.c threads_makefile.linux threads_makefile.std threads_dos.exe ---plus--- threads.FreeBSC-227.tar.gz threads.SGI-62.tar.gz DESCRIPTION: These are programs to compute depth information for cutting screws. Thanks to Don Nichols for posting the "C" code and make files. Thanks to Mac McIlvaine for posting a version compiled to run under DOS (or a DOS window) on a PC platform. -- plus more versions added later, see below -- Don provided the following description: ======================================================================== This is a small program which I wrote a while back to utilize the posted information about how to calculate the depth of threads from the TPI. I found a disagreement between its output and the data on a fishtail rule, and after a bit of study discovered that the formula gave depths for a sharp V threading tool, while the fishtail was giving the depths for a formed tool (or at least one with the tip squared off). I decided to add that calculation to the program, and also have it give the actual pitch, since my small CNC lathe wants input in terms of pitch, not TPI. Since that lathe also will work in the metric system, at the flip of a switch, I also added an option switch to make this treat its input as metric as well. Here are examples of both sets of output. For inch threads: % threads 8 For a thread of: 8.00 TPI the pitch is: 0.1250"/thread the sharp V depth is: 0.1082" the sharp V double depth is: 0.2165" the formed double depth is: 0.1624" And ... for metric threads: % threads -m 1.75 For a thread pitch of: 1.75 mm the sharp V depth is: 1.52 mm the sharp V double depth is: 3.03 mm the formed double depth is: 2.2732 mm This program was written and compiled on a Sun unix box, and I have also compiled it on a linux box. That required a slight modification of the Makefile, but nothing else. To compile it on a MS-DOS system, you may need to do more work, but the program is not complex, and does not use much in the way of system-specific features, so I think that it should compile fairly well. Once compiled, it *should* run in a MS-DOS window on any of the later systems, up through Windows-NT 4.0. Perhaps if someone else compiles it for MS-DOS, they can upload the binary, to make it available to others who may wish to have it. Whether it can be made to run on a Mac is a different question, since the Mac really does not want to think in terms of command-line arguments, or command lines themselves, for that matter. :-) The program should have the filename "threads.c", and the Makefiles should be "Makefile" (for the Sun), and "Makefile.linux" for the MS-DOS. (That will probably change to something like "Makefile.lin" on the server, unless it preserves the long filenames. While the long filenames may be a problem on plain MS-DOS, I don't think that they can use the Makefile anyway. Makefiles are not really necessary for a program as simple as this, I just happen to like them.] Good Luck with the programs DoN. -------------------------------------------------------------- Mac added: ============================================================== This a compiled version of THREADS.C for DOS This exe file should run in any DOS window on a PC platform. -- Mac Homebrewer and tinker by choice, Computer geek by trade. ============================================================== Attached you will find versions of the threads program pre-compiled (with source and Makefile) for SGI machines and for BSD machines -- thanks to a friend who has access to both. Enjoy, DoN.