Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Deep Hole Drilling


Recommended Posts

Forgive me if this has been covered before, I searched deep hole drilling and didnt find anything.

I'm trying to figure out how to program (through mastercam 2018) to have a extra long drill enter a piloted hole at lets say 300 RPM, pause, ramp to desired RPM then commence drilling.  The goal being to not allow the drill to run out (too much) while entering the hole.  I have only explored this a little bit and have not really been able to find a way to do it besides hand programming. 

 

If this has been covered before could you kindly provide a link to the thread.

 

Thanks,
Scooter.

Link to comment
Share on other sites

I use point tool path but I am also about 97% finished adding a gun drill cycle to my posts.  It's seldom enough that I haven't finished it but often enough that I work on it about once a month for a few minutes.  Just enough to get caught back up but then forget where I was. 🤣

  • Haha 1
Link to comment
Share on other sites

We got our reseller to make an special cycle for us, and with some modifications we finally got it to work for our use.

the code is from the output, we use Fanuc control on this machine.

1.     First pilot drill Z-10 in this example.

2.     Start of gun drill or long drill Z-5 with spindle rpm S300 and Counterclockwise M4 to make sure the insert is not chipped

3.     Waiting code G04 to build up the  coolant pressure

4.     drilling of hole down to desired depth

5.     retract 2mm from bottom of hole and slow the spindle speed to s300 rpm

6.     retract to top of hole for either new position or new operation.

 

Contact your reseller is the best advice, In many cases they may already have a solution that you can use. Or use point toolpath or manual entry 

and insert your code hard coded from a text file you choose with your example.

with manual entry or point toolpath you have to edit the outputted nc file i guess, this example from our custom cycle is now post and forget, it works now after some

editing for us.

 

Best of luck! 

G

 

Example of custom cycle 10 - Gundrill cycle

%
O0001   ( GUNDRILL )
( GUNDRILL )
(MCX FILE  - D:\GUNDRILL EXAMPLE.MCAM)
(MATERIAL  - ALUMINUM MM - 2024)
(PROGRAM   - GUNDRILL.NC)
(DATE      - 06/09/2018)
(TIME      - 21:05)

(T23  - HMB 6.0 10D          - H23  - D23  - D6.000mm)
(T34  - GDR 6X190 20D        - H34  - D34  - D6.000mm)

(MAX X - X0.)
(MIN X - X0.)
(MAX Y - Y0.)
(MIN Y - Y0.)
(MAX Z - Z50.)
(MIN Z - Z-90.)

N100 G00 G17 G21 G40 G80 G90
N101 G91 G28 Z0.

(HMB 6.0 10D  -|T23 -|H23 -|D6.)
N102 T23
N103 M06
N104 ( HOLDER LENGTH   = 70. )
N105 ( STICKOUT        = 90. )
N106 ( TOOL CODE       =  DH510060 )
N107 ( MAX -  Z25. )
N108 ( MIN -  Z-10. )
N109 G00 G17 G90 G54 X0. Y0. S4774 M03
N110 G43 H23 Z25. M07 T34
N111 G94
N112 G98 G81 Z-10. R10. F477.4
N113 G80 M09
N114 M05
N115 G91 G28 Z0.

N116 M01
(GDR 6X190 20D  -|T34 -|H34 -|D6.)
N117 T34
N118 M06
N119 ( HOLDER LENGTH   = 63. )
N120 ( STICKOUT        = 190. )
N121 ( TOOL CODE       =  2229466 )
N122 ( MAX -  Z50. )
N123 ( MIN -  Z-90. )
N124 G00 G17 G90 G54 X0. Y0.
N125 G43 H34 Z50. T23
N126 G94
N127 G00 X0. Y0.
N128 G00 Z10.
N129 S300 M04
N130 M9
N131 G01 Z-5. F300
N132 M5
N133 S4774 M03
N134 M07
N135 G04 P6000
N136 G01 Z-90. F47.7
N137 G01 Z-88. F23.87
N138 S300 M03
N139 M9
N140 G04 P6000
N141 G01 Z-5. F300.
N142 G01 Z10. F300.
N143 G00 Z50.
N144 G80
N145 M05
N146 G91 G28 Z0.

