Skip to content

Commit

Permalink
Fixed C Axis
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Aug 20, 2021
1 parent 4caa3d8 commit d86621d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Haas_Lathes_BIDC/Bechtel ST-20.cps
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ function getCode(code) {
case "TAILSTOCK_OFF":
machineState.tailstockIsActive = false;
return mFormat.format(22);
/*
case "ENGAGE_C_AXIS":
if (currentSection.spindle == SPINDLE_PRIMARY) {
machineState.cAxisIsEngaged = true;
Expand All @@ -664,6 +665,7 @@ function getCode(code) {
} else {
return "";
}
*/
case "POLAR_INTERPOLATION_ON":
return gPolarModal.format(112);
case "POLAR_INTERPOLATION_OFF":
Expand Down Expand Up @@ -1360,8 +1362,7 @@ function onOpen() {
var toolPosition = toolFormat.format(tool.number * 100 + compensationOffset % 100);
writeBlock("T" + toolFormat.format((tool.number - 3) >= 1 ? tool.number - 3 : tool.number + 9), mFormat.format(6));
writeBlock(mFormat.format(0));
writeComment(tool.description);
writeComment("LOAD TOOL " + tool.number);
writeComment("LOAD T" + tool.number + ": " + tool.description);
writeToolMeasureBlockBIDC(tool);
}
}
Expand Down Expand Up @@ -2199,6 +2200,7 @@ function onSection() {
*/
}

/*
if (!machineState.stockTransferIsActive) {
if (machineState.isTurningOperation || machineState.axialCenterDrilling) {
skipBlock = !insertToolCall && (machineState.cAxisIsEngaged != undefined);
Expand All @@ -2214,6 +2216,7 @@ function onSection() {
}
}
}
*/

// command stop for manual tool change, useful for quick change live tools
if ((insertToolCall || operationNeedsSafeStart) && tool.manualToolChange) {
Expand Down Expand Up @@ -4452,7 +4455,7 @@ function onClose() {
if (!getProperty("optimizeCAxisSelect")) {
cAxisEngageModal.reset();
}
writeBlock(getCode("DISENGAGE_C_AXIS"));
// writeBlock(getCode("DISENGAGE_C_AXIS"));

if (ejectRoutine) {
ejectPart();
Expand Down

0 comments on commit d86621d

Please sign in to comment.