Hi, @kuhnjst ,
To change the tool call format from Tool number to Tool name, you can enable Tool as name with in post properties as shown below:
For removing M6 and adding TC(1) modify the post as shown below:
Original:
writeToolBlock("T" + (getProperty("toolAsName") ? "=" + "\"" + (tool.description.toUpperCase()) + "\"" : toolFormat.format(tool.number)), dFormat.format(lengthOffset));
writeBlock(mFormat.format(6));
Modified:
writeToolBlock("T" + (getProperty("toolAsName") ? "=" + "\"" + (tool.description.toUpperCase()) + "\"" : toolFormat.format(tool.number)), dFormat.format(lengthOffset));
// writeBlock(mFormat.format(6));
writeBlock("TC(1)");
For Turning Tools, (D1,D2 etc) is changed as per the definition of compensation offset which is same as tool number, this is available in the post processor tab while selecting tool as shown below:
Please note that for all milling tools it will output D1.
if you need milling tools to output as per compensation offset number (i.e D1,D2, etc) , you will have to replace the post as shown below:
Original:
var lengthOffset = tool.isTurningTool() ? tool.compensationOffset : 1; // optional, use tool.lengthOffset instead
if (lengthOffset > 99) {
error(localize("Length offset out of range."));
return;
}
writeBlock(dOutput.format(lengthOffset));
Modified:
var lengthOffset = tool.isTurningTool() ? tool.compensationOffset : 1; // optional, use tool.lengthOffset instead
if (lengthOffset > 99) {
error(localize("Length offset out of range."));
return;
}
writeBlock(dOutput.format(compensationOffset));
Hope this helps your problem.
Aju Augustine
Technology Consultant