So on my fanuc we use a pcd macro and have tweaked it so it stops every 2,4,6 etc holes so you can check the tip and it kicks back up no problem, but its abit long winded in the macro itself where I've had to put IF[#102EQ2]GOTO130 and so on putting multiple lines in of EQ4, EQ6, what I wanted to do but am struggling is put a variable in the macro line in the program where it use's the value I put in and in the macro it calculates when it should stop, so its dividing the number of holes by 2,3 or 4 and letting do the checks, I am working on a fanuc series 15-m machining centre, thanks for any help anyone can chuck at me.