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:

Mpmaster line numbers?


DavidB
 Share

Recommended Posts

With the Mpmaster post I have turned off seq numbers.

Can I get this post to give me a "N" line number for each tool change and a count?

What I would like is N101 for tool 10 the first time tool 10 is called then N102 the second time tool 10 is called in the same program.

 

I noticed this section is post...

code:

 #Misc variables

tcnt : 0 # Count the number of tool changes

toolcount : 1 # Tool counter for logic control

toolcountn : 0 # Next tool counter for logic control

toolcountp : 0 # Previous tool counter for logic control

tooltotal : 0 # Tool tool count

nexttool : 0 # Next actual tool

nexttp : 0 # Next tool plane

prvtp : 0 # Previous tool plane

counter : 0 # Counter

nstrlen : 0 # Length of string

last_op_id : 0 # Previous internal operation id

last_cuttype : 0 # Previous cuttype

stock_typ : 0 # Predator Stock Type

cyl_typ : 0 # Predator Cyl Stock Type

z_min : 99999 # Min Z

z_tmin : 99999 # Overall min Z

z_max : -99999# Max Z

z_tmax : -99999# Overall max Z

tapflg : 0 # Flag for tap cycle

sav_mi9 : 0 # Saved mi9 value

rotretflg : 0

compwarnflg : 0

sof : 1

miscvalon : 0

Thanks in advance cheers.gif

Link to comment
Share on other sites

David this exact topice has been discussed, if you do a search I'm sure you'll find it.

 

How about just an N number at each toolchange?

 

Here's one that makes the N = T

 

Linky

 

Making it = is easy enough making it = to T =1 one if previously used is little bit trickier

Link to comment
Share on other sites

Stork,

 

That's not what he's asking for, if I read it correctly.

 

My posts are set up the same way N only at tool change. He wants N = T and then if T is recalled to roll the N # up one.

 

What David is looking to do is, I think

 

N1 T1 first use

N11 T1 second use

N2 T2 first use

N21 T2 second use

.

.

N101 T10 first use

N102 T10 2nd use

Link to comment
Share on other sites

The new X Mpmaster has a new switch called

tseqno that controls this very easily

[*]tseqno : 2 #Output sequence number at toolchanges when omitseq = yes

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

It was outputing N1 instead of N10, but that's easy to fix

Link to comment
Share on other sites

David,

 

I think for you to pull this off the way you describe you're going to have to create a table to store the already used N #'s and then compare them so you can get the output correct.

 

This thread might be of interest in being able to track your tool changes

Linky

 

[ 03-19-2006, 04:27 PM: Message edited by: jmparis ]

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