Yes, Craig kindly sent me this code a couple of days ago and it works well and I even like the way it sets next line and reports the new with the previous one. But like you, Terry, I haven't yet figured how exactly it works.
That idea of looking for a "(" is nice, but sometimes I am lazy when adding comments manually so use the ";" character instead. Should I be able to look for it as well and then for a CR to reset the flag?
Doing for Turn, what if we OR gated the following in the If statement: "T0" OR "T1" OR "T2". True, not an elegant way, but it will do what's needed. And I don't have tools on the lathe past 29. If I had I could just add another one to the OR: "T3" and so on...
If you meant the PWM, then it has nothing to do with Mach3. What provides this is the Smooth Stepper external controller, which does it locally in its hardware. With the parallel port you cannot do this.
Anyway, as mentioned by others above, I would guess that you may not really need this for the things you're looking to do.