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:

Custom Drill Cycle to Change Speed


Recommended Posts

Hi All!

 

Does anyone have some code I can borrow to develop a custom drill cycle for our Fanuc control?  I am looking at using a drill 30xD (OSG Helios) and it says to drill a pilot hole about 2xD.  On a low RPM get the Helios drill into the hole.  Turn up the rpm to the recommended SFM and drill the hole.  Then feed back up - slow the rpm and exit the hole.

 

Can anyone help me with this?  I was thinking maybe a Custom Macro, but MCX code would be best.

 

Thanks!

Link to comment
Share on other sites
  • 2 weeks later...

pgundrill                #Gun Drill - S.Dean 2/14/12
 slowdrill_RPM = peck1$   # Single Gundrill - Slow PRM for Gundrill Cycle
 slowdrill_feed = peck2$   # Single Gundrill - Slow feed for Gundgrill Cycle
 first_depth  = peckclr$   # Single Gundrill - Z depth for gundrill at slow speed/feed
 retract_feed = shftdrl$  # Single Gundrill - retract federate

 

lmisc2$          #Gun Drill - S.Dean 2/14/12
      pgundrill, pdrlcommonb
      pbld, x$, y$, z$ , e$
      pbld, "G97", *slowdrill_RPM, "M3", e$
      pbld, *sg01, *first_depth, *slowdrill_feed, e$
      pbld, n$, "G4", *dwell$, e$
      pbld, "G97", *speed, "M3", e$
      pbld, n$, "G4", *dwell$, e$
      pbld, *sg01, *depth_z, *feed, e$
      pbld, n$, "G4", *dwell$, e$
      pbld, "G97" , *slowdrill_RPM, "M3", e$
      pbld, *sg01, refht_z, *retract_feed, e$
      pbld, *sg00, initht_z

 

[misc2]
1. "Gun Drill"
2. ""
7. "Slow RPM"
8. "Slow Feed"
9. "1st. Z Depth"
10. ""
11. "Retract Feed"

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