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:

subtraction


Recommended Posts

Can someone show me how to make a pfzout line in a post subtract a misc value?

Here is the line I want to modify:

 

pbld, pn, *scclgcode, pfxout, pfzout, *stepcc, *grvspcc, *clearcc, *mr4$, feed, *mr5$, pe

 

Basically I am programming a grooving cycle with back offsets in an Okuma VTM, but the shop wants to see the back groove number as what is on the print.

Soooo,

This is what I need.

If it is a .500 groove at z-1., then they want to see,

 

G00 Z-1.

G73 X5.00 Z-.5 K.250 D.3 L.6 E4 F.003 T94

 

In order to output the code,

I want to have the pfzout show " pfzout minus misc. real value 9(I will enter the width of the insert there)

Any takers?

Thanks,

Todd

Link to comment
Share on other sites

Create a variable to hold the Z value that you want. (Maybe GrooveZdepth) Then prior to the output line in your post, put this:

 

GrooveZdepth = zabs - mr9$

 

Then replace pfzout in your postline with GrooveZdepth.

 

It is generally unwise to manipulate the standard variables for custom output. It is much better to create a holding variable and leave the system variables alone.

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