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:

Using macros for varying stock height or other method?


JB7280
 Share

Recommended Posts

Not really Mastercam related, but I have a part that I'm working on, where the stock has been varying anywhere from 1.5" to 1.75" and everywhere in between.   At the moment we are forced to take what we can get, as we can't wait for these parts.  For the first side, I am probing Z, facing the part, and qualifying the outside.  For the second side, I am using a highfeed mill to face of the excess material.  Dynamic pass from the outside, spiraling in towards the inside, stepping down in Z with each pass.  I'd like to probe Z to add extra passes when necessary, and remove air cutting when it's not necessary.  I believe this could be done with a macro, but I'm not quite sure how, and time is of the essence at the moment.  Would any of you be able to steer my in the right direction about the simplest way to get this done without having to manually adjust every time?

Link to comment
Share on other sites

Here's a quickly created Macro that you can look at.

Note: Use this at your own risk. This was quickly made and not proven out.

 

O???? = Facing subprogram

#699 = ? (Z top of stock)

#700 = ? (variable Z top of stock)

#701 = ? (Z bottom pass)

#702 = ? (depth of cut)

(PROGRAM)

#700=#699

G00 X Y G54.1

Z[#700+.1] H1

WHILE[#700GT#701]DO1

IF[#700-#702]LT#701 GOTO1

G00 Z[#699-#702]

M98 P????

G00 Z[#699+.1]

#700=[#700-#702]

END1

N1

G00 Z#701

M98 P????

G00 Z[#699+.1]

 

  • Like 1
Link to comment
Share on other sites
36 minutes ago, Tim Johnson said:

Here's a quickly created Macro that you can look at.

Note: Use this at your own risk. This was quickly made and not proven out.

Awesome, thanks.  I'll try laying that out and applying a probing routine to it and see if i can make it work for what I need when I'm back at the shop.

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