N147 G28 Y0.
N148 G90
N149 M30
%
 

Link to comment
Share on other sites

Here's a gundrill cycle I added to my post..my be some food for thought

#----------------------------------------------------------------------------
#Gundrill variables           08/25/2015
#----------------------------------------------------------------------------
fmt  "S"   4  drill_speed
fmt  "Z"   2  start_hgt
fmt  "F"   15 drill_feed
fmt  "Z"   2  clr_hght
fmt  "Z"   2  rpd_ht

 

 

pgundrill   # Custom Gun Drill cycle  08/25/2015
      #~drillcyc$, e$
      pdrlcommonb
      #########################
      #Gundrill variable definition settings
      #########################
      drill_speed = dwell$
      start_hgt = peck1$ + 0.1
      drill_feed = peck2$
      clr_hght = initht$
      rpd_ht = refht$
      speed = 50
      spdir2 = 0
      #########################
      #Gundrill Cycle
      #########################
      pbld, n$, *rpd_ht, e$
      pbld, *sg01, *start_hgt, *feed, e$
      pbld, n$, sm05, e$
      pbld, "M51" "(HIGH PRESSURE COOLANT ON)", e$
      pbld, *drill_speed, *sm03, e$
      pbld, n$, "G04", "P2000", e$
      pcan1, pbld, n$, *sg01, pxout, pyout, pfzout, *drill_feed, strcantext, e$
      pbld, n$, *sm05, e$
      pbld, n$, *sg00, *start_hgt, e$
      pbld, n$, *speed, *spindle, e$
      pbld, n$, *sm09, "(HIGH PRESSURE COOLANT OFF)", e$
      pbld, n$, sg00, *clr_hght, e$
      pbld, n$, "(END GUNDRILL CYCLE)", e$
      pbld, n$, "()", e$
      pcom_movea

 

pgundrill_2   # Custom Gun Drill cycle  Modified 10/02/15
      #~drillcyc$, e$
      pdrlcommonb
      #########################
      #Gundrill variable definition settings
      #########################
      drill_speed = dwell$
      start_hgt = peck1$ + 0.1
      drill_feed = peck2$
      clr_hght = initht$
      rpd_ht = refht$
      speed = 50
      spdir2 = 0
      #########################
      #Gundrill Cycle
      #########################
      pcan1, pbld, n$, *sg00, sgabsinc, pwcs, pxout, pyout, e$
      pbld, n$, *rpd_ht, e$
      pbld, *sg01, *start_hgt, *feed, e$
      pbld, n$, sm05, e$
      pbld, "M51" "(HIGH PRESSURE COOLANT ON)", e$
      pbld, *drill_speed, *sm03, e$
      pbld, n$, "G04", "P2000", e$
      pbld, n$, pfzout, *drill_feed, strcantext, e$
      pbld, n$, *sm05, e$
      pbld, n$, *sg00, *start_hgt, e$
      pbld, n$, *speed, *spindle, e$
      pbld, n$, *sm09, "(HIGH PRESSURE COOLANT OFF)", e$
      pbld, n$, sg00, *clr_hght, e$
      pbld, n$, "(END GUNDRILL CYCLE)", e$
      pbld, n$, "()", e$
      pcom_movea

 

pdrlcst$         #Custom drill cycles 9 - 19 (user option)
      #Use this postblock to customize drilling cycles 9 - 19
      if drillcyc$ = 8, pgundrill
      if drillcyc$ > 8, pdrlcst8

Link to comment
Share on other sites
2 hours ago, jlw™ said:

John,

I think you posted that a few years ago and it was perfect timing for me when I was running a gun drill.  I printed it out and it is the basis for the work I have almost finished in my posts.

Thanks for sharing (again)!

Dude,

Let's make this work in your Post this weekend. I'll show you how the whole "Drill Cycle Processing" works with the NCI.

Do you have some time Sunday? My Saturday is looking pretty full already...

  • Like 1
Link to comment
Share on other sites
2 hours ago, Colin Gilchrist said:

Dude,

Let's make this work in your Post this weekend. I'll show you how the whole "Drill Cycle Processing" works with the NCI.

Do you have some time Sunday? My Saturday is looking pretty full already...

Sunday would be best for me.  Looking forward to it!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...