Motor test, connections were for 415V 3phase, star, for my 240V 3Ph needed to swap the pins, the lable says "mesh" rather than delta, The three phases were connected to UVW. Earth to a recess in the case far left.
for 240V inverter the three phases are connectrd back to UVW, no connection to N, Earth to case. Always check earth continuity from chuck to earth pin on the plug. Or just earth the machine and always use 30mA RCD breakers. when changing motor contacts , lie it down so slipped parts dont fall inside.

New gear, In the lathe I first bored the 25.0mm hole in the acetal square 12mm blank. then from a 25mm x 11mm bossand then a 12mm thread. in hindsight I should have drilled and tapped. bandsawed the corners off the blank square and took to 92.0 mm on the hub. then turned the rear shaft to 11mm to fit in the ER20 indexing collet
The cutter was £23 on ebay , 56 teeth, less than 50p a tooth, felt blunt but its cutting plastic, …, the burrs were awful, not sure if I was going too fast, . but it cut.

Well heres a use of my 4th axis from my homemade cnc. made it for carving names on wood pens, made two ,
The 12:70 reduction with the large stepper holds the word very rigidly, I bought a new stepper driver with more microstepping but the 1/32 worked fine. I had code on the arduino to index by 1/56 every time I pressed a button. I turned it all on and the stepper just continually rotated. EMC !!! dont you love it. so Hard 470 ohm pullups and 1uF caps on the input pins solved that. all calculations were in floats and it indexed very well. Its plastic.

How many tines did you cut the gear, the first cut wasnt deep enough, or the second, the third was about right. luckily to re-cut is fairly easy to line up the cut teeth with the cutter. the important thing is not to move the cutter. in the Z or X between attempts. so i got a really ugly looking gear with loads of swarf attached I had to remove off with a scalpel.
Keep your balls in. , this shaft will need supporting from underside when re-fitting the gearbox cover, tiewrap on the detent sprung 3.1mm balls, i lost one . i heard it hit something about 2m away. 30 seconds with a magnet and i knew I would never see it again. so one is now 3.0mm. Slide the gear assembly onto this anc cut the tie wrap out . it worked . 
line the holes up with the springs, it is possible to get it 90 degrees off. 50% of the time.
To fit the gearbox cover I put a wooden ~1" spar across between the back and a slot in the quill bore to hold the end of the input shaft up,

Fitted the head , had to stand on 4 " blocks, and Im 6ft2, no quill or motor or feed. Maybe 
Damage to the quill feed , i had seen this and this photo is two weeks old but re-assembling it bit into the quill,and caused a tight spot , the tooth was pushed over , no cracking, soft against the hardened quill, , I needle filed it down and it feels great. 
Finally to make it run… Attached the motor and… the pulleys are different heights. by one . I know I took the front pulley off but it looks to me its the motor pulley thats too high. But I will be calm and let kroil do its work, , it runs.
excited. the high speed gear is a little tighter on one side than the other but…

This has been a pleasure of a project and I hope it helps others repairing similar machines. I bought the return spring from Meddings and it arrived next day with fitting instructions.