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 List - Output of null tool changes???


Josh T™
 Share

Recommended Posts

Hey everybody!

My reseller gave me the code to output the tool list. It may be me but I have a difficult time knowing where to put the $ in the X posts(old school V9 post modifier) so that may be the cause. Anyways the tool list outputs all of the tool changes including the nulls:

headscratch.gif

code:

 %

O0000 (T53_EDM-PLUNGE_FIXTURE.NC)

(TIMKEN TTC PROTOTYPE)

(MACHINE CNC: HAAS VF-3 3AXIS)

(DATE: 04-08-08)

(PROGRAM GENNERATED IN MASTERCAM vers_no$ 11.)

(PROGRAMER: JOSH TURNER)

(WORK OFFSET LOCATIONS)

(X & Y = CENTER OF STOCK)

(Z = TOP OF PART)

(TOOLS)

( TOOL-1. - 3/8 SPOTDRILL )

( TOOL-2. - 23/64 DRILL )

( TOOL-3. - .3750 REAMER )

( TOOL-4. - 1/4 DRILL )

( TOOL-5. - 17/64 DRILL )

( TOOL-6. - 27/64 DRILL )

( TOOL-7. - 1/2 3 FLUTE ENDMILL )

( TOOL--7. - 1/2 3 FLUTE ENDMILL )

( TOOL-8. - 1/2-13 TAPRH )

( TOOL-9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

( TOOL--9. - 1/8 CENTER DRILL/ENGRAVE )

.......

If I had 100 contours for this tool I'd have 100 outputs in my list. Anyone have any ideas?

 

Thanks in advance

Josh

Link to comment
Share on other sites

Here is all the stuff I can find:

 

code:

 fmt  TOOL- 3 tnote  # Note format

# --------------------------------------------------------------------------

# Tool Comment / Manual Entry Section

# --------------------------------------------------------------------------

ptoolcomment #Comment for tool

tnote = t$

"(", pstrtool,")", e$

 

pstrtool #Comment for tool

if strtool$ <> sblank,

[

strtool$ = ucase(strtool$)

*strtool$, " "

]

 

Just after the pheader:

# --------------------------------------------------------------------------

# Tooltable Output

# --------------------------------------------------------------------------

 

pwrtt$ # Write tool table, scans entire file, null tools are negative

tnote = t$

strtool$ = ucase(strtool)

if t >= 0, "(", tnote, "-", strtool$, ")", e$

if t >= 0, tcnt = tcnt + 1

 

bldnxtool$ : yes # Build next tool table

 

tooltable$ : 1 # Read for tool table and pwrtt

Take a look and see what you can come up with. If I'm missing anything let me know.

 

Thanks,

Josh

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