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:

Tool instance into a N sequence number


Recommended Posts

Hi all,

Currently, i have it so that my post, post out the tool number as a N number value before the tool is run. So that it can be searched for easier in the program when you just want to run that tool. What I would like the post to do is to post out right after the N number for the tool, another n number that is the instance count of that tool in the program. So when the tool is ran multiple times I can just keep searching down on the instances of that tool till i find the X time that is used.

 

This is what it does now

 
(WCS NAME - OP20 TOP)
(COMPENSATION TYPE - COMPUTER)
N23
T23 M06 (0.375 BULL-NOSED ENDMILL)
(MAX - Z.133)
(MIN - Z-.267)
G00 G17 G20 G40 G80 G90
M11 (UNLOCK)
 
This is what i looking for it to do
 
(WCS NAME - OP20 TOP)
(COMPENSATION TYPE - COMPUTER)
N23
N0002
T23 M06 (0.375 BULL-NOSED ENDMILL)
(MAX - Z.133)
(MIN - Z-.267)
G00 G17 G20 G40 G80 G90
M11 (UNLOCK)

 

Link to comment
Share on other sites

What I did was add to the N number by a factor of 100 or 1000 when it was called again. N1 for Tool 1 and then if it were called again it was N1001 then Again was N2001 and so forth. By using 1000 it gives you 999 tools to do that way. Yes it only allows 9 calls of the tool, but cannot think of a time where I called the same tool that many times in a program in my years.

 

In you care it would be N23 and then N1023.

 

You way would work and hopefully one of the post gurus chime in.

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