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:

add ptoolcomment to post


connormac
 Share

Recommended Posts

When I had some problems ya'll suggested that I run MPfan to see if it was a post problem or what. I noticed that MPfan had ptoolcomment that put in some cool stuff. Question is is it worth having. Do any of you use it. And how big of a pain would it be to get in my post's. I just can't leave stuff alone

 

Thanks for your input

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Not a big PITA at all. Well worth it if you ask me. You can be as detailed as you want to be or just use a simple desc.

 

Here's my snippet...

 

Enjoy, cheers.gif

 

code:

ptoolcomment    #Comment for tool

tnote = t

toffnote = tloffno

tlngnote = tlngno

tldianote = tldia

"(", pstrtool, *tnote, *toffnote, *tlngnote, *tldianote, ")", e

HTH

Link to comment
Share on other sites

Hi

T00L TABLE AT THE TOP OF PROGRAMS

code:

 

fmt 12 day

fmt 12 year2

 

year2 = year + 2000

 

 

fmt TOOL- 3 tnote # Note format

 

 

 

then . . .

code:

 

pheader # file name

"%"

progno, " (", progname, ")"

"( ", mon, " ", day, " ", year2, ")"

"(PROGRAM NO.", *progno, ")"

"(TOOLS)

 

 

Along with this:

code:

 

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

# Tooltable Output

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

 

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

tnote = t

strtool = ucase(strtool)

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

if t >= 0, tcnt = tcnt + 1

 

 

 

 

Set the variable tooltable to yes (1) or add to variable if not there to enable the execution of pwrtt.

Here are two lines of code that will help.

code:

 

 

bldnxtool : yes # Build next tool table

 

tooltable : 1 # Read for tool table and pwrtt

 

 

tcnt : 0 # Count the number of tool changes

 

Just to add soemthing to this guys if you want a little more information is over a netwrok you can add this to the post also:

code:

 

"(MC9 FILE - ", smcpath, smcname, smcext, ")", e

"(PROGRAM LOCATION - ", spathnc, snamenc, sextnc, ")", e

 

 

This tells you where on the network the files was placed if doing DNC and also tells you where the MC9 file is also.

 

 

Results:

 

%

O1001 (204014_23300_SM1 )

( Apr 1 2004 )

(PROGRAM NO. O1001 )

(TOOLS)

( TOOL-1 - 5/8" ---GT SPOT DRILL )

( TOOL-2 - 5/16 ---GT DRILL )

( TOOL-3 - 11/32 FULLERTON 30812 BALL EM )

( TOOL-4 - 13/64 ---GT DRILL )

( TOOL-5 - 9/64 ---GT DRILL )

( TOOL-6 - 3/32 FULLERTON 30609 CEM 4-FLUTES )

( TOOL-7 - OSG HYPRO 45 DEG CHAMFER TOOL )

( TOOL-8 - 1/4-20 TAP )

Link to comment
Share on other sites

Hi

Also could add

 

Example:

%

:0000 (258A4720NC)

(HOVIS- MACHINE CNC: HAAS VF-8/50 )

(MATERIAL -STEEL inch - 4140 - 400 BHN)

(POST - MPHAAS_VF8_3X_POST)

(DATE: 16-08-04)

(PROGRAM GENNERATED IN MASTERCAM vers_no 9.)

(PROGRAMER: DON S)

(STOCK SIZE: X20. Y20. Z.1 )

(STOCK ORIGIN: X0. Y0. Z0. At Center, Z at Top)

code:

 

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

#Select stock orientation note

stk0 "At Center, Z at Top"

stk1 "Upper Left corner, Z at Top"

stk2 "Upper Right corner, Z at Top"

stk3 "Lower Right corner, Z at Top"

stk4 "Lower Left corner, Z at Top"

stk5 "Upper Left corner, Z at Bottom"

stk6 "Upper Right corner, Z at Bottom"

stk7 "Lower Right corner, Z at Bottom"

stk8 "Lower Left corner, Z at Bottom"

stknote

 

fstrsel stk0 stck_crnr stknote

 

fmt 12 day

fmt 12 year2

 

year2 = year + 2000

 

 

fmt TOOL- 3 tnote # Note format

 

fmt X 11 stck_ht # X - Stock Height

fmt Y 11 stck_wdth # Y - Stock Width

fmt Z 11 stck_thck # Z - Stock Thickness

fmt X 2 stck_x # X origin of block

fmt Y 2 stck_y # Y origin of block

fmt Z 2 stck_z # Z origin of block

fmt 2 stck_crnr # Origin corner of stock

 

 

#at pheader

"(MATERIAL -", *stck_matl, ")", e

"(POST - ", spostname, ")", e

"(DATE: ", date,")", e

"(PROGRAM GENNERATED IN MASTERCAM ", *vers_no ,")", e

"(PROGRAMER: ", perg1, sperg1,")", e

"(STOCK SIZE: ", *stck_ht, " ", *stck_wdth, " ", *stck_thck, " ", ")", e

"(STOCK ORIGIN: ", *stck_x, " ", *stck_y, " ", *stck_z, " ", *stknote, ")", e

 

 

#Added

pstock_info # output stock information if requested

 

 

#End of added

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