Mike,
     It's a very simple thing to do. In the beginning of your program,
define a variable to represent the plate thickness: For instance; #100=.750
For your "Z" depths, just program the .05" plus the drill tip.
Now, in your program, have your "Z" represented by: Z-#100+(the numeric
value coded that represents .05+drill tip)
It should be possible to modify your code generator to output this form of
modified code. Or, in your text editor, do a search & replace: "Z-"   to
"Z-#100+"
It's been a while since I programmed an OM control. I seem to remember that
the variables are defined a little differently, so you will have to look in
your Fanuc Operators manual, but the logic is the same.

Chris




                                                                                       
                            
                    Michael                                                            
                            
                    Senack               To:     "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>       
                    <MSenack@blou        cc:                                           
                            
                    nt.ca>               Subject:     [mfg-smartcam] Change drill 
depth using a variable???        
                                                                                       
                            
                    11/22/00                                                           
                            
                    10:42 AM                                                           
                            
                                                                                       
                            
                                                                                       
                            





Is there a way in which to change the Z-depth value in the G83 peck line to
accommodate various material thickness?

I'm using the program below to c/drill & drill a number of plates. The
plates range in thickness from 1/8 to 3/4.

I can use the same program but I have to change the Z-depth for each plate.

This program is being used on a Hurco milling center with an Fanuc OM
control.

%
( DRILL - 11/22/100 - 09:09 AM )

N1M98P1
T1( NO.12 C/DRILL 3/16 X 1/16 )
G54G43X7.772Y-4.8892Z2.0S1788H01M03
G99G82Z-0.08F0.9R0.1P200M08
Y-4.5592
Y-3.9892
Y-3.6592
X8.161
Y-3.9892
Y-4.5592
Y-4.8892
G00G80Z2.0
N2M98P1

T2( NO.13 C/DRILL 1/4 X 3/32 )
G54G43X8.8405Y-4.2234Z2.0S1788H02M03
G99G82Z-0.12F1.3R0.1P200M08
X10.7405Y-3.9738
G00G80Z2.0
N3M98P1

T3( 9/32 DRILL .281 )
G54G43X10.7405Y-3.9738Z2.0S747H03M03
G99G83Z-0.8845F1.6R0.1Q0.25M08  <----------- Z=(PLATE THICKNESS+.05) +
DRILL
TIP
X8.8405Y-4.2234
G00G80Z2.0
N4M98P1

T4( NO.50 DRILL .070 )
G54G43X8.161Y-4.8892Z2.0S1788H04M03
G99G83Z-0.821F0.9R0.1Q0.0625M08  <----------- Z=(PLATE THICKNESS+.05) +
DRILL TIP
Y-4.5592
Y-3.9892
Y-3.6592
X7.772
Y-3.9892
Y-4.5592
Y-4.8892
M98P1
G28G91Y0.0( HOME MACHINE ON Y-AXIS TO CHANGE PART )
G90
M30
%



Regards,

Michael Senack, X354
Your local friendly neighborhood CNC Programmer


======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================



======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to