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:

Tapping Feedrate - Brain Fade?


Mick
 Share

Recommended Posts

Ok, I know I have changed this before, but can't, for the life of me, remember..

 

Currently, when setting parameters for tapping, if I type in, for example 100rpm, Mastercam automatically calculates the feedrate by multiplying the the rpm x the pitch of the tap. This isn't what I want to happen, as I would rather have the feedrate output as the pitch of the tap (rigid tapping).

 

I'm sure it is a setting in the control/machine definition, but with this brain fade, I cant find it. Can anyone shed some light on this for me?

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

Add the use_pitch... line above near the switches section in your post - near the top,

 

then modify your ptap postblock accordingly.

 

code:

ptap$            #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if rigid_tap, pbld, n$, *sm29, *speed, e$ #Rigid Tapping

if use_pitch = 0,

[

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

prdrlout, peck1$, *feed, 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)

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

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

]

pcom_movea

BTW, I personally ALWAYS use IPR when tapping because then I can alter the speed to suit the material and don't have to worry about the feedrate.

 

JM2C

Link to comment
Share on other sites
  • 1 year later...

Still trying to edit the MPFAN to update my posts.

 

I added the use_pitch line in the general output settings. That's where it was in MPMASTER. I also copied and pasted James' ptap section into my post, but I don't get the pitch to output.

 

Any suggestions?

 

Thad

Link to comment
Share on other sites

Waaiiit a minute. I knew it worked to easy. I can get it to post a G95 FPR before the cycle starts, but how do I get it to post a G94 FPM at the end, before the G80? I would also like to remove the M3 in my tapping cycle. Now I need help

Link to comment
Share on other sites

In out post

BTW "russ" is our mcam guy

quote:

Tapping

ptap$ #Canned Tap Cycle

pdrlcommonb

if initht$ <> refht$,

[

drillref = zero

russ_initht = initht$

pbld,n$,"G71", *russ_initht, e$

]

result = newfs(17, feed) # Set for tapping Feedrate format

pbld, n$, *sg95, e$

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

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

!feed = pitch

if feed > 3,

[

" ",e$

"**HELLO ***CHECK PITCH IS CORRECT**",e$

" ",e$

]

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

prdrlout, *feed, *sgdrlref, strcantext, e$

pcom_movea

===============

 

quote:

G80 G94

pcanceldc$ #Cancel canned drill cycle

result = newfs(three, zinc)

z$ = initht$

if cuttype = one, prv_zia = initht$ + (rotdia$/two)

else, prv_zia = initht$

pxyzcout

!zabs, !zinc

prv_gcode$ = zero

pcan

pcan1, pbld, n$, sg80, strcantext, e$

pbld, n$, sg94, e$

pcan2

===============

To remove M3 on section with tapping in PSOF$

pbld, n$, *speed, [if drillcyc$ <> 3 | drillcyc$ <> 7, *spindle], pgear, strcantext, e$

 

note! drillcyc 3 is tapping(PTAP$), 7 is rigid tapping(PMISC2$)

Link to comment
Share on other sites

Don't forget the omitting of spindle start you wanted

 

in PSOF$ section

is now

pbld, n$, *speed, *spindle, pgear, strcantext, e$

change to

pbld, n$, *speed, [if drillcyc$ <> 3 | drillcyc$ <> 7, *spindle], pgear, strcantext, e$

 

omit the "| drillcyc$ <> 7" if your post is not setup for rigid tapping in MISC2

Link to comment
Share on other sites

You can do also like that (in program):

(TAP 2 X 1/2-13 UNC)

G59G90G00X20.29Y-2.S100M03T19

G43H20Z3.M08

Z1.

