Recommended Posts

I just downloaded the MPMaster post and I am wondering how you make the N numbers start in the hundreds and increase by 10 everytime the tool is used ( ex: n100 for first run and n110 the next time its called up)

Share this post


Link to post
Share on other sites

You will have to construct your own logic in the post. Try searching the forum, there have been several examples of "custom" line numbers over the years.

Do you intend to have all lines numbered? That will eat up a lot of memory, especially with larger tool numbers.

Share this post


Link to post
Share on other sites

Our post has a string

 

Tblk = tblk +10

Share this post


Link to post
Share on other sites
35 minutes ago, nickbe10 said:

You will have to construct your own logic in the post. Try searching the forum, there have been several examples of "custom" line numbers over the years.

Do you intend to have all lines numbered? That will eat up a lot of memory, especially with larger tool numbers.

yeah i have that in my other post but when i try to put it in this one it doesnt like it.But Im probably putting it in the wrong place

      # ----------------------------------------------------------
      # BEGIN Tool usage stuff

      tused = flook(3,t$) #How many times has this tool# been used
      ##TEST FEATURE###if tused > 0,n$, "This tool has already been used ", *tused, " times", e$##TEST FEATURE###
      result = finc(3,t$) #Track tool usage('finc' updates to the lookup table)

       nn = t$ * 100
       n$, *nn, e$
      # END Tool usage stuff
      # -----------------------------------------------------------

 

this is in my other post. Im trying to update our old post with this one since its more up to date. This is the only thing that I lack and this post will be pretty solid for us,

Share this post


Link to post
Share on other sites
	  # ----------------------------------------------------------
      # BEGIN Tool usage stuff

      tused = flook(3,t$) #How many times has this tool# been used
      ##TEST FEATURE###if tused > 0,n$, "This tool has already been used ", *tused, " times", e$##TEST FEATURE###
      result = finc(3,t$) #Track tool usage('finc' updates to the lookup table)

       nn = t$ * 100
       n$, *nn, e$
      # END Tool usage stuff
      # -----------------------------------------------------------

sorry made it shareable

 

 

it does not work if I insert it where the other one is in my old post.

Share this post


Link to post
Share on other sites

 No I turned the sequence #'s off

Share this post


Link to post
Share on other sites
16 hours ago, Bama said:

it does not work if I insert it where the other one is in my old post.

You need to check which "base posts" you are using. the one that works and the one you are modifying. If they are the same it should be pretty straightforward.

If different maybe not so. Look at the Revision Log at the top of the post, if the initials are IHS then it is probably Mpmaster, if CNC then a CNC generic or machine OEM post (they do a bunch of Haas posts for instance).

You need to make sure all your custom variables are defined and initiated too.

Do you have the documentation? Would definitely make it easier for you as, it describes these things .

Search the post that works with your variables and functions and see what else has been added to make the statements go. 

Again, this isn't something I have dealt with because the standard output works fine for us, so I would urge you to search the forum. I have followed some of the threads and they are quite interesting, I didn't copy them ( I often do) coz its just not on the our radar .

Share this post


Link to post
Share on other sites
2 hours ago, nickbe10 said:

You need to check which "base posts" you are using. the one that works and the one you are modifying. If they are the same it should be pretty straightforward.

If different maybe not so. Look at the Revision Log at the top of the post, if the initials are IHS then it is probably Mpmaster, if CNC then a CNC generic or machine OEM post (they do a bunch of Haas posts for instance).

You need to make sure all your custom variables are defined and initiated too.

Do you have the documentation? Would definitely make it easier for you as, it describes these things .

Search the post that works with your variables and functions and see what else has been added to make the statements go. 

Again, this isn't something I have dealt with because the standard output works fine for us, so I would urge you to search the forum. I have followed some of the threads and they are quite interesting, I didn't copy them ( I often do) coz its just not on the our radar .

Man i actually figured it all out and got everything i needed to get it done. I just had to figure out where everything went. But after I did that it works perfect now. Thanks for you help.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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