From d86621dd97501239725d98ba054979bf52a26df6 Mon Sep 17 00:00:00 2001 From: "Williams, Gavin J" Date: Fri, 20 Aug 2021 12:44:45 -0400 Subject: [PATCH] Fixed C Axis --- Haas_Lathes_BIDC/Bechtel ST-20.cps | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Haas_Lathes_BIDC/Bechtel ST-20.cps b/Haas_Lathes_BIDC/Bechtel ST-20.cps index 7d6a8f4..9e39a15 100644 --- a/Haas_Lathes_BIDC/Bechtel ST-20.cps +++ b/Haas_Lathes_BIDC/Bechtel ST-20.cps @@ -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; @@ -664,6 +665,7 @@ function getCode(code) { } else { return ""; } + */ case "POLAR_INTERPOLATION_ON": return gPolarModal.format(112); case "POLAR_INTERPOLATION_OFF": @@ -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); } } @@ -2199,6 +2200,7 @@ function onSection() { */ } + /* if (!machineState.stockTransferIsActive) { if (machineState.isTurningOperation || machineState.axialCenterDrilling) { skipBlock = !insertToolCall && (machineState.cAxisIsEngaged != undefined); @@ -2214,6 +2216,7 @@ function onSection() { } } } + */ // command stop for manual tool change, useful for quick change live tools if ((insertToolCall || operationNeedsSafeStart) && tool.manualToolChange) { @@ -4452,7 +4455,7 @@ function onClose() { if (!getProperty("optimizeCAxisSelect")) { cAxisEngageModal.reset(); } - writeBlock(getCode("DISENGAGE_C_AXIS")); + // writeBlock(getCode("DISENGAGE_C_AXIS")); if (ejectRoutine) { ejectPart();