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:

posting tap cycle


jeffl
 Share

Recommended Posts

I am using Mastercam v8 with an old OKK cnc mill. The post processor that I am using does not produce the correct line of code for a canned tap cycle. The post has the following:

 

ptap # Canned Tap Cycle

pdrillref

n, drillref, sgdrill, *x, *y, *depth, *refht, pdwell, *frplunge, e

 

... and produces:

 

G99G84X-1.125Y-.625Z-.5R.1F1.

 

I need the line to have the # of threads at the end of the line of code. for example:

 

G99G84X-1.125Y-.625Z-.5R.1F1.E13

 

for 1/2-13 tap.

 

How can I do this?... it has to be be something simple that I am not seeing.

 

Thanks

Link to comment
Share on other sites

The information you need can be accessed from the "n_tap_thds" post variable.

You will want to format "n_tap_thds" for the desired output formatting.

 

Something like ->

 

# Create a format specification (if needed)

fs2 17 2 0 2 0n # Integer

 

# Format the "n_tap_thds" variable

fmt E 17 n_tap_thds #Tapping "feed"

 

 

Then replace the "*frplunge" in the PTAP postblock to be "*n_tap_thds"

 

 

*** Was this ->

 

ptap # Canned Tap Cycle

pdrillref

n, drillref, sgdrill, *x, *y, *depth, *refht, pdwell, *frplunge, e

 

 

*** Now this ->

 

ptap # Canned Tap Cycle

pdrillref

n, drillref, sgdrill, *x, *y, *depth, *refht, pdwell, *n_tap_thds, e

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