Another interesting journey this morning !
The Turret has seven proximity switches. Four in a Euchner block as described above, one for 'Clamped', one for 'Unclamped' and one for 'Zero Reference'
I had been able to prove all working except the 'Zero Reference' one so this morning, moving the turret as far as I could towards the chuck without tripping the over travel alarm, I could just see it right at the top back surface, pointing inwards towards the toothed dog clutch disk. I don't like sticking my head in places like this with the power on, as if the Z servo was to have a fault I could be pulped, but the power has to be on to unclamp the turret to rotate it to see the notch it is supposed to detect. Strangely this corresponds to somewhere between tool positions 7 & 8
With my 'scope on the output of the sensor as detailed in the circuit diagram, I rotated the turret back and forth either side of the notch. Permanent 24 volts - nothing detected. Just to be sure, I took the cover off the terminal box mounted on the turret, checked that the sensor had it's 0v and 24v supplies, and it's output was permanent 24 v. OK faulty sensor - unscrew it. Well it's right behind the turret. By lowering the X axis as far as possible it's possible to start unscrewing it, hindered by the clamp and unclamp sensors whose cables get in the way.
Eventually, it's out on the bench for testing. Rough and ready - bench supply set to 24 volts, meter on the output, spanner in and out of range. Works perfectly

Actually, this is good thing as these particular proximity sensors are far from cheap, but whats going on. Back to the terminal block - hang on still showing 24 volts as in detecting

Then back to the other end of the cable where it goes into the SMCC card - why's that wire a different colour ???
Turns out that the output of the sensor has been connected to the famous 'Terminal 100' - it's the extra green wire that caused confusion before. All very odd.
I can see that the software doesn't need a Zero Ref input when it already has a four bit tool count as the tool disk rotates - so is this an official mod, or did someone bodge it in the past - no way of knowing
Can't put it back just yet as I need to smarten up - the wife's playing a gig in a pub this afternoon, and it would be rude not to support her - oh just by chance it's a Harvey's Beer pub - the only bitter worth drinking - not that I'm biased
