Lee,
 
As you are aware, the standard peck drilling cycle for Fanuc controlled
lathes is inadequate. It is actually the face grooving cycle without any X
coordinate moves. I encountered this problem years ago when I worked
exclusively in thermoplastics. On deep holes the chips tended to melt in the
hole unless I completely retracted the drill after each peck.
 
To address the issue I wrote a Fanuc macro for our 6T control with macro B
installed. The macro can be called using the G65 command or set up in the
machine parameters to be called using a G code. I used the G83 code and
emulated the peck drilling cycle on our Fanuc milling controls, with some
added features as options.
 
Below are the contents of the macro. You may desire or need to modify it for
your particular control or application.
 
%
:9010
(DEEP HOLE DRILLING MACRO)
(CALL WITH G83)
(Z=FINAL DEPTH)
(Q=PECK INCREMENT)
(R=Z RETRACT PLANE)
(F=FEEDRATE)
(I=INITIAL DEPTH OPTION)
(D=DWELL AT DEPTH OPTION)
(W=DWELL AT RETRACT OPTION)
#3003=1
IF[#26 EQ #0] GOTO 3001
IF[#17 EQ #0] GOTO 3002
IF[#18 EQ #0] GOTO 3003
IF[#9 EQ #0] GOTO 3004
IF[#4 EQ #0] GOTO 1
GOTO 100
N1 #4=-#17
N100
WHILE[#26 LT #4] DO 1
G1 Z#4 F#9
G4 X#7
G0 Z#18
G4 X#23
G0 Z[#4+.01]
#4=#17-#17
END 1
G1 Z#26 F#9
G0 Z#18
GOTO 4000
N3001 #3000=1 (Z ARGUMENT NOT ASSIGNED)
N3002 #3000=1 (Q ARGUMENT NOT ASSIGNED)
N3003 #3000=1 (R ARGUMENT NOT ASSIGNED)
N3004 #3000=1 (F ARGUMENT NOT ASSIGNED)
N4000 #3003=0
M99
%

 
============================================= 
 Fred Lauzus, CAM Programming Coordinator 
 High Steel Structures, Incorporated 
  mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.highsteel.com <http://www.highsteel.com/>  
============================================= 
  

-----Original Message-----
From: lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 8:56 AM
To: '[EMAIL PROTECTED]'; lee; 'Smartcam Mailing List (E-mail)'
Subject: RE: [mfg-smartcam] peck drilling


why must I always make things more difficult than they actually are?
 
thanks
Lee

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 28, 2001 7:47 AM
To: 'lee'; 'Smartcam Mailing List (E-mail)'
Subject: RE: [mfg-smartcam] peck drilling


check out SMF questions #151-153

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of lee
Sent: Friday, December 28, 2001 5:03 AM
To: Smartcam Mailing List (E-mail)
Subject: [mfg-smartcam] peck drilling



Group, I just found out that G80 codes were an option (that we didn't get)
on the Fanuc 18-T controls we run on our lathes. I need a work around for
the G83 peck drilling cycle, maybe a macro using machine variables or some
kind of subprogram? any ideas or examples?

Lee Greer 
CNC\CAD programmer 
Midwest Precision Tool & Die 

======================================================================
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