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:

Macro Program Examples


Born to machine
 Share

Recommended Posts

Hi All,

Not sure if this is the right place to post but can anyone point me in the direction of some macro based programs for things like pocketing,facing,drilling pcd ect..

Even something that could come in handy that relates to a 4th axis indexing a sub program..

I know there are ways to do this without macro but im just curious about it..

Thanks

 

Link to comment
Share on other sites
13 hours ago, Born to machine said:

Hi All,

Not sure if this is the right place to post but can anyone point me in the direction of some macro based programs for things like pocketing,facing,drilling pcd ect..

Even something that could come in handy that relates to a 4th axis indexing a sub program..

I know there are ways to do this without macro but im just curious about it..

Thanks

 

Don't forget to build in your error rounding into your macro process. When you are doing even number of indexes it is not a problem, but when you get to odd number of indexes and needs to be precise you may need to do a stack error adjustment. I would do some parts with 221 places needed for indexing. This is 1.6289 degrees, but the problem is you only have 3 place decimals on the 4th Axis for most machines. Not a big deal until you do the math. We use 1.628 and multiply that by 221 we get 359.788. If we use 1.629 we end up with 360.009. That would be the value I would use for my indexing, but I now need to reduce the total amount index by .009 degrees. 221 divided by 9 is 24.5. I would make my main program call a sub program with the index of 1.629 24 times then I would have my other sub program with the index of 1.628 called one time and then back and forth till I ended up at 358.372 as my last index position letting the 9th shift difference come into play then. Problem is how do you know unless you go run it at the machine might be what your thinking. Nope I would use Excel to do all the math before I every got out to the machine. Excel type programs have been around since the DOS days and this is what I would use to help me map these things when I did 4th Axis work with Pencilcam. I use to surface machine long parts on the 4th axis and use 10 or 20 lines of code. Once I figured out the down motion and then the upward motions for radius and other features and they went the length of a part I would just make that sub program and figure out the spacing needed and just loop it. I have done roll dies, timing gears, twist cams and many other things back in the early 90's all with Pencil and Paper and help of the computer to do some of the math.

  • Like 1
Link to comment
Share on other sites
  • 1 month 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...