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 out feed rate w/macro variable


Recommended Posts

Hi everyone first time posting anything on here, usually just use this site to do some stalking for ideas on posts.

I finally ran into a post issue that I can't figure out on my own. Anyways, in our shop we are running makino a51's and mori nh4000 and usually we use top solid for programming but because there is so many bugs in top solid, we are moving back to mastercam and I am trying to get the post to mimic what we had in top solid. One of the things that would post out from the top solid post was a variable feed rate so we could change the feed rate global from the controller looks something like this F[40.*#997]. I only want it post out on linear moves. i.e not tap cycles! 

Any ideas?

  • Like 1
Link to comment
Share on other sites

In your plinout postblock put in:

       

        myfeed = feed

        pcan1, pbld, n$, psgplane, psgfeed, pexct, psgcode, psccomp, pxout, pyout, pcout, pscool, "F", 91, myfeed, 42, 35, "997", 93, strcantext, e$

 

Format myfeed with no address:

 

fmt      18 myfeed        # my Feedrate

 

This should work you, welcome to the forum.

  • Like 1
Link to comment
Share on other sites

Thanks for the input. That works pretty well the only problems that I have with it is that it will post the feed out on ever line and that it leaves spaces in between the feed rate. Is there a way that I could define a new line line this the enter it into my line? also, how to i get it to suppress it on evrey instance after?

 

 

spaces$=0              
 newfeed = pbld, "F", 91, myfeed , 42, 35, "997", 93, e$
spaces$=1
 
 
 pcan1, pbld, n$, sgfeed, sgplane, `sgcode, sgabsinc, pccdia, pxout, pyout, pzout, pcout, newfeed, strcantext, scoolant, e$
  • Like 1
Link to comment
Share on other sites

Make some kind of a counter.

 

count  :   0 # initialize counter

 

      if count = 0,

       [

        spaces$=0             

        newfeed = pbld, "F", 91, myfeed , 42, 35, "997", 93, e$

        spaces$=1

        count = 1

       ]

 

Reset counter after toolchange, etc.

       count = 0

  • Like 1
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...