Originally Posted by
Xavior
The issue is where i get something like "( T4 | END MILL 0.750 | H4 | D4 | WEAR COMP | TOOL DIA. - .75 | XY STOCK TO LEAVE - .005 | Z STOCK TO LEAVE - 0. )"
Your post needs editing, you have information in the tool description that is only pertinate to each machining operation.
The info for XY & Z stock should not be in the tool comment, it should be placed with/under the operation comment & the settings can vary for each operation. So when placed with the tool comment it is false information & only read from the 1st operation done with that tool.
my tool comment line is ( your post may have slight differences-cut & paste may not work )
Code:
ptoolcomment #Comment for tool
tnote = t$
toffnote = tloffno$
tlngnote = tlngno$
tldianote = tldia$
spaces$ = 0
"( ", pstrtool, " ", *tnote, " ", *toffnote, " ", *tlngnote, " ", *tldianote, " )", e$
spaces$ = sav_spc
but I also have a Stock comment
Code:
pstock # Comment amount of stock to leave
spaces$=0
if (opcode$=13 | opcode$=14),
[
if opcode$ = 13, "( TOOLPATH - ", *sopnotehst, " )", e$
else, "( TOOLPATH - ", *stoper, " )", e$
if tool_op$ = 132,
[
"( STOCK LEFT ON WALLS = ", *stock_walls, " )", e$
"( STOCK LEFT ON FLOORS = ", *stock_floors, " )", e$
]
else,
[
"( STOCK LEFT ON DRIVE SURFS = ", *stock, " )", e$
if check<>0, "( STOCK LEFT ON CHECK SURFS = ", *check, " )", e$
]
]
spaces$=sav_spc
I can place the pstock call after the operation comments call
-it outputs the offset settings of each operration, even if there is no tool or operation comment to output
ie
Code:
comment$
pcomment3
pstock