Skip to content

Commit

Permalink
Finalized Milling
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Oct 5, 2021
1 parent 128e05c commit 5fbdb70
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions Haas_Mills_BIDC/Bechtel Milling.cps
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ properties = {/*
useTCPC: {
title: "Use TCPC programming",
description: "The control supports Tool Center Point Control programming.",
group: 1,
type: "boolean",
value: true,
scope: "post"
Expand Down Expand Up @@ -495,7 +494,7 @@ staticProperties = {
hasAAxis: "false",
hasBAxis: "false",
hasCAxis: "false",
postVersion: "BIDC-NGC.A10.A21"
postVersion: "BIDC-NGC.G10.K21"
};

const HAAS_DRILL = 1;
Expand Down Expand Up @@ -4547,24 +4546,24 @@ function onClose() {
}
}

function gotoWithMessage(xLoc, yLoc, fileName, comment) {
displayMedia(fileName, false, comment);
writeBlock(gFormat.format(53), xOutput.format(xLoc), yOutput.format(yLoc));
}
// function gotoWithMessage(xLoc, yLoc, fileName, comment) {
// displayMedia(fileName, false, comment);
// writeBlock(gFormat.format(53), xOutput.format(xLoc), yOutput.format(yLoc));
// }

writeln("");
writeComment("CLEAN MACHINE");
gotoWithMessage(-machineConfiguration.getPartMaximumX()/2, 0, "airGunClean.jpg", "Clean with air gun");
displayMedia("floodCoolantOff.jpg", false, "Turn off flood coolant");
setCoolant(COOLANT_FLOOD);
gotoWithMessage(0, -machineConfiguration.getPartMaximumY(), "sprayLowerRight.jpg", "Spray lower right");
gotoWithMessage(-machineConfiguration.getPartMaximumX(), -machineConfiguration.getPartMaximumY(), "sprayLowerLeft.jpg", "Spray lower left");
gotoWithMessage(0, 0, "sprayUpperRight.jpg", "Spray upper right")
gotoWithMessage(-machineConfiguration.getPartMaximumX(), 0, "sprayUpperLeft.jpg", "Spray upper left")
onCommand(COMMAND_COOLANT_OFF);
onCommand(COMMAND_START_CHIP_TRANSPORT);
gotoWithMessage(-machineConfiguration.getPartMaximumX()/2, -machineConfiguration.getPartMaximumY(), "sweepChips.jpg", "Sweep chips");
onCommand(COMMAND_STOP_CHIP_TRANSPORT);
// writeln("");
// writeComment("CLEAN MACHINE");
// gotoWithMessage(-machineConfiguration.getPartMaximumX()/2, 0, "airGunClean.jpg", "Clean with air gun");
// displayMedia("floodCoolantOff.jpg", false, "Turn off flood coolant");
// setCoolant(COOLANT_FLOOD);
// gotoWithMessage(0, -machineConfiguration.getPartMaximumY(), "sprayLowerRight.jpg", "Spray lower right");
// gotoWithMessage(-machineConfiguration.getPartMaximumX(), -machineConfiguration.getPartMaximumY(), "sprayLowerLeft.jpg", "Spray lower left");
// gotoWithMessage(0, 0, "sprayUpperRight.jpg", "Spray upper right")
// gotoWithMessage(-machineConfiguration.getPartMaximumX(), 0, "sprayUpperLeft.jpg", "Spray upper left")
// onCommand(COMMAND_COOLANT_OFF);
// onCommand(COMMAND_START_CHIP_TRANSPORT);
// gotoWithMessage(-machineConfiguration.getPartMaximumX()/2, -machineConfiguration.getPartMaximumY(), "sweepChips.jpg", "Sweep chips");
// onCommand(COMMAND_STOP_CHIP_TRANSPORT);

writeln("");
// retract
Expand Down

0 comments on commit 5fbdb70

Please sign in to comment.