From 23271bad1fe370b93cb7edac205e1cec51d73732 Mon Sep 17 00:00:00 2001 From: pan261 Date: Tue, 31 Aug 2021 13:34:36 -0400 Subject: [PATCH] Fixed Error message for tools 1 and 2 Made the error message more concise. --- Haas_Gantry_BIDC/Bechtel SR.cps | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Haas_Gantry_BIDC/Bechtel SR.cps b/Haas_Gantry_BIDC/Bechtel SR.cps index 5ec88d3..b9687fb 100644 --- a/Haas_Gantry_BIDC/Bechtel SR.cps +++ b/Haas_Gantry_BIDC/Bechtel SR.cps @@ -855,9 +855,15 @@ function onOpen() { if (tools.getNumberOfTools() > 0) { for (var i = 0; i < tools.getNumberOfTools(); ++i) { var tool = tools.getTool(i); - if (tool.number == 1 || tool.number == 2) { - // throw "Tool numbers 1 and 2 are not available for use." + // Added 8/31/21 | Kevin Pan | pan261 + if (tool.number == 1) { + throw "Tool number 1 is reserved for probing." } + if (tool.number == 2) { + throw "Tool number 2 is not available for use." + } + // pan261 + if (getHaasToolTypeBIDC(tool.type) == HAAS_PROBE) { continue; }