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 Question


MIL-TFP-41
 Share

Recommended Posts

A little OT, I know...till I try to get it working in the post smile.gif

 

We are running production parts on a 5 ax mill that have a internal groove with a diameter of .225 +-.001 and a height of .067 +.001 -.000. Now on a low production part this is not a big deal....it is easy to adjust the program to get the height correct. On a production part it is a PITA to make adjustments to a proven program just to adjust the height for when you change tools, tool wear, ect. (Feature is being cut with a keycutter)

 

Here is an abbreviated example of what the code looks like now...

 

code:

G1 Z-.146 F40.

G41 D1 X.0094 Y.0094 F12.

G3 X0. Y.0187 I-.0094 J0.

X0. Y.0187 I0. J-.0187

X-.0094 Y.0094 I0. J-.0094

G1 G40 X0. Y0.

Z-.15 F40.

G41 D1 X.0094 Y.0094 F12.

G3 X0. Y.0187 I-.0094 J0.

X0. Y.0187 I0. J-.0187

X-.0094 Y.0094 I0. J-.0094

G1 G40 X0. Y0.

So basically the cutter feeds down to the first height, cuts the groove, feeds down .004 and cuts the second height.

 

What I want to do is be able to adjust the cut on the first height...lets say I need to make the slot .001 wider.

 

So in my head I pick macro variable #580 and make it .001 and modify the program as follows...

 

code:

G1 Z-.146 + #580 F40.

G41 D1 X.0094 Y.0094 F12.

G3 X0. Y.0187 I-.0094 J0.

X0. Y.0187 I0. J-.0187

X-.0094 Y.0094 I0. J-.0094

G1 G40 X0. Y0.

Z-.15 F40.

G41 D1 X.0094 Y.0094 F12.

G3 X0. Y.0187 I-.0094 J0.

X0. Y.0187 I0. J-.0187

X-.0094 Y.0094 I0. J-.0094

G1 G40 X0. Y0.

The only change I made is to the first line....my question is...would this work???

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