61
General Mach Discussion / Re: Mach ? to control Starturn 5
« on: December 05, 2006, 03:24:23 PM »
Hi Max
So you're the guy with the Starturn 5 - we've just been discussing your lathe over on the denford forum (www.denfordata.com/bb). I've got a Starturn 4 converted to Mach at home, a mate of mine is converting an Orac, and I also use an Orac and Triac at work.
The basic working of the toolpost is quite simple. The toolpost should only rotate in one direction, and there is a ratchet that prevents it being pushed back. Basically the three optosensors shine light onto a BCD coded disc. So what you will get back is 3 lines giving you the tool number. When the correct tool number is detected, the toolpost motor is switched into reverse and the toolpost drives back against the ratchet.
So in theory only 4 wires are required. You will need to find the circuit that controls the toolpost motor and see how this is turned on and off. With regard to the signal lines these run at 12V which is a bit more inconvenient and will require you to make up some optoisolators. I started a project to do the electronics for my mates toolchanger - unfortunately a year later he still hasn't go his lathe going so i've only tested the electronics on the bench.
Basically I used an AVR microcontroller - I then wrote a program that read the an RS232 string - converted this to the toolnumber - activated the toolpost motor and then rotated the tool until the correct one was detected. It then sent an RS232 string back to Mach to tell it that the toolchange was complete. John Pearson has done something similar - see the VB code to drive the RS232 comms here -http://www.machsupport.com/forum/index.php?topic=1658.0
Hope thats some help
Cheers
Dave
So you're the guy with the Starturn 5 - we've just been discussing your lathe over on the denford forum (www.denfordata.com/bb). I've got a Starturn 4 converted to Mach at home, a mate of mine is converting an Orac, and I also use an Orac and Triac at work.
The basic working of the toolpost is quite simple. The toolpost should only rotate in one direction, and there is a ratchet that prevents it being pushed back. Basically the three optosensors shine light onto a BCD coded disc. So what you will get back is 3 lines giving you the tool number. When the correct tool number is detected, the toolpost motor is switched into reverse and the toolpost drives back against the ratchet.
So in theory only 4 wires are required. You will need to find the circuit that controls the toolpost motor and see how this is turned on and off. With regard to the signal lines these run at 12V which is a bit more inconvenient and will require you to make up some optoisolators. I started a project to do the electronics for my mates toolchanger - unfortunately a year later he still hasn't go his lathe going so i've only tested the electronics on the bench.
Basically I used an AVR microcontroller - I then wrote a program that read the an RS232 string - converted this to the toolnumber - activated the toolpost motor and then rotated the tool until the correct one was detected. It then sent an RS232 string back to Mach to tell it that the toolchange was complete. John Pearson has done something similar - see the VB code to drive the RS232 comms here -http://www.machsupport.com/forum/index.php?topic=1658.0
Hope thats some help
Cheers
Dave