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:

Changing feed in null toolchange


Recommended Posts

I have a Roeders post that will not change the feed rate in the null tool change. It will recognize a change in spindle speed but carries the feed down from the original tool.

 

// TEST FEED
T1 S5000 M3 //  1/2 BULL ENDMILL 0.125 RAD
TLC -R=.125 -WAIT=240
CLEANON
TOL=.0006 SM=.0006 RMAX=1. RADMAX=3000.
$FEED=10.
XCALL E:\JOBS\608-TEST-CC-1_1.ROD

// TEST NULL CHANGE
S6000 M3
TOL=.0006 SM=.0006 RMAX=1. RADMAX=3000.
$FEED=10.
XCALL E:\JOBS\608-TEST-CC-2_1.ROD
CLEANOFF
TLM -R=.125

 

I don't understand why it is locking the feed rate from the starting tool. The feed for the 2nd toolpath is supposed to be 20.

 

Any help is greatly appreciated.

Link to comment
Share on other sites

I'm assuming the feed is being output in the ptlchg0$ post block. Without looking at the post, the one thing I would suggest is looking at the pfcalc post block. There may be a conditional statement that is preventing the update based on the current gcode$ value:

pfcalc          #Feedrate calculations, gcode 0 does not evaluate
     if gcode$ <> zero,
       [
       #if not(use_frinv) & (abs(fmtrnd(cabs)-prvcabs) <= 0.001 | index | not(rot_feed) | opcode = 3), pfcalc_u_min  # G93 rotary / G93 linear
       if (abs(fmtrnd(cabs)-prvcabs) <= 0.001 | index | not(rot_feed) | opcode$ = 3), pfcalc_u_min  # G93 rotary / G94 linear
       else,
         [
         #if cuttype = one & (cutpos2 <= one),  #Proposed change
         if cuttype = one & (cutpos2$ <= one | cutpos2$ = four & (opcode$ < 5 & opcode$ > 12)), pfcalc_u_min
         else, pfclc_deg_inv
         ]
       if ipr_type <> prv_ipr_type, prv_feed = c9k
       ]

 

If you pound out the gcode$ if statement you may get what you're looking for.

 

You could also look at the pxyzcout block and see if it is setting feed there for instances in which no rotary axis is present:

pxyzcout        #Map coordinates
     if rot_on_x,
       [
       if cuttype = zero, pxyzcout0    #Toolplane Positioning
       if cuttype = one, pxyzcout1     #Axis Substitution
       if cuttype = two, pxyzcout2     #Polar Conversion
       if cuttype = three, pxyzcout3   #Simulatneous 4 axis (Multi-axis)
       if rot_ccw_pos = one, csav = -csav
       if mr_rt_actv <> two,
         [
         pcoutrev
         if index, pindxcalc
         pfcalc
         ]
       else, feed = fr_pos$
       ]
     else,
       [
       xabs = vequ (x$)
       feed = fr_pos$    <---THIS LINE NEEDS TO BE THERE!
       ]

 

Again, with out knowing what you started with for a post or looking at the post, these are just guesses....

Link to comment
Share on other sites

Thanks for the help Chris. My post matches what you have (standard post from Shopware). I pounded out the gcode if statement and still didn't pickup on the changed feed. I also have the feed = fr_pos$ line in the pxyzcout variable area.

 

I will beat my head against the wall a little bit longer. :wallbash:

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