From 47da7f6c8d4e1cea4a59c23b9daae48b0387b2d8 Mon Sep 17 00:00:00 2001 From: will1742 Date: Mon, 23 Aug 2021 12:13:15 -0400 Subject: [PATCH] - Threading Radius, + Stock Load --- Haas_Lathes_BIDC/Bechtel ST-20.cps | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Haas_Lathes_BIDC/Bechtel ST-20.cps b/Haas_Lathes_BIDC/Bechtel ST-20.cps index 17b2596..d2a5fd1 100644 --- a/Haas_Lathes_BIDC/Bechtel ST-20.cps +++ b/Haas_Lathes_BIDC/Bechtel ST-20.cps @@ -1193,27 +1193,29 @@ function writeToolMeasureBlockBIDC(tool) { return; } - writeBlock(gFormat.format(10), "L10 P" + tool.number, xOffset.format(measureTool.probeX())); + writeBlock(gFormat.format(10), "L10 P" + tool.number, xOffset.format(measureTool.probeX()));'' writeBlock(gFormat.format(10), "L10 P" + tool.number, zOffset.format(measureTool.probeZ())); if(tool.noseRadius != 0 || tool.cornerRadius != 0) { writeBlock(gFormat.format(10), "L10 P" + tool.number, rOffset.format(tool.cornerRadius != 0 ? tool.cornerRadius : tool.noseRadius)); } - if (tool.type == TOOL_TURNING_THREADING) { - writeBlock(gFormat.format(10), "L10 P" + tool.number, rOffset.format(tool.threadPitch*2)); - } + // if (tool.type == TOOL_TURNING_THREADING) { + // writeBlock(gFormat.format(10), "L10 P" + tool.number, rOffset.format(tool.threadPitch*2)); + // } writeBlock("T" + toolFormat.format(tool.number * 100 + compensationOffset % 100)); writeComment("PROBE: " + measureTool.offsetType + ", " + probeType.name); writeBlock(mFormat.format(104)); writeBlock(gFormat.format(212), "H" + probeType.num); writeBlock(mFormat.format(105)); - if (tool.type == TOOL_TURNING_THREADING) { - writeBlock(gFormat.format(10), "L10 P" + tool.number, rOffset.format(0)); - } + + // if (tool.type == TOOL_TURNING_THREADING) { + // writeBlock(gFormat.format(10), "L10 P" + tool.number, rOffset.format(0)); + // } if (measureTool.offsetType == "Indexible Drill") { writeBlock(gFormat.format(10), "L10 P" + tool.number, xOffset.format(measureTool.machineX())); } + writeln(""); } @@ -1412,6 +1414,10 @@ function onOpen() { writeln("N1 (START MAIN PROGRAM)"); } + writeBlock(mFormat.format(0)); + writeComment("LOAD STOCK"); + writeln(""); + // absolute coordinates and feed per min writeBlock(getCode("FEED_MODE_UNIT_MIN"), gPlaneModal.format(18));