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:

4th axis drill and tap macro


Born to machine
 Share

Recommended Posts

6 minutes ago, Born to machine said:

Hi All,

Not sure if this is possible but i do alot of drilling and tapping on a 4th axis..

Instead of typing in my A values(rotation ) manually is there a way to just tell program to repeat drill at a certain A value and number of holes?

Kinda like a canned cycle but for rotation..

Thanks

 

Yes, by using an option called "Axis Substitution", you can do this.

If your points are "around the diameter", then you use the "unroll" option.

Enter the Rotary Diameter, and make sure you use the Top of the hole.

In the "Depths" page, use "Incremental" for all the depth options.

Axis Substitution will unwind the hole positions, and output the rotary axis value.

  • Thanks 1
  • Like 2
Link to comment
Share on other sites

It almost seems like he wants to figure out how to do this outside of Mastercam? You could make  a very simple while/DO statement and just make it repeat the same code for the inital , how ever many times you want... Obviously this would only work if it is an equally spaced radial pattern. 

If not it would just require a little more code, still doable

Link to comment
Share on other sites

You could do something like this, using Macro B:

 

 

#100=24. (Number of Holes)

#101=0. (Abs. Starting position, relative to G54)

#102=360./#100 (Get incremental A rotation Value)

#103=1. (hole counter)

#104=2. (Z DEPTH OF HOLE BOTTOM)

#105=2.6 (Z DEPTH OF HOLE START, .100 ABOVE STOCK)

#106=.05 (PECK AMOUNT)

#107=3.8  (FEED RATE)

#108=.1 (SAFE Z ABOVE R PLANE)

#109=3. (Z JUMP HEIGHT)

T01 M06

G00 G90 G54 X0. Y0.

G43 H01 Z#109

G00 G90 A#101 (MOVE TO START)

WHILE [#103 LE #100] DO1

G00 G90 Z[#105+#108] (R PLUS SAFE)

N1 G83 Z#104 R#105 Q#106 F#107

G80

G00 G90 Z#109

G00 G91 A#102 (MOVE A INCREMENT VALUE)

#103=#103+1 (INCREMENT COUNTER)

END1

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

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