Asif
If you look at the jpg attached you will see there are mis-connections on the turret terminal block, I hope this diagram makes sense to you
Please take notice of sensor connections below
brown wires from both sensors & encoder go to terminal 8
blue wires from both sensors & encoder go to terminal 7
If you don't understand anything don't guess get back to me
regards
Les Robbins
EditComm - CNC communication software - Les Robbins CNC Services