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:

KPolyak

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by KPolyak

  1. I love this macro, it opens more possibilities, however I feel the logic will get people in trouble. There should be testing to ensure no overcut in the hole depths. Here is update with testing statements to ensure depth wanted. I found this in my testing & I hope this will help. Testing is a must for your ensured accuracy. Please do your own as I may have missed something! ------------ if drillcyc$ = 8, #MODIFIED FEEDRATES CYCLE, VER-2 [ omitcycend = 1 zpecktemp = refht$ - peck1$ - drl_sel_ref$ IF zpecktemp < depth$, zpecktemp = depth$ zpeckclr = zpecktemp + peckclr$ entryfeed = drl_prm1$ exitfeed = drl_prm2$ z$ = depth$ zevac = refht$ - drl_sel_ref$ pdrlcommonb n$, "G0 G90", pfxout, pfzout, e$ n$, "G1", *Initht, e$ n$, "G1", *Refht, e$ n$, "G1", *zpecktemp, *feed, e$ n$, "G1", *zevac, *exitfeed, e$ IF zpecktemp <> depth$, [ n$, "G1", *zpeckclr, *entryfeed, e$ zpecktemp = zpecktemp - peck2$ IF zpecktemp < depth$, zpecktemp = depth$ zpeckclr = zpecktemp + peckclr$ while zpecktemp > depth$, [ n$, "G1", *zpecktemp, *feed, e$ n$, "G1", *zevac, *exitfeed, e$ n$, "G1", *zpeckclr, *entryfeed, e$ zpecktemp = zpecktemp - peck2$ if zpecktemp < depth$, zpecktemp = depth$ zpeckclr = zpecktemp + peckclr$ ] n$, "G1", *zpecktemp, *feed, e$ ] n$, "G1", *Refht, *exitfeed, e$ n$, "G0", *Initht, e$ pcom_movea !x$, !y$ ]

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