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:

Post help (tapping) on TOSNUC888


Thad
 Share

Recommended Posts

Here's what I currently get...

 

code:

N12G43H31Z1.5

N13M08

N14M843

N15G84Z-2.5R-1.25F.0689

N16M845

N17G80

N18G01F300.0Z3.

N19X-0.4932Y0.2009

N20M843

N21G84Z-1.R0.25F.0689

N22X-0.6484Y1.9178

N23X4.1706Y1.1235

N24M845

N25G80

N26G01F300.0X5.3516Y1.9178

N27Z2.5

N28M843

N29G84Z-1.5R-0.25F.0689

N30X5.5068Y0.2009

N31M845

N32G80

N33G01F300.0X5.3516Y-4.0822

N34Z1.5

N35M843

N36G84Z-2.5R-1.25F.0689

N37X5.5068Y-5.7991

N38M845

N39G80

I don't want the M843 and M845 after each set of holes at a particular depth. A M843 at the beginning of the program and M845 at the end is sufficient. Can this be done? The reason I ask if it can be done is because we use feed moves instead of rapids so we don't get the dog leg move. Because of this feed move, the fixed cycles need to be cancelled...therefore rigid tapping need to be cancelled too? I was hoping to clean up the code a bit, but if it's required (or recommended), I'll leave it.

 

Here's ptap$...

 

code:

ptap$       # Canned Tap Cycle                                        81(3)

 

pdrl_setup # Do initial setup from drill/bore cycles

n$, "M843",e$ # TURNS ON RIGID TAPPING SYNC

if (n_tap_thds$ < 1), tap_feed = frplunge$

else, tap_feed = (1 / n_tap_thds$)

n$, *sgdrill, pdrlret, pxy_pos, *depth$, *refht$, *tap_feed, e$

rigid_tap = yes$

and here's the code that cancels it...

 

code:

pcanceldc$  # Cancel canned drill cycle                               80

if (rigid_tap = yes$), n$, "M845", e$ #TURNS OFF RIGID TAPPING SYNC

rigid_tap = no$

 

n$, "G80", e$

!gcode$ # Forces restatement of 'G' mode on next move

Thad

Link to comment
Share on other sites

Ron,

 

Unfortunatley, I'm using an old post (MPTOS888.PST) that has been updated since V7. I don't have time now to update to MPMASTER, but plan to when time allows.

 

This post doesn't even have a pretract section. headscratch.gif And I'm not sure what I've move there is I did. biggrin.gif I'm a post editing noob. redface.gif

 

Thad

Link to comment
Share on other sites

Yes it did, Charlie. I meant to get back to you guys this morning and I got too many things thrown on my plate. Now, I can continue with the post edits.

 

Thanks Ron, James and Charlie for your assistance. I just may be back with more questions. wink.gif

 

Thad

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