Thats an easy problem, but you need a bob or motion control card that is capable of threading.
I don't know which bob, but mesa 5i25 or 7i80 an 7i76(e) and the CSMIO controllers can do that.

And Boxford have the SW, but don't want to sell it to everyone, they should have contracts with schools, that they only sell SW to them.

For threading you'll need 2 light barriers on the spindle, one with 50 or 100 holes is for determining the spindle speed and the other with only one hole is needed for the calculation of the starting point, where the tool begins to move.