Need Help! Post Help


Results 1 to 6 of 6

Thread: Post Help

  1. #1
    Member JIMMY's Avatar
    Join Date
    Mar 2003
    Location
    united states
    Posts
    201
    Downloads
    0
    Uploads
    0

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

    Similar Threads:
    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  2. #2
    Member cnc-exit's Avatar
    Join Date
    Apr 2019
    Posts
    58
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Aug 2015
    Posts
    108
    Downloads
    0
    Uploads
    0

    Default 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
    Member Mecanix's Avatar
    Join Date
    Aug 2019
    Posts
    339
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Aug 2015
    Posts
    108
    Downloads
    0
    Uploads
    0

    Default 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
    Member Mecanix's Avatar
    Join Date
    Aug 2019
    Posts
    339
    Downloads
    0
    Uploads
    0

    Default Re: Post Help

    Top man!



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Post Help

Post Help