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.
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)
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
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.
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$
]
Top man!