Skip to content

Commit

Permalink
Moved Tool Change Call
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Jul 19, 2021
1 parent 25de4df commit c5eb21e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Haas_Next_Generation/Bechtel DT.cps
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ function writeToolMeasureBlock(tool, preMeasure) {
comment
);
} else { // use Macro P9995 to measure tools
writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool
// writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool
setMacro(1600 + tool.number, tool.numberOfFlutes, "Number of Flutes");
var probeType = getHaasProbingTypeBIDC(tool, false);
writeFunction(
Expand Down Expand Up @@ -1394,6 +1394,7 @@ function onOpen() {
writeComment(tool.description);
writeComment(comment);
if (getProperty("measureToolsAtStart")) {
writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6)); //Changes Tool
displayMedia("Net Share/Media/toolLoad" + tool.number + ".jpg");
writeBlock(mFormat.format(0), formatComment("Load Tool")); //Pause until operator loads tool
writeToolMeasureBlock(tool, true);
Expand Down
3 changes: 2 additions & 1 deletion Haas_Next_Generation/Bechtel VF.cps
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ function writeToolMeasureBlock(tool, preMeasure) {
comment
);
} else { // use Macro P9995 to measure tools
writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool
// writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool
setMacro(1600 + tool.number, tool.numberOfFlutes, "Number of Flutes");
var probeType = getHaasProbingTypeBIDC(tool, false);
writeFunction(
Expand Down Expand Up @@ -1394,6 +1394,7 @@ function onOpen() {
writeComment(tool.description);
writeComment(comment);
if (getProperty("measureToolsAtStart")) {
writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6)); //Changes Tool
displayMedia("Net Share/Media/toolLoad" + tool.number + ".jpg");
writeBlock(mFormat.format(0), formatComment("Load Tool")); //Pause until operator loads tool
writeToolMeasureBlock(tool, true);
Expand Down

0 comments on commit c5eb21e

Please sign in to comment.