does anyone know if there is a way to control angular indexing of the spindle with mach3 lathe? Say I wanted to be able to broach gears or something on my lathe, is there a way to index the spindle like a rotary axis?

Edit...
I realize that's a broad question. So more specifically, is there a way to add a third axis to the screen set? I can handle the rest if I can get a step and dir signal to output from mach3L