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


gcode
 Share

Recommended Posts

I would like to deveolop a custom drill cycle

to spot holes at one feedrate, then finish

at a second feedrate.

 

The gcode would look like this

G0 X1.25 Y1.25 (rapid to hole location)

Z.05 (rapid to R plane)

G1Z-.25 F3.0 (spot hole at reduced feedrate)

Z-1.305 F9.0 (drill hole at normal feed rate)

G0Z.05 (rapid back to R plane)

 

Ideally, the spotting depth and feed rate could

be set in the fields available in custom drill

They could also be hard coded as a percentage

of programmed feedrate and drill point depth

 

I currently do this with point toolpath and then

use the Toolpath Editor to change the feedrate

Its very time consuming and prone to errors, so much so, that its not practical for multiple holes.

Can anyone set me on the right path towards building a custom drill cycle?

Link to comment
Share on other sites

Something like this should get you on the way

 

code:

pdrlcommonb

if drillcyc = 10,

[

depth2 = peckclr$

feed2 = retr$

rpd_hght = refht$

pcan1, e$

pbld, n$, sg01, pdrlxy, depth2, feed2, e$

pbld, n$, pzout, feed, e$

pbld, n$, rpd_hght, e$

]

pcom_movea

Define the variables needed, feed2, depth2 & rpd_hght

 

Down in the text section add it like this

code:

[drill cycle 10]

1. "Special"

2. ""

3. ""

4. ""

5. ""

6. ""

7. ""

8. ""

9. "spot depth"

10. "spot feed"

11. ""

The you won't have to use the cutom parameters, you can keep it on the main drilling page

 

It output this

 

code:

N100 G00 G17 G20 G40 G80 G90

N110 T1 M06 ( 1/2 SPOTDRILL)

N120 (MAX - Z2.)

N130 (MIN - Z-1.1)

N140 G00 G54 X-.6398 Y.6529 S534 M03

N150 G43 H1 Z2.

N160 G01 Z-.25 F5.

N170 Z-1.1 F10.

You can add the code to the pdlcst2 section to get it to do multiple holes

Link to comment
Share on other sites

I know this isn't the solution you were looking for, just another way to skin the cat, but could you spot all the holes first at the reduced feedrate in one drill cycle then go back with another drill cycle and drill them through to finished depth at the faster feedrate?

Link to comment
Share on other sites

Also, does your control support overide feed rates and distances, like I and J within your drill cycles? Maybe that way you could just add some misc values to your post? I'm not good with posts, mind you. Then the output migh look like this:

 

G82 G99 X1.25 Y1.25 Z-1.305 R.05 I1.055 J300. F3.

 

I being the overide distance and J being the feedrate overide percentage for that distance.

 

Wish I had a control that supported that... stupid Hurcos! mad.gif

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