G98G84X20.29Y-2.Z-0.75R0.1F[[1./13.]*#4119]

X22.22Y-1.

G80

....then you can control only the from the RPM value. And also you can change post to have the values between brackets driven from tool and units Ex:[1/13]

Link to comment
Share on other sites

quote:

"**HELLO ***CHECK PITCH IS CORRECT**"

 

in the nc code.


Yep,

If one of the guys ( inexperienced or whatever )

puts in a dud value or mistypes the pitch, puts in feed per min, or opens an old program that didn't have this functionality, ( the Okuma's alarm out because it's not in comments )

 

Not often we run taps above the 3mm pitch,

5 axis machines with hi RPM's don't have the grunt to drive them

 

Thad,

Sorry, no e-mail, not me

Link to comment
Share on other sites
  • 4 months later...

I finally got around to changing my rigid tap to IPR by pasting James' code.

The code works, but I'm getting errors

 

code:

 29 Jul 2009 01:48:30 PM - <0> - Report created.

29 Jul 2009 01:48:30 PM - <2> - Initialize posting log file

29 Jul 2009 01:48:30 PM - <2> - Using MP run version 13.00 and post components version 10.00

29 Jul 2009 01:48:30 PM - <2> - Initiate opening the post processor file(s).

29 Jul 2009 01:48:30 PM - <2> - Post processor file name: C:MCAMX4MILLPOSTSMIKE'S X4 HAAS POST.PST

29 Jul 2009 01:48:30 PM - <2> - The post processor file has been successfully opened.

29 Jul 2009 01:48:30 PM - <2> - Post version information (input):

29 Jul 2009 01:48:30 PM - <2> - UPDATEPOST Version 13. was used to modify this file.

29 Jul 2009 01:48:30 PM - <2> - The file was modified by this product on 08 Jun 09 09:28:46

29 Jul 2009 01:48:30 PM - <2> - The post was written to run with Mastercam Version 13.

29 Jul 2009 01:48:30 PM - <2> - The post product type is Mill.

29 Jul 2009 01:48:31 PM - <2> - Initialization of pre-defined post variables, strings, postblocks was successful.

29 Jul 2009 01:48:31 PM - <2> - Search for defined post variables, strings, postblocks was successful.

29 Jul 2009 01:48:31 PM - <2> - PST LINE (1375) - Label has not been defined[10]

29 Jul 2009 01:48:31 PM - <2> - PST LINE (1378) - Label has not been defined[45]

29 Jul 2009 01:48:31 PM - <2> - PST LINE (1378) - Label has not been defined[68]

29 Jul 2009 01:48:31 PM - <2> - PST LINE (1385) - Label has not been defined[45]

29 Jul 2009 01:48:31 PM - <2> - PST LINE (1385) - Label has not been defined[68]

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'dec_seq_right$' was re-initialized from 3. to 0.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'omitseq$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'bldnxtool$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'breakarcs$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'breakarcsxz$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'breakarcsyz$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcs$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcsxz$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'lbreakarcsyz$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'arccheck$' was re-initialized from 1. to 111.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'larccheck$' was re-initialized from 1. to 111.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'rotfeed4$' was re-initialized from 2. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'rotfeed5$' was re-initialized from 3. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'lrotfeed4$' was re-initialized from 2. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'lrotfeed5$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - CONTROL DEFINITION - - Post variable 'peckacel$' was re-initialized from 0. to 1.

29 Jul 2009 01:48:31 PM - <2> - RUN TIME - PST(1375), NCI(112) - The math calculation/formula has an error

29 Jul 2009 01:48:31 PM - <2> - Successful completion of posting process!


I marked the undefined post lines below.

 

code:

ptap$            #Canned Tap Cycle  

pdrlcommonb

#RH/LH based on spindle direction

if rigid_tap, pbld, n$, *sm19, *speed, e$ #Rigid Tapping <-----------Line 1375

if use_pitch = 0,

[

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl, <----------Line 1378

prdrlout, peck1$, *feed, 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)

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,<---------------Line 1385

 

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

]

pcom_movea

 

#(Disabled IPM tapping for IPR tapping above 7/29/09)

#pcan1, pbld, n$, *sgdrlref, *sgdrill, pxout, pyout, pfzout, pcout, #prdrlout, *peck1$, *feed, strcantext, e$

#pcom_movea

Any idea why I'm getting the errors? TIA

Link to comment
Share on other sites

MIC 6 - Here's a start.

 

line - 1375 looks like - rigid_tap(switch) or sm19(string) is not declared

 

line - 1378 looks like two post blocks (pindexdrl & pdrlxy?) are undeclared

 

line - 1385 same as line 1378

 

runtime error on line - 1375 - same as above

 

------------------------------------------------

 

code:

Give this a try:

 

Do a search for rigid_tap, and use_pitch.

 

# If one of these isn't in your post, just declare it and use it as a switch.

#

# Like this:

#

rigid_tap : 1 #Rigid tap 0=off 1=on

#

use_pitch : 1 #Ipm/Ipr 0=ipm 1=ipr

#

#

Make sure pitch is in use, or declare that too:

#

fmt F 2 pitch #Ipr

#

#

ptap$ #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if rigid_tap, pbld, n$, "M29", *speed, e$ #Rigid Tapping

if use_pitch = 0,

# Ipm tapping

[

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

prdrlout, *feed, strcantext, e$

]

else,

# Ipr tapping

[

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

else,

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

]

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

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

pcom_movea

 

 

.

HTH smile.gif

 

If this works for you, we'll handle G95 or G93 before cycle and G94 after cycle, as well as spindle suppression(no M03)for rigid tap next.

 

Let me know how you make out. smile.gif

 

[ 07-29-2009, 08:41 PM: Message edited by: Mastercam Guru ]

Link to comment
Share on other sites

Thanks for the reply. Here's what I have now. I modified the Ptap$ as you showed above. I now have one error on the following line:

 

PST LINE (1374) - Label has not been defined[10]

 

code:

  if rigid_tap, pbld, n$, *sm19, *speed, e$           #Rigid Tapping 

The post output looks like this:

code:

 %

O4444( 5670335-103-D-4 )

( T12 | 1/4-28 TAPRH | H12 )

G20

G0 G17 G40 G49 G80 G90

G91 G28 Z0 ( TAP 1/4 - 28 2X )

T12 M6 ( 1/4-28 TAPRH | T: 12 | D: 12 | H: 12 | DIA: .25 )

G0 G90 G57 X-.375 Y-.375 C0. S382 M3

G43 H12 Z.1

/M8

M19 S382

G99 G84 Z-.475 R.1 F.036

X-2.875

G80

M9

M5

G91 G28 Z0.

G0 G90 G154 P99 X0. Y0.

T12 M6

M30

%


This is in my General Output Settings:

code:

 use_pitch    : 1     #0 = Use feed for tapping, 1 = Use pitch for tapping 

Here's my misc string definiton changed to M19, since my Haas doesn't support M29:

code:

sm19         : "M19"  #Rigid tapping preperation support function  

Getting there biggrin.gif

Link to comment
Share on other sites

Did you find a declaration for rigid_tap, like this?

 

rigid_tap : 1 #Rigid tap 0=off 1=on

 

It should be near use_pitch, somewhere in General Output Settings.

 

If not, add it in.

 

Btw - Look at your fmt line for pitch,

 

fmt F 2 pitch

 

and fs2 statement for format 2

 

fs2 2 0.4 0.3 #Decimal, absolute, 4/3 place

 

You are outputting a 3 place for pitch, it should be 4 place decimal. Eg. .0357 for that 1/4-28 tap

 

[ 07-30-2009, 12:53 PM: Message edited by: Mastercam Guru ]

Link to comment
Share on other sites

Sweet, no errors. Now will I disable the m3 speed command in the ptap or psof? Thanks

 

code:

 %

O4444( 5670335-103-D-4 )

( T12 | 1/4-28 TAPRH | H12 )

G20

G0 G17 G40 G49 G80 G90

G91 G28 Z0 ( TAP 1/4 - 28 2X )

T12 M6 ( 1/4-28 TAPRH | T: 12 | D: 12 | H: 12 | DIA: .25 )

G0 G90 G57 X-.375 Y-.375 C0. S382 M3

G43 H12 Z.1

/M8

M19 S382

G99 G84 Z-.475 R.1 F.0357

X-2.875

G80

M9

M5

G91 G28 Z0.

G0 G90 G154 P99 X0. Y0.

T12 M6

M30

%


Link to comment
Share on other sites

Search for spindle and speed.

 

Note the postblocks they are in.

 

They should be in ptlchg_com, as well as a few other places.

 

Assuming you have found these in ptlchg_com, try this:

 

code:

pcan1, pbld, n, *sgcode, *sgabsinc, [if not(index), pwcs], pfxout, pfyout, 

pfcout, *speed, *spindle, pgear, strcantext, e

 

.

 

# Change to

 

.

 

pcan1, pbld, n, *sgcode, *sgabsinc, [if not(index), pwcs], pfxout, pfyout,

pfcout,[if not(drillcyc$ = 3 & rigid_tap), *speed, *spindle], pgear, strcantext, e

 

[ 07-30-2009, 07:08 PM: Message edited by: Mastercam Guru ]

Link to comment
Share on other sites

I only found these in ptlchange$ and I chnaged the code to the code you gave and it moved my G43 Line like so :

 

code:

 T16 M6 ( .500    120 DEG. SPOT DRILL | T: 16 | D: 16 | H: 16 | DIA: .5 )

G0 G90 G55 X-1.75 Y4.35 C0. S1200 M3 G43 H16 Z.1 T4

Normally Like this:

code:

 T16 M6 ( .500    120 DEG. SPOT DRILL | T: 16 | D: 16 | H: 16 | DIA: .5 )

G0 G90 G55 X-1.75 Y4.35 C0. S1200 M3

G43 H16 Z.1 T4

headscratch.gif

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