Skip to content

Commit

Permalink
Merge pull request #12 from Bechtel-Innovation-Design-Center/Development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
will1742 authored Aug 31, 2021
2 parents 545ecfa + 98db18b commit 24f4a5c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Haas_Gantry_BIDC/Bechtel SR.cps
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 24f4a5c

Please sign in to comment.