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 Comments POST ISSUE


Dustin S.
 Share

Recommended Posts

I don't wanna xxxxe up the forum but I want to get this post worked out... we have a big job getting ready to be posted out and the less editing we have to do to the finished code would be great. If youd rather I didn't post multiple let me know ill wait my turn

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

ok problem is i edited the post to only out put the tool number and tool name like so:

code:

( T1 | 1/4 3-FL ISCAR )

( T2 | 1/8SHANK .125DIA .0313CR E.M. )

but it turns out like so

code:

( T6 | 1/8 2-FLUTE E.M. ( T9 | 1/4 X .02R BULL E.M. )

( T3 | 1/4 X 90 DEG SPOTDRILL ( T10 | #38 .1015 JOBBER DRILL ( T11 | 2-56 STI FORMER ( 1/8 2-FLUTE E.M. )

and heres the part of the post i edited

code:

 ptoolcomment    #Comment for tool

tnote = t$, toffnote = tloffno$, tlngnote = tlngno$

if tool_info = 1 | tool_info = 3,

sopen_prn, pstrtool, sclose_prn, e$ # sdelimiter, tnote, sdelimiter, toffnote, sdelimiter, tlngnote, sdelimiter, tldia$, sclose_prn, e$

#PUT SCLOSE_PRN THEN COMMENT TO TURN OFF TOOL GIBERISH

ptooltable #Tooltable output

sopen_prn, *t$, sdelimiter, pstrtool,# sdelimiter, tlngno$,

[if comp_type > 0 & comp_type < 4,# sdelimiter, tloffno$, sdelimiter, scomp_type, sdelimiter, tldia$],

[if xy_stock <> 0 | z_stock <> 0, sdelimiter, xy_stock, sdelimiter, z_stock],

sclose_prn, e$

 

pstrtool #Comment for tool

if strtool$ <> sblank,

[

strtool$ = ucase(strtool$)

*strtool$

]

Link to comment
Share on other sites

check you post u must did something wrong there

here is mine this for 3axis Mill

 

 

# Tool Comment / Manual Entry Section

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

ptoolcomment #Comment for tool

# comment$

pcan, *n$, sopen_prn,*t$, sclose_prn, e$

tnote = t$, toffnote = tloffno$, tlngnote = tlngno$

if tool_info = 1 | tool_info = 3,

sopen_prn, pstrtool, " - ", *tnote, " - ", *toffnote, " - ", *tldia$, sclose_prn, e$

pcan, "G0", "G91", "G28", "Z0", e$

pcan, "G40","G80", "G90", e$

ptooltable #Tooltable output

sopen_prn, *t$," - ",*tldia$, " - ", tlngno$, " - ", pstrtool,

[if comp_type > 0 & comp_type < 4," - ", *tloffno$, " - ", *scomp_type, " - ", *tldia$],

sclose_prn, e$

Link to comment
Share on other sites

Missing brackets likely, look at the logic, you've broken it by commenting out logic and allowing brackets to stay open

 

code:

ptooltable      #Tooltable output

sopen_prn, *t$, sdelimiter, pstrtool,# sdelimiter, tlngno$,

----------->[if comp_type > 0 & comp_type < 4,# sdelimiter, tloffno$, sdelimiter, scomp_type, sdelimiter, tldia$],<-----closed after #

[if xy_stock <> 0 | z_stock <> 0, sdelimiter, xy_stock, sdelimiter, z_stock],

sclose_prn, e$

code:

ptooltable      #Tooltable output

sopen_prn, *t$, sdelimiter, pstrtool, sclose_prn, e$

You might try it like this instead.

Link to comment
Share on other sites

Try this

 

Yours

 

code:

 ptooltable      #Tooltable output      sopen_prn, *t$, sdelimiter, pstrtool,# sdelimiter, tlngno$,        [if comp_type > 0 & comp_type < 4,# sdelimiter, tloffno$, sdelimiter, scomp_type, sdelimiter, tldia$],        [if xy_stock <> 0 | z_stock <> 0, sdelimiter, xy_stock, sdelimiter, z_stock],        sclose_prn, e$ 

Change to this

 

code:

 ptooltable      #Tooltable output      sopen_prn, *t$, sdelimiter, pstrtool, e$# sdelimiter, tlngno$,        [if comp_type > 0 & comp_type < 4, e$# sdelimiter, tloffno$, sdelimiter, scomp_type, sdelimiter, tldia$],        [if xy_stock <> 0 | z_stock <> 0, sdelimiter, xy_stock, sdelimiter, z_stock],        sclose_prn, e$ 

Link to comment
Share on other sites
  • 10 years later...

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