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:

Rigid Tap


?Mark
 Share

Recommended Posts

Hello everyone.

I'm pretty new to post customization, but I got my mpfan.pst to output the code just the way I like it, but can't figure out rigid tapping.

Any help will be greatly appreciated.

 

It's for MoriSeiki SV-50 and I need M29 S...

Just before G84 G98 X Y Z R Q F code.

Also need to get rid of M3 S... code that is output right after tool change so instead of:

T..;

M6 ;

M3 S...;

.

.

G84...

 

I need:

T..;

M6 ;

.

.

M29 S...;

G84...

I tried to follow Tom's example but get a massage:

" Variable not defined: peck1rt "

 

Here is my mpfan.txt

 

[misc2]

1. "Rigid Tap"

2. "Feed rate"

3. ""

4. "Clearance..."

5. "Retract..."

6. "Depth..."

7. "Peck"

8. ""

9. ""

10. ""

11. ""

 

[drill cycle descriptions]

1. "Simple drill - no peck"

2. "Peck drill - full retract"

3. "Chip break - incremental retract"

4. "Tapping - feed in, reverse spindle - feed out"

5. "Boring #1 - feed out"

6. "Boring #2 - stop spindle - rapid out"

7. "Misc #1 Drill"

8. "Rigid Tap"

9. "Custom drill cycle #9"

10. "Custom drill cycle #10"

11. "Custom drill cycle #11"

12. "Custom drill cycle #12"

13. "Custom drill cycle #13"

14. "Custom drill cycle #14"

15. "Custom drill cycle #15"

16. "Custom drill cycle #16"

17. "Custom drill cycle #17"

18. "Custom drill cycle #18"

19. "Custom drill cycle #19"

20. "Custom drill cycle #20"

31. "5 axis"

 

Here is what I tried in mpfan.pst

 

pmisc2 #Canned Misc #2 Cycle (Rigid Tap)

peck1rt = peck1

n, "M29" , e

pdrillref

n, *sgdrill, *sgdrlref, pfxout, pfyout, pfzout, pcout,

prdrlout, *peck1, *feed, strcantext, e

pcom_movea

 

Spent all day trying to work it out with no luck...

Please help... smile.gif

 

Also is there any kind of self help guide that would help me with similar problems in the future ?

 

Best regards, Mark

Link to comment
Share on other sites

I'm not a post guru but what I've done is hard code an M29 *speed code into the post. All we do is rigid tap, so that won't work if you ever use floating holders. Below is the ptap cycle. Note the "pbld, n, "M29", *speed, e". No need to specify rigid tap in the ops this way.

 

ptap #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if use_pitch, pbld, n, "G95", e

if use_pitch = 0,

[

pbld, n, "M29", *speed, e

pcan1, pbld, n, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout,

prdrlout, *feed, strcantext, e

Link to comment
Share on other sites

You have to declare userdefined variables in the declarations section and define the format in the format sections of the post.

 

code:

 use_pitch : 0     #your variable 

You will need to look ahead and test for rigid tapping in the psof, ptlchg and ptlchg sections with an if statement something like ...

code:

   

if drillcyc <> 7,

[

 

normal spindle startup codes .....

 

]

else,

[

startup code when rigid tapping ...

[

search for forum threads in the past month a this was discussed in detail.

 

If you have some programming language experience looking at the sample posts should get you where you want to go. If not you should contact your dealer for assistance.

 

HTH

 

Dave

 

[ 05-20-2003, 12:58 PM: Message edited by: CAMmando ]

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Here's my rigid tap cycle.

 

HTH

 

ptap #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if use_pitch, pbld, n, "G95", e

if use_pitch = 0,

[

n, *sm05, e

n, "M29", *speed, e

pcan1, pbld, n, *sgdrlref, *sgdrill, pfxout, pfyout, pfzout, pcout, *peck1,

prdrlout, dwell, *feed, *peck1, strcantext, e

]

else,

[

if met_tool, pitch = n_tap_thds # Tap pitch (mm per thread)

else, pitch = 1/n_tap_thds # Tap pitch (inches per thread)

n, *sm05, e # Force Turn Off Spindle

n, "M29", *speed, e # Set Rigid Tapping Active

pcan1, pbld, n, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout,

prdrlout, *pitch, !feed, *peck1, strcantext, e

]

pcom_movea

tapflg = 1

 

I should've mentioned, this is for a peck tapping cycle. If you can't peck, then remove the "*peck1" in both sections.

 

HTH

 

[ 05-20-2003, 01:57 PM: Message edited by: James Meyette ]

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Insert this into the section where your drill format statements are.

 

fmt N 4 n_tap_thds #Number of threads per inch (tpi) / Pitch (mm)

fmt F 2 pitch #Tap pitch (inches per thread)

 

HTH

Link to comment
Share on other sites
Guest CNC Apps Guy 1

I should add, you should start with the MPMaster post available here at EMastercam. Dave's post is the best starter post out there IMHO.

 

HTH

Link to comment
Share on other sites

Finally worked!!!

Even before I put those lines:

 

fmt N 4 n_tap_thds #Number of threads per inch (tpi) / Pitch (mm)

fmt F 2 pitch #Tap pitch (inches per thread)

 

Looks great, will now try to get rid of " M3 S...; "

line right after tool change for tap.

Any quick suggestions (not sure if I have any patience left today... smile.gif

Thanks everybody,

You guys are really gooooood,

Best regards, Mark

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