Hello,
Machine - Doosan DNM5700
Control - Fanuc Oi
Cam - Edgecam 2018R2
I have been using the OMP60 Renishaw probe for a while now and have come familiar with using it on our machine. Right now I am only using it to update my work offsets but I know it is capable of much more. One thing that I would like to figure out is how to use the probe to update my wear offsets. For example, if I have a part with a critical bore I would like to run the part, probe the bore, then have the machine look at the info on the size of the bore, and if the bore is undersized to have it run another skim pass, or finish if it is within tolerance. I would eventually like to be able to do this for all critical features.
I have been working on some code and wondering if I am going down the right path.
#138 - variable output that holds bore measurement
#2000 - I believe is the system variable for X axis tool wear. #2001 - tool 1, #2002 - tool 2, #2003 - tool 3, ect.
In this example I will machine a 1in hole +-.002, probe the hole and decide if I need to update the offset and re machine or just end program.
N10
T0909 (Hole Program)
N20 T40 M6 (PROBE)
G65 P8501 (PROBE MODE ON)
G43 H40
M165 P9810 X1. Y-1. F20.
M165 P9810 Z-0.25 F20.
M165 P9814 D1. H0.002
M165 P9835 T9. M50. V.1 C4
M165 P9810 Z0.25 F20.
M9
G91 G28
G28 Y0.
G90
M1
#100=.998 (Min. expected finish diameter (1in+-.002)
IF[#138LE#100]THEN GOTO10 (if less than .998 go back and cut again with the updated offset)
IF[#138GE#100]THEN GOTO30 (if greater than end program)
N30
M30
Questions
P9835 - Does this macro actually update the tool offset (variable #2009)?
Or do I have to calculate the wear value from what I measured in the probing cycle and then plug that into #2009 so that it updates?
Do I need to add a counter?
Does anyone have a sample macro that does something like this that I could look at?
I am new to Macros any help is greatly appreciated.