Hi Wayne, I would love to see your macro all the same...I know how the turret encoder works and which wires and all that, but I don't know how to write macros
and I was wondering if saw yours maybe it would be a good starting point...
the hnc encoder has 4 wires...and depending which one are on off tells your what position
for example 0001 is turret position X....
the turret has a solenoid that lifts, and turns the turret, and another that stops the turn...
so, the macro lifts and starts turning and looks for the comanded encoder position, 0001 for example, when it sees that, it fires the stop ratchet thingy...(tech term) and stalls the air motor until you then tell it to drop the turret, and stop spinning....the magnet on the encoder is adjustable on it's shaft for timing adjustments...on the old control, there was a switch that would let you index the turret one position, but not drop the turret (so if your timing was off you would not hurt your turret by lowering in the wrong place) finally there is a limit switch that tells you that the turret has dropped properly in place.
Sooooooo, the macro needs to have the definitions for those 8 turret positions and when you command a T(x) it starts the turret index routine...(as far as I know so far)
anyway, would love if you would like to share...no hard feelings if it's private.....thanks, Roo