Finally took some time to get my (Dynomotion's KFlop/Kanalog) four axis Lathe using (3) Parker Gemini Servos and (2) Mitsubishi J3 Servo drives all analog 0-10volt setup to cut Threads (G32)
Yes, its just wax, so much easier on my blood pressure.

What I'd learned from programming with Lua helped in my need to be able to control the Spindle as a rotating drive and as a positioning device, then have it switch back and forth automatically. Having a vision and being able to achieve it takes
TIME. Educating by reading, testing & time to get capable, and get my mind wrapped around all the issues.
Note: The Kflop uses C programming and this was cut using their KmotionCNC software.
Not sure where Dynomotion is on their plugin for Mach4 but the design and build of this machine was focused on having control to turn and contour mill using Mach4 (started this project years ago). Though I used this machine as a turning center over the past couple of years, I am getting closer to my dream.

Never give up

Everyone learns at there own pace.