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:

Drilling a grid of holes


powerfulp
 Share

Recommended Posts

Hi,

 

We have a simple fixture plate that needs a grid of holes put in it. They are M16 holes, 2.000" apart. 17 rows, 35 across.

 

What would be the best way to go about writing the program for this? I've never written a macro program, but this seems like that might be the best way to go. If so, how would you go about writing this? And how is the best way to draw these points on MasterCam?

 

Thanks for any help!

Link to comment
Share on other sites

There are probably better and 'more correct' ways to do this, and you can do it all in code pretty easy, but if you're in Mastercam anyway, you can just create a circle for your first hole, then Xform rectangular array to set up your pattern. Then just use mask on arc (or just 'last' after your first operation if you're doing more than one) when selecting geometry to get all your circles together for each of your operations real quickly.

Link to comment
Share on other sites

Yeah, I was just checking if there was a better and/or more creative way to go about it than creating a point-by-point G-code program and also if there was a real fast way to do it (draw the points) in MasterCam. We have MasterCam, but I rarely get to use it.

 

Thought maybe a macro where you can just define how many holes in each direction, etc., etc. And maybe :) I was looking for an excuse to use a macro program because it's always interested me, but I've haven't been able to do any for one reason or the other.

 

Thanks

Link to comment
Share on other sites

I program everything in Mastercam and drawing up a grid of holes would take only a minute or two, but if I had to do it manually, I would call the drill cycle and drill the first hole, then call a SUB-PROGRAM (M98) that has an incremental step over... then loop it the number of times of holes in that row... then repeat it for the rest of the rows.

 

Like I said, I'd do everything in Mastercam though.

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