Hello, I have been working in some macro routines to automate touch up of some components that have a bad concentricity, and due this issue is easier to take cero on every single part.
I have been using this routine that has been working, since a renishaw probe is too expensive, I develop a macro routine that combined with one ELECTRONIC EDGE FINDER I use skip block switch in the machine every time it lights up, and what I got is an automated probe routine, but I would like to go one more step, and instead of switching manually the skip block, I would like to enter to the fanuc 18i control one input every time a touch probe touches the part, I'm sure it can be done somehow, but I would like if someone of you can adress me in the right track.
%
O0500(TOUCH PROBE ROUTINE)
#1=-9.013(G54 X)
#2=.012(G54 Y)
#3=-.25(G54 Z)
#4=.25(RADIO SAFETY)
#5=.003
#6=10
#7=.0001
#8=5
#9=100
#11=7141
#12=7142
G0G17G40G49G80G90
G54
G00
T1M6
G43H1Z1.5
M3S0
G00G90X#1Y#2
G00Z.5
G01F10.Z#3
G91G01F10X#4
#32=0
WHILE[#32 NE 10]DO 1
G91G01X#5F#6
G04P#9
/#32=10
END 1
X-.020
M00
#32=0
WHILE[#32 NE 10]DO 1
G91G01X#7F#8
G04P#9
/#32=10
END 1
#521=#5021
G90G01F20X#1
M00
G00G90X#1
G91G01F10X-#4
#32=0
WHILE[#32 NE 10]DO 1
G91G01X-#5F#6
G04P#9
/#32=10
END 1
X.020
M00
#32=0
WHILE[#32 NE 10]DO 1
G91G01X-#7F#8
G04P#9
/#32=10
END 1
#[#11]=[#521+#5021]/2
G90G01F20X#1
M0
G91G01F10Y#4
#32=0
WHILE[#32 NE 10]DO 1
G91G01Y#5F#6
G04P#9
/#32=10
END 1
Y-.020
M00
#32=0
WHILE[#32 NE 10]DO 1
G91G01Y#7F#8
G04P#9
/#32=10
END 1
#522=#5022
G90G01F20Y#2
M0
G00G90Y#2
#32=0
WHILE[#32 NE 10]DO 1
G91G01Y-#5F#6
G04P#9
/#32=10
END 1
Y.020
M00
#32=0
WHILE[#32 NE 10]DO 1
G91G01Y-#7F#8
G04P#9
/#32=10
END 1
#[#12]=[#522+#5022]/2
G90G01F20Y#2
G53Z0.
M5
M30
%