Macro included in this screenset is for 12 tool changer,activates pin for fw or rw motor wich direction tool closer,at current tool,then wait for 4 digital input combinaton then lock sensor signal.Every tool have unique combination ,can be 1001 for say 1st tool,and 1011 for T2 1101 and T3 0111 etc,to do special for you m6 macro it will need time and money.You can edit if you can read visual basic.For tool position you can use Gray code encoder 8 position.