Presently I have a Dyna DM3000 lathe with a 6 position turret tool changer. I have had it running in a few different configurations over the years. Never really satisfied with each set up, mostly due to my lack of understanding of the options and how a professional lathe should be set up.
Inevitably someone comes along with a much nicer conversion and you realize the options you left out or misunderstood or figured out how to implement since the last assembly.
When I first got the lathe, I was given the tool change macro written by a generous forum user with the same model of lathe. The macro works fine however it only travels 1 direction, rotates in multiples of 60 degrees depending on which tool is requested and then backs up a few degrees into the pawl (that is screw adjustable for tool height).
All of the original literature on this lathe states that the tool changer is bidirectional. As I learn more, I see MRM on the zone dissect the tool changer and discover there is a 24vdc solenoid that can retract the pawl and truly allow bidirectional rotation. I now have an extra 24vdc power supply in my cabinet along with a relay just for that solenoid. My thought is that it will be wired as would any auxiliary feature such as coolant, mist, spindle etc. There are also a series of photo interrupters on the turret shaft but I am not sure of what they are, or are there for, just yet. I am guessing rotational verification or positioning of some kind.
So my question is this. How would I write a macro that can
A. Go the shortest distance to the next tool?
B. If going the direction against the pawl, to lift the solenoid during that directions rotation but let it activate upon the backing into the pawl? I still believe the few degree back up will be required for repeatable tool height.
C. If you do understand what the other interrupters are for, please chime in.