From a6c893d85a24c892cb09cfc775d3931d041f5728 Mon Sep 17 00:00:00 2001 From: will1742 Date: Thu, 12 Aug 2021 16:40:51 -0400 Subject: [PATCH] Retract and Diam Set Fix --- Haas_Mills_BIDC/Bechtel DT.cps | 13 ++++++++----- Haas_Mills_BIDC/Bechtel VF2.cps | 13 ++++++++----- Haas_Mills_BIDC/Bechtel VF4.cps | 15 +++++++++------ 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/Haas_Mills_BIDC/Bechtel DT.cps b/Haas_Mills_BIDC/Bechtel DT.cps index 5d11a6e..1a3bd87 100644 --- a/Haas_Mills_BIDC/Bechtel DT.cps +++ b/Haas_Mills_BIDC/Bechtel DT.cps @@ -415,7 +415,7 @@ properties = {/* value: "", scope: "post" }, - toolHeightValidation: { + toolLengthValidation: { title: "Tool Length Validation", description: "Length validation. By turning this off, you accept responsibility for any resulting crashes.", group: 99, @@ -459,7 +459,7 @@ staticProperties = { homePositionCenter: false, optionallyCycleToolsAtStart: false, measureToolsAtStart: true, - forceHomeOnIndexing: true, + forceHomeOnIndexing: false, toolBreakageTolerance: 0.1, fastToolChange: false, useG95forTapping: true, @@ -906,6 +906,7 @@ function writeToolMeasureBlock(tool, preMeasure) { } else { // use Macro P9995 to measure tools // writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool setMacro(1600 + tool.number, tool.numberOfFlutes, "Number of Flutes"); + setMacro(2400 + tool.number, xyzFormat.format(tool.diameter), "Tool Diameter"); var probeType = getHaasProbingTypeBIDC(tool, false); writeFunction( gFormat.format(65), @@ -2748,7 +2749,7 @@ function onSection() { } } - if (getProperty("toolHeightValidation")) { + if (getProperty("toolLengthValidation")) { writeComment("TOOL VALIDATION"); // Added 06/15/21 | Gavin Williams | will1742 // Verifies tool-stock distance. Post fails if tool fails clearance standards @@ -4474,8 +4475,8 @@ function writeProbingToolpathInformation(cycleDepth) { } function onClose() { + writeRetract(Z); - if (isDPRNTopen) { writeln("DPRNT[END]"); writeBlock("PCLOS"); @@ -4499,6 +4500,9 @@ function onClose() { if (tools.getNumberOfTools() > 0) { for (var i = 0; i < tools.getNumberOfTools(); ++i) { var tool = tools.getTool(i); + if (tool.number == 20 || tool.number == 19) { + continue; + } writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool displayMedia("removeTool" + tool.number + ".jpg"); writeBlock(mFormat.format(0)); @@ -4514,7 +4518,6 @@ function onClose() { writeln(""); writeComment("CLEAN MACHINE"); - writeRetract(Z); gotoWithMessage(X_TRAVEL_LIMIT/2, 0, "airGunClean.jpg"); displayMedia("floodCoolantOff.jpg") writeBlock(mFormat.format(0)); diff --git a/Haas_Mills_BIDC/Bechtel VF2.cps b/Haas_Mills_BIDC/Bechtel VF2.cps index 9fbe38d..8a3b17b 100644 --- a/Haas_Mills_BIDC/Bechtel VF2.cps +++ b/Haas_Mills_BIDC/Bechtel VF2.cps @@ -415,7 +415,7 @@ properties = {/* value: "", scope: "post" }, - toolHeightValidation: { + toolLengthValidation: { title: "Tool Length Validation", description: "Length validation. By turning this off, you accept responsibility for any resulting crashes.", group: 99, @@ -459,7 +459,7 @@ staticProperties = { homePositionCenter: false, optionallyCycleToolsAtStart: false, measureToolsAtStart: true, - forceHomeOnIndexing: true, + forceHomeOnIndexing: false, toolBreakageTolerance: 0.1, fastToolChange: false, useG95forTapping: true, @@ -906,6 +906,7 @@ function writeToolMeasureBlock(tool, preMeasure) { } else { // use Macro P9995 to measure tools // writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool setMacro(1600 + tool.number, tool.numberOfFlutes, "Number of Flutes"); + setMacro(2400 + tool.number, xyzFormat.format(tool.diameter), "Tool Diameter"); var probeType = getHaasProbingTypeBIDC(tool, false); writeFunction( gFormat.format(65), @@ -2748,7 +2749,7 @@ function onSection() { } } - if (getProperty("toolHeightValidation")) { + if (getProperty("toolLengthValidation")) { writeComment("TOOL VALIDATION"); // Added 06/15/21 | Gavin Williams | will1742 // Verifies tool-stock distance. Post fails if tool fails clearance standards @@ -4474,8 +4475,8 @@ function writeProbingToolpathInformation(cycleDepth) { } function onClose() { + writeRetract(Z); - if (isDPRNTopen) { writeln("DPRNT[END]"); writeBlock("PCLOS"); @@ -4499,6 +4500,9 @@ function onClose() { if (tools.getNumberOfTools() > 0) { for (var i = 0; i < tools.getNumberOfTools(); ++i) { var tool = tools.getTool(i); + if (tool.number == 20 || tool.number == 19) { + continue; + } writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool displayMedia("removeTool" + tool.number + ".jpg"); writeBlock(mFormat.format(0)); @@ -4514,7 +4518,6 @@ function onClose() { writeln(""); writeComment("CLEAN MACHINE"); - writeRetract(Z); gotoWithMessage(X_TRAVEL_LIMIT/2, 0, "airGunClean.jpg"); displayMedia("floodCoolantOff.jpg") writeBlock(mFormat.format(0)); diff --git a/Haas_Mills_BIDC/Bechtel VF4.cps b/Haas_Mills_BIDC/Bechtel VF4.cps index 20f8f61..29a6290 100644 --- a/Haas_Mills_BIDC/Bechtel VF4.cps +++ b/Haas_Mills_BIDC/Bechtel VF4.cps @@ -82,7 +82,7 @@ properties = {/* {title: "Yes", id: "true"}, {title: "Reversed", id: "reversed"} ], - value: "reversed", + value: "false", scope: "post" }, hasBAxis: { @@ -108,7 +108,7 @@ properties = {/* {title: "Yes", id: "true"}, {title: "Reversed", id: "reversed"} ], - value: "true", + value: "false", scope: "post" },/* throughSpindle: { @@ -415,7 +415,7 @@ properties = {/* value: "", scope: "post" }, - toolHeightValidation: { + toolLengthValidation: { title: "Tool Length Validation", description: "Length validation. By turning this off, you accept responsibility for any resulting crashes.", group: 99, @@ -906,6 +906,7 @@ function writeToolMeasureBlock(tool, preMeasure) { } else { // use Macro P9995 to measure tools // writeFunction("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool setMacro(1600 + tool.number, tool.numberOfFlutes, "Number of Flutes"); + setMacro(2400 + tool.number, xyzFormat.format(tool.diameter), "Tool Diameter"); var probeType = getHaasProbingTypeBIDC(tool, false); writeFunction( gFormat.format(65), @@ -2753,7 +2754,7 @@ function onSection() { } } - if (getProperty("toolHeightValidation")) { + if (getProperty("toolLengthValidation")) { writeComment("TOOL VALIDATION"); // Added 06/15/21 | Gavin Williams | will1742 // Verifies tool-stock distance. Post fails if tool fails clearance standards @@ -4479,7 +4480,7 @@ function writeProbingToolpathInformation(cycleDepth) { } function onClose() { - + writeRetract(Z); if (isDPRNTopen) { writeln("DPRNT[END]"); @@ -4504,6 +4505,9 @@ function onClose() { if (tools.getNumberOfTools() > 0) { for (var i = 0; i < tools.getNumberOfTools(); ++i) { var tool = tools.getTool(i); + if (tool.number == 20 || tool.number == 19) { + continue; + } writeBlock("T" + toolFormat.format(tool.number), mFormat.format(6)); // get tool displayMedia("removeTool" + tool.number + ".jpg"); writeBlock(mFormat.format(0)); @@ -4519,7 +4523,6 @@ function onClose() { writeln(""); writeComment("CLEAN MACHINE"); - writeRetract(Z); gotoWithMessage(X_TRAVEL_LIMIT/2, 0, "airGunClean.jpg"); displayMedia("floodCoolantOff.jpg") writeBlock(mFormat.format(0));