@Larry$
I have pretty much completed the modifications to the workbook to generate a version of AllTIP which does not contain the obvious duplication of TPI values. However, I would like your comments to make sure that I have not missed something. Is there anything else that can be eliminated from the AllTPI table.
I think that the only duplication of gear settings that really need to be removed are of the following structures. Have, I missed anything common?:
1) The exchange gears of 120/127 are currently entered so that the 120 can be either on the front or the back. I.e. the 120/127 can be reversed. This means that there are 4 possible combinations when both the 120 and the 127 are entered in both of the columns of the lathe sheet. The generate the following combinations 120/120, 127/120, 120/127 and 127/127. Each of these are realizable as the spindle or gear box gear can be moved in and out to accommodate. However, while 127/120 and 120/127 produce unique results, the 120/120 yields the same TPI as 127/127. Hence, only 3 of the 4 combinations yield unique results and should be kept. This means that the total number of TPI values in the table can be cut by 1/4.
In the case of your lathe PM1440HD, with the possible external gears, the total number of combinations was 6400. This is then reduced to 6400*(3/4) = 4800.
2) The second set of duplication of results is for the spindle and the gear box gears are equal in value. For example, that means the when the spindle connection has a 25T gear and and the gear box connection has a 25T gear the same results will be obtains for any other values that are identical. I.e. 30:30 40:40 etc. as their effect is cancelled out. This means that the number of total TIP values can be reduced by simply allowing only one of these and then knowing that the others yield the same results. In this case, I am thinking I will replace the two identical values with sysmbols so that we know that any pair of identical gears yields the same results. I am thinking something like "# = #" rather than say 25/25 will be more obvious in the table. ("# = #" means "number" of teeth at the gear box "equals" the "number" of teeth at the spindle.) Is that obvious enough?
So suppose the spindle has "n" gears in its list and the gear box has "m" gears in its list and that of these there are j gears which are common between the two. Then after removing all the duplicates except for one to represent the case where the two gears are identical, then the total number of combinations is given by (n*m -j+1). In the case of your lathe where we list 25,30,32,40,50 in both of these positions the total number of combinations these generate are (5*5-5+1)= 21. Since the exchange gear 120/127 axial produces 3 combinations and the gear box produces (8*4*2)=64. It means that the total number of TIP values in the table would be (8*4*2)(5*5-5+1)(3)= 4032 total.
Hence, by just these two sets of duplicates the total has been reduced from 6400 to 4032. Still a large number.
These elimination of duplicates also applies to the 2 axes where other exchange gears might be used. These usually only occur on the smaller lathes where there is no extensive gear box.
3) For your particular set of external gears there is another set of duplicates for values on the Gearbox/Spindle gears: 32/40 is the same ratio as 40/50 =.8 and so these two combinations yield the same result. However it does not seem to be worth trying to eliminate these. Besides having them would make selection of settings more straight forward. Besides others may not have duplications of ratios!
4) There are some other duplicate TPI values, but these have to do with the gear box itself when working against the external gear combinations. However, these are dependent up on the particular lathe model and would not be easy to removed nor does one want to. For example, if you already have a certain set of external gears install, by simply changing the gear box settings you might be able to get the TPI value you want without having to change external gears.
New Macros:
So I still have some clean up work to do on the macro programing, and I have had to make some other changes in hour your lathe sheet is laid out, but I think I have a macro that implements the above AllTIP table reductions.
Also, as you suggested, I have also created a macro that searches from a user generated list of TPI or metric threads, say the Standard Thread TPI and Metric mm/Thread values or anything else you want to put into it, and searches of and generates a list of all of the TPI values requested that are available. This program also allows the user to use some wild cards to get the close approximations of the desired TPI value. For example, suppose you wanted to cut 32 TPI but did not have the gears to exactly match this. You could place 32.0* in the list and it would then give you all of the available entries, which are above ("Greater Than") 32.00000 up to 32.09999 and would also give you all of the available entries below ("Less Than") 32.0 such as 31.90000 to 31.99999. If nothing is found then one could simply change this list entry to 32.* and get a bigger set of approximations. There are other combinations of wild cards, but I primarily focused on using the * rather than the ? symbols. It turns out to be rather tricky about how to do all of this, so I spent quite a bit of time getting the "Less Than" approximations. But in some cases they are the best values.
I have not figured out how to present this new set of "Standard" TPI as a table yet, but would welcome ANY suggestions or discussion. Right now the results just appear above the AllTPI table as though one had done a number of individual searches, but without deleting any of them. Of course the old search macro did not do the "Less Than" approximations. I guess I should fix that too. Anyway, I am thinking just a table with a title row followed by the search results with only a line between each value. If I can add it, to make the table narrower and more printable, I will also hide/delete the columns where there is no data.
So I ran the Standard TPI list against the set up we have been using for your lathe.
I think the UNF & UNC TPI are: 80, 72, 64, 56, 48, 44, 40, 36, 32, 28, 24, 20, 18, 16, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4.5, 4
I think the standard course and fine metric pitches are: 0.2, 0.25, 0.35, 0.4, 0.45, 0.5, 0.6, 0.7, 0.75, 0.8, 1, 1.25, 1.5, 1.75, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6
Have I missed any?
Of these and with the 5 gears listed above for the PM1440HD either at the top (spindle position) or the bottom (gear box position) I found that you could make all of the Imperial threads. Of the Metric threads you were missing the exact values for: 0.2, 0.35, 0.7,1.75, 3.50, and 5.5. However multiple approximations were available when using: 0.200* (9 values) , 0.350* (4 value), 0.700* (5 values), 1.75* (6 values), 3.50* (6 values), and 5.5* (11 values).
I am hoping to finally get this posted in the next couple of weeks.
Dave L.