Probing program for renishaw probe
Hi
im a rather new user of Fanuc controls, but I have managed to make 4 small probing programs, to find corners with a renishaw probe.
One for upper left corner, one for upper right corner, one for bottom left and one bottom right. Using the macros from inspection plus and a G10 for zeroing the work offset before running the macros. As I use the probe for zeroing one piece production of parts for stamping tools and moulds.
is there an easy way to combine programs and call a part of the program with an R value?
I would like a custom G code, let's say G900R270, and the machine runs the program for upper left corner, so R0, R90, R180 and R270.
Any help is greatly appreciated.
I will go to my place of work today to get the programs and post them here.
I just ordered the book Cnc Programming Using Fanuc Custom Macro B,Kumares C. Sinha,PB, but it will take at least a week before arriving to Denmark.
the machine is an Matsuura VX-1000 with an Fanuc 31i-model B control, 3 years old, bought with probes and software. But the OMP40-2 touch probe haven't been used before last week, as the dude who has been working with the machine, don't have a basic understanding of programming manually...
Cheers, Daniel
Re: Probing program for renishaw probe
Hi did some IF GOTO in this code, will this work?is Macro in Macro possible?
give thumbs up or down, ill try it tomorrow morning if someone can say that I wont mess up the control:-)
O9... (G666E..R...)
#100 = [#8 -53.] ( E = G54-59)
IF [#18 EQ 0] GOTO 100 (R0 = Bottom Left)
IF [#18 EQ 90] GOTO 200 (R90 = Bottom Right)
IF [#18 EQ 180] GOTO 300 (R180 = top Right)
IF [#18 EQ 270] GOTO 400 (R270 = Top Left)
GOTO 1000
N100 (External - Bottom Left + Z)
G00 G17 G40 G80 G90
G#100
M58
G43
G10 L2 P#100 X#5021 Y#5022 Z-710.
G65 P9810 X10. Y10. F3000.
G65 P9811 Z0. S#100
G65 P9810 Z10. F3000.
G65 P9810 F3000.
G65 P9810 X-7. Y-7. F3000.
G65 P9810 Z-5. F3000.
G65 P9816 X0. Y0. I10. J10. S#100
G65 P9810 Z10. F3000.
M85
G0 M9
M05
GOTO 1000
N200 (External - Bottom Right + Z)
G00 G17 G40 G80 G90
G#100
M58
G43
G10 L2 P#100 X#5021 Y#5022 Z-710.
G65 P9810 X-10. Y10. F3000.
G65 P9811 Z0. S#100
G65 P9810 Z10. F3000.
G65 P9810 F3000.
G65 P9810 X7. Y-7. F3000.
G65 P9810 Z-5. F3000.
G65 P9816 X0. Y0. I10. J10. S#100
G65 P9810 Z10. F3000.
M85
G0 M9
GOTO 1000
M30
N300 (External - Top Right + Z)
G00 G17 G40 G80 G90
G#100
M58
G43
G10 L2 P#100 X#5021 Y#5022 Z-710.
G65 P9810 X-10. Y-10. F3000.
G65 P9811 Z0. S#100
G65 P9810 Z10. F3000.
G65 P9810 F3000.
G65 P9810 X7. Y7. F3000.
G65 P9810 Z-5. F3000.
G65 P9816 X0. Y0. I10. J10. S#100
G65 P9810 Z10. F3000.
M85
G0 M9
M05
GOTO 1000
N400 (External - Top Left + Z)
G00 G17 G40 G80 G90
G#100
M58
G43
G10 L2 P#100 X#5021 Y#5022 Z-710.
G65 P9810 X+10. Y-10. F3000.
G65 P9811 Z0. S#100
G65 P9810 Z10. F3000.
G65 P9810 F3000.
G65 P9810 X-7. Y7. F3000.
G65 P9810 Z-5. F3000.
G65 P9816 X0. Y0. I10. J10. S#100
G65 P9810 Z10. F3000.
M85
G0 M9
M05
GOTO 1000
N1000
M30
Re: Probing program for renishaw probe
Quote:
Originally Posted by
Uhrenholt
I would like a custom G code, let's say G900R270, and the machine runs the program for upper left corner, so R0, R90, R180 and R270.
It is explained on p.145-147 of the book. It would be helpful if you read chapter 7 from beginning. It would not take much time because you already have basic knowledge of macro programming.