I have looked at this a little closer. I think you should try the EMCOturn 120 turret. If you look at the page it shows the exact logic you will need to get the correct functioning of the turret. Now the main problem, I do not think that you can get the correct logic function from the Grayhill switch. It appears to be just a simple switch, no BCD, Gray code etc. Do you have the diode schematic?
From MASSO: EMCOturn 120
Input Signal Sequence Chart
Wire the sensor inputs and assign to MASSO as below:
Tool Changer - Input 1 for Turret signal-1
Tool Changer - Input 2 for Turret signal-2
Tool Changer - Input 3 for Turret signal-3
Tool Changer - Input 4 for Turret signal-4
Input Signal Sequence Chart
The below chart shows the signal sequence as per EMCO documentation. Check that your tool turret provides the signals as shown below to work properly with MASSO.
I can check and see if there are any 8 bit to 4 bit converter logic ICs or Priority Encoder ICs available. If not, you could use a pic micro and simply write the software for a conversion. Something like this:
// Endless loop
IF TOOL 0 TRUE, ie Grayhill (0) HIGH, THEN OUTPUT A = HIGH, OUTPUT B = HIGH, OUTPUT C= HIGH, OUTPUT D =LOW
IF TOOL 1 TRUE, ie Grayhill (1) HIGH, THEN OUTPUT A = HIGH, OUTPUT B = HIGH, OUTPUT C= LOW, OUTPUT D =LOW
IF TOOL 2 TRUE
.
.
.
IF TOOL 7 TRUE, ie Grayhill (7) HIGH, THEN OUTPUT A = LOW, OUTPUT B = HIGH, OUTPUT C= HIGH, OUTPUT D =LOW
// Loop forever
You could name these anything. Using a PIC would allow you to make changes in the future. You would need 8 inputs, 4 outputs.
Hope this helps,
Iron-Man