584,858 active members*
4,989 visitors online*
Register for free
Login

Thread: Post Help

Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2003
    Posts
    201

    Post Help

    I am trying to output code from my post in Mastercam. I am adding broken tool detection into the code so it will the post to output the tool diameter. Does anybody know what outputs the tool dia in a mastercam post. I am usign mastercam 2017.
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  2. #2
    Join Date
    Apr 2019
    Posts
    58

    Re: Post Help

    Tool diametr ou can modify in tool section.

    Youtube you can find how to do rhat

    Išsi?sta naudojantis SM-G960F Tapatalk 4 Lt

  3. #3
    Join Date
    Aug 2015
    Posts
    108

    Re: Post Help

    You have to be more specific.

    There really isn't anything in the post regarding the tool diameter. The toolpaths and geometry for the toolpaths are all set when you program a toolpath with a specific tool in the software. The post doesn't do much regarding that. All its doing is setting planes, taking the toolpath geometry, g & m codes and structuring the program for the specific machine.

  4. #4
    Join Date
    Aug 2019
    Posts
    339

    Re: Post Help

    Quote Originally Posted by ERUS View Post
    You have to be more specific..
    He is looking for the mastercam's variable name(s) for the "operation tool & dia" so he can call those from the code to do a routine tool inspection e.g. after tool change.

  5. #5
    Join Date
    Aug 2015
    Posts
    108

    Re: Post Help

    tldia$



    fmt "TOOL" 4 tnote #Note format
    fmt "D" 4 toffnote #Note format
    fmt "H" 4 tlngnote #Note format #jgp was "L"
    fmt "dia" 1 tldia$ #Note format
    fmt "XY" 1 xy_stock #Note format
    fmt "Z" 1 z_stock #Note format




    # Tool Comment / Manual Entry Section
    # --------------------------------------------------------------------------
    ptoolcomment #Comment for tool
    tnote = t$, toffnote = tloffno$, tlngnote = tlngno$
    if tool_info = 1 | tool_info = 3,
    sopen_prn, pstrtool, sdelimiter, *tnote, sdelimiter, *toffnote, sdelimiter, *tlngnote, sdelimiter, *tldia$, sclose_prn, e$

    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$
    xy_stock = 0 #Reset stock to leave values
    z_stock = 0 #Reset stock to leave values

    pstrtool #Comment for tool
    if strtool$ <> sblank,
    [
    strtool$ = ucase(strtool$)
    *strtool$
    ]

  6. #6
    Join Date
    Aug 2019
    Posts
    339

    Re: Post Help

    Top man!

Similar Threads

  1. Replies: 3
    Last Post: 11-30-2016, 07:28 PM
  2. Replies: 0
    Last Post: 07-24-2016, 08:43 AM
  3. Special post for presentation! Laser manufacturers/dealers post their contacts here!
    By Litografa in forum Laser Engraving / Cutting Machine General Topics
    Replies: 1
    Last Post: 06-22-2010, 07:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •