Thanks to help from Hood Scotland, M_C, and others. I now have a tool changing working machine but cant drive the spindle as yet.

Here its moving with code generated from Fusion 360, just a demo part.




And some tool changing.



Need to get the spindle running, no cutting till then. Got to tidy wiring etc and still need to wire in the chuck and a bunch of other stuff. Ive ordered a choke which might help me run the spindle from a VFD.