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:

Sequence numbers


Metric
 Share

Recommended Posts

"Hi guys.

Can anyone tell me how to output sequence numbers

only at tool changes, such as N800 for T8, N900 for T9 and so on. I have no idea how to go about this. Thanks." I know this topic had the answer but I searched all over the forum could not find it Please could you guys help me out.

Thanks alots.

P.s for Mc v9. banghead.gifbanghead.gif

Link to comment
Share on other sites

How do you handle numbering if you call a tool a second time?

 

If you want to do N200 T2 and then N201 T2

 

you're going to have to use a buffer to do it.

 

other wise it's pretty straight forward.

 

in the tool change section above the

 

code:

pbld, n$, t$, "M06", e$

you could add

 

code:

n$ = t$ * 100

pbld, n$, t$, "M06", e$

Link to comment
Share on other sites
  • 1 month later...

Or if you're using the MpMaster post, do a search for: tseqno

 

tseqno : 0 #Output sequence number at toolchanges when omitseq = yes

#0=off, 1=seq numbers match toolchange number, 2=seq numbers match tool number

 

 

No need to create a buffer if you only want the seq number to match the tool number.

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

This is for having only one sequential N# at the beginning of each tool for lathe (for mill I use N# = T#). I have been working on this for awhile and finally came up with a solution that works for me. Maybe I was doing something wrong but I found the mplmaster tseqno set to 1 caused problems w/ output after canned cycles. Anyway I think this is pretty clean:

 

First I created the output format:

 

fmt N 4 nnote #Sequence number beginning of tool only

 

and the user variable:

 

sav_op_id : 0 #Sequential counter for block #'s

 

then the postblock:

 

pnnote

if op_id$ = one, sav_op_id = one

nnote = sav_op_id

nnote

else,

nnote = sav_op_id

nnote

 

then right before 'ptoolcomment' in ltlchg$ and mtlchg$ add the following:

 

pnnote

sav_op_id = sav_op_id + one

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