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 Problem: Need 'N' number only on tool change line.


MetalFlake
 Share

Recommended Posts

Well, I tried to figure this out on my own but I only got it to output 'N0' on the tool change lines. So, I started over. Here's what I have to start with:

 

.

.

G00 G17 G20 G40 G49 G80 G90

(INTERP FACE FOR DRILL B-10.145)

T31 M06 (.250 X .5 X SC 3FLT CARB EM)

.

.

 

I need the toolchange line like this:

 

N31 T31 M06 (.250 X .5 X SC 3FLT CARB EM)

 

...so the 'N' number matches the tool number.

 

 

Many thanks for any help!!

 

Dan

Link to comment
Share on other sites

n=t creates duplicate numbers n numbers with repeat tools.... not good.

 

Similar to David B I had a variable declared tblocknum

 

 

code:

 --------------------------------------------------------------------------

Miscellaneous output formats

--------------------------------------------------------------------------

fmt N 3 tblocknum Block Num at tool chg

--------------------------------------------------------------------------

INITIALIZE - initialize system variables and define user variables

--------------------------------------------------------------------------

tblocknum : 0 Blocknumber at tool change

 

 

 

ptlchg Tool change

pinit

tblocknum=tblocknum+1

n, "G0 G91 G28 Z0."

n, "G90"

!opcode

if mi1 <= 3, pg92_tst

if stagetool = 0, n, tblocknum, *t, "M06"

if stagetool = 1, n, tblocknum, *next_tool, "M06"

Link to comment
Share on other sites

When I get back to work monday I'll put info on here or email my post to any one who would like a look at it.I had the post customed for me. I'm no post expert.

My post outputs a N every tool change only and adds the sequence to the tool number.

The guys on the shop floor wanted it like that so they can resart at any tool change in the program.

NOTE:The N line is before the T__ M06 because for resarting purposes.The operaters could do a restart at any toolchange.

 

N311

G91 G28 Z0

G91 G28 X0 Y0

T31 M06

...

...

HTH

cheers.gifcheers.gif

Link to comment
Share on other sites

I got it like this, very easy to find anything and it looks neat.

 

 

O0000 (MGB B12323 HOU. 1ST OPER.)

G97

M98P1

 

N1(OD GROOVE RIGHT )

 

M98 P1

T0101

S2000 M03

N10 X3.4 Z.015 M8

N12 G01 G99 X1.85 F.006

etc......

N68 X2.222 Z-.789

N70 X2.7 F.03

G97 S2000

M98 P1

 

N2(DRILL 1. DIA.)

 

M98 P1

T0202

S2000 M03

N10 X0. Z.29 M8

N12 G98 Z.14 F150.

N14 G01 G99 Z-1.5004 F.01

N16 G98 Z.29 F150.

G97 S2000

M98 P1

 

N3(ID ROUGH )

 

M98 P1

T0303

S2500 M03

N10 X1.98 Z.102 M8

N24 G71 U.075 R.05

N26 G71 P28 Q28 U-.02 W.01 F.014

N28 G01 G99 Z-.75 F.014

N30 M99

N36 M99

G97 S2500

M98 P1

 

N4(ID FINISH )

Link to comment
Share on other sites

Hi,

Back at work here is some info Ifound in my post...spaces=0

if t >= zero, "(NWDTOOL N", 34, pmetacomm, 34, " ", *t, " ", *tldia_meta, " ",

[if tcr_meta > 0, *tcr_meta, " "], *flute_meta, " ", *oa_meta, " ",

[if ta_meta<>180, *ta_meta, " "], [if td_meta > 0, *td_meta, " "],

*cd_meta, " ", *cl_meta, " ", *sd_meta, " ", *tipcomp, ")"

spaces=sav_spc

 

I can email my post to whoever would like to see it. cheers.gifcheers.gif

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