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 post help


MIL-TFP-41
 Share

Recommended Posts

hey all...I would like to create a custom drill cycle that would be a incremental cycle...or another way of putting it would be I want a custom cycle that will do the same thing as a peck drill cycle only without the canned cycle (the code would look like it does when you turn usecanpeck to off)

 

this would be way handy...I am drilling some deep holes...using a stub drill for the first bit then a longer drill for the rest. With a "incremental" cycle you put can all the parameters in mastercam & it posts the code out long hand...1st peck being 2.00 & the rest being .1 (or whatever)

 

hope someone can follow all that.

 

Thanks in advance!

Link to comment
Share on other sites

Here is something you can try. I've had several people ask the same thing, mostly they would use peck cycles but occasionally wanted long code so they could stop it to; check tool, apply oil, blow chips out. I have also expanded upon this to include a 3rd or 4th peck amount as the hole gets deeper in relation to the post variable tldia (tool diameter).

 

 

HTH

 

 

code:

         pbld, n, `sg00, pxout, pyout, e

inc_depth = tosz

inc_refht = refht

feed = fr_pos

prv_feed = -9999

while inc_depth > depth,

[

if inc_depth = tosz,

[

inc_depth = inc_depth - abs(peck1)

inc_clearance = inc_depth + abs(peck1) + abs(peckclr)

if inc_depth < depth, inc_depth = depth

]

else,

[

inc_depth = inc_depth - abs(peck2)

inc_clearance = inc_depth + abs(peck2) + abs(peckclr)

if inc_depth < depth, inc_depth = depth

]

 

pbld, n, *inc_clearance, e

pbld, n, "G01", *inc_depth, feed, e

pbld, n, "G00", *inc_refht, e

]

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