Can't help with the actual program, but I have seen it done on pretty much std. Okuma lathes. Okuma even had a cam turning lathe, looked like a cadet with the turret removed and a tool post added. The tool was almost a blurr when it was turning. It was done with macro programming, that much I know.