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 Edit


Dave Ball
 Share

Recommended Posts

I have searched for an hour and can't find anything on this. Can someone tell me what I need to do to get the line numbers to output with the coresponding tool in the tool table like this?

 

code:

 ( N1 - T1 - H1 - 3/8 SPOTDRILL )

( N5 - T3 - H74 - 13.5mm 17/32 DRILL COOLANT THROUGH )

( N10 - T4 - H8 - 3/4 COUTAUX PASTILLE )

( N4 - T5 - H4 - 9/32 DRILL RT-1OO GUHRING )

( N7 - T6 - H11 - 13/32 FLAT ENDMILL )

( N2 - T7 - H40 - 5.2mm DRILL RT-1OO GUHRING )

( N3 - T8 - H3 - 6.1mm DRILL XPM )

( N11 - T9 - H47 - #16 DRILL CARBIDE )

( N15 - T10 - H42 - 9/32 DRILL LONG RT-1OO GUHRING )

( N13 - T11 - H52 - 5/32 DRILL CARBIDE )

( N12 - T12 - H19 - 3.1mm DRILL XPM )

( N6 - T13 - H25 - 25/32 FLAT ENDMILL )

( N14 - T16 - H56 - END MILL 13/64 )

( N9 - T19 - H95 - 3/16 OUTIL A CHAMFREIN )

( N8 - T20 - H89 - 3/4 SPOT DRILL PASTILLE 90° )


I have tried several things like this but I'm still missing something.

 

code:

  if t$ >= zero,

[

if tcr$>0, "( ", n$, *t$, "-", plistcomm, *tcr, " )", e$

if tcr$=0, "( ", n$, *t$, "-", plistcomm, " )", e$

Link to comment
Share on other sites

Thanks John, I changed it to this, I had to force the n$.

code:

 if t$ >= zero,

[

n$=t$

if tcr$>0, "( ", *n$, "-", *t$, "-", plistcomm, *tcr, " )", e$

if tcr$=0, "( ", *n$, "-", *t$, "-", plistcomm, " )", e$

and now I get this

 

code:

( N58-T58- 2 1/2" HIGH FEED HELIX BORE )                    pwrtt$ p__269:4122

( N59-T59- 4" HIGH FEED MILL ) pwrtt$ p__269:4122

( N60-T60- 4" INCH TURBO MILL ) pwrtt$ p__269:4122

( N14-T14-1-3/16" ALLIED DRILL - #2 ) pwrtt$ p__269:4122

( N10-T10- 13/16 DRILL ) pwrtt$ p__269:4122

( N57-T57- 1 1/2" HIGH FEED HELIX BORE ) pwrtt$ p__269:4122

( N56-T56- 1-1/2" TURBO MILL ) pwrtt$ p__269:4122

( N42-T42- 1.000" FLAT ENDMILL ) pwrtt$ p__269:4122

( N43-T43-.63 CHAMFER ) pwrtt$ p__269:4122

( N30-T30-3.750" KAISER #611 ) pwrtt$ p__269:4122

( N29-T29-3.410" KAISER #511 ) pwrtt$ p__269:4122

( N7-T7- 1/2 SPOTDRILL ) pwrtt$ p__269:4122

( N4-T4- NO. 3 DRILL ) pwrtt$ p__269:4122

( N34-T34- 1/4-28 TAPRH ) pwrtt$ p__269:4122

( N55-T55-3/8" TURBO MILL ) pwrtt$ p__269:4122

( N39-T39-3/8" FLAT ENDMILL ) pwrtt$ p__269:4122

( N44-T44-.37 CHAMFER ) pwrtt$ p__269:4122

I'm using the N at each tool change,

 

code:

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

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

and I want the N in the tooltable to corespond to the N posted at each toolchange. So it looks like this

code:

( N1-T58- 2 1/2" HIGH FEED HELIX BORE )                     pwrtt$ p__269:4122

( N2-T59- 4" HIGH FEED MILL ) pwrtt$ p__269:4122

( N3-T60- 4" INCH TURBO MILL ) pwrtt$ p__269:4122

( N4-T14-1-3/16" ALLIED DRILL - #2 ) pwrtt$ p__269:4122

( N5-T10- 13/16 DRILL ) pwrtt$ p__269:4122

( N6-T57- 1 1/2" HIGH FEED HELIX BORE ) pwrtt$ p__269:4122

( N6-T56- 1-1/2" TURBO MILL ) pwrtt$ p__269:4122

( N7-T42- 1.000" FLAT ENDMILL ) pwrtt$ p__269:4122

( N8-T43-.63 CHAMFER ) pwrtt$ p__269:4122

( N9-T30-3.750" KAISER #611 ) pwrtt$ p__269:4122

( N10-T29-3.410" KAISER #511 ) pwrtt$ p__269:4122

( N11-T7- 1/2 SPOTDRILL ) pwrtt$ p__269:4122

( N12-T4- NO. 3 DRILL ) pwrtt$ p__269:4122

( N13-T34- 1/4-28 TAPRH ) pwrtt$ p__269:4122

( N14-T55-3/8" TURBO MILL ) pwrtt$ p__269:4122

( N15-T39-3/8" FLAT ENDMILL ) pwrtt$ p__269:4122

( N16-T44-.37 CHAMFER ) pwrtt$ p__269:4122

Link to comment
Share on other sites

You can try using a second sequence variable;

 

code:

seq_tool_n : 0     # Sequence number for tool list

code:

fmt  N  4   seq_tool_n  #Sequence number for tool list

code:

if t$ >= zero,

[

seq_tool_n = seq_tool_n + 1

if tcr$ > 0, "( ", seq_tool_n, "-", *t$, "-", plistcomm, *tcr, " )", e$

if tcr$ = 0, "( ", seq_tool_n, "-", *t$, "-", plistcomm, " )", e$

]

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