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:

Tap Feed


Mcam Nut
 Share

Recommended Posts

My tap feeds are rounding to 2 decimal places, and I would like to change it to 4 places. I dont see the option in my post to change it. I believe this is where I have to change it, but not sure where it has to be changed.

 

fs2 1 0.7 0.6 #Decimal, absolute, 7 place, default for initialize ( smile.gif

fs2 2 0^4 0^3 #Decimal, absolute, 4/3 place

fs2 3 0^4 0^3d #Decimal, delta, 4/3 place

#Common format statements

fs2 4 1 0 1 0 #Integer, not leading

fs2 5 2 0 2 0l #Integer, force two leading

fs2 6 3 0 3 0l #Integer, force three leading

fs2 7 4 0 4 0l #Integer, force four leading

fs2 9 0.1 0.1 #Decimal, absolute, 1 place

fs2 10 0.2 0.2 #Decimal, absolute, 2 place

fs2 11 0^3 0^3 #Decimal, absolute, 3 place

fs2 12 0.4 0.4 #Decimal, absolute, 4 place

fs2 13 0^5 0^5 #Decimal, absolute, 5 place

fs2 14 0^3 0^3d #Decimal, delta, 3 place

 

fs2 15 0.2 0.1 #Decimal, absolute, 2/1 place

fs2 16 1 0 1 0n #Integer, forced output

fs2 17 1.4 1.3lt #Decimal, absolute, 4/3 place

fs2 18 0 1 0 1t #Decimal, absolute, 1 place trailing

 

fs2 19 0.3 0.3t #Decimal, absolute, 3 trailing, Vector output

 

#fs2 15 0 1 1 0t #Decimal, absolute, 2/1 place, mod

#fs2 16 1 0 1 0n #Integer, forced output

#fs2 17 1.1 1.1t #Decimal (One Trailing used to hold Repeat Parameter for Subs)

#fs2 18 1.4 1.3lt #Decimal, absolute, 4/3 place

#fs2 20 1.4 1.3lt #Decimal, absolute, 4/3 place

Link to comment
Share on other sites

The fs2 15 statement doesn't need to be changed.

 

The fmt statement for feed can be changed, which will affect all feedrates, or

you could do something like this in your tapping postblock.

 

code:

ptap$            #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if use_pitch & rigid_tap, pbld, n$, "G95", e$

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

if use_pitch = 0,

[

result = newfs(12,feed)#<---------------------------Force four places

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

prdrlout,[if peck1$, *peck1$], *feed, strcantext, e$

]

else,

[

pbld, n$, "G93", e$

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,

prdrlout,[if peck1$, *peck1$], *pitch, !feed, strcantext, e$

]

result = newfs(15,feed)#<---------------------------Revert to two places

pcom_movea

tapflg = 1

This way you can use four place for tapping and keep two place for everything else.

 

 

HTH

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

Rob, Group

 

I have a similar issue, so I was trying a variant of your solution with out the If/Then. Apparently it does not pass through this section for every hole as the code below shows it reverts to 2 places for all subsequent holes. Can you or someone help me identify another section that needs the feed updated?

 

Thanks

John

 

ptap$ #Canned Tap Cycle

pdrlcommonb

result = newfs(11, feed) # Set for tapping Feedrate 3 place

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

prdrlout, *feed, strcantext, e$

result = newfs(15, feed) # Set back to 2 place

pcom_movea

 

 

O0000(TEST)

(DATE - 07-26-10)

( T191 | NO. 8-32 TAPRH | H191 )

G20

G0 G17 G40 G49 G80 G90

( NO. 8-32 TAPRH )

T191 M6

G0 G90 G54 A0. X0. Y0. S300 M3

G43 H191 Z2.

G98 G84 Z-.5 R.1 F9.375

X1.4632 F9.38 <------- Changes back to 2 place

X2.8052

X3.6226

G80

M5

G91 G28 Z0.

A0.

M30

Link to comment
Share on other sites

I believe you would want to look for the ptap_2$ block to change the feed for subsequent holes. I just looked in my post and saw that the ptap_2$ block ends up referencing the pdrill_2$ block. Thus...if you want to change the feed for the subsequent holes in the tapping cycle, you'd have to change it in the pdrill_2$ block. I suppose you'd have to use a result statement or if/then statement to isolate the feed output for just the tapping cycle. HTH.

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