Skip to content

Commit

Permalink
Removed Thread Radius. Finished Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Aug 23, 2021
1 parent 54fad1c commit 8200f2e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Haas_Lathes_BIDC/Bechtel ST-20Y.cps
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ function getCompleteTool(holder, tool) {
}

var defaultZ = function() {
return holder.z + tool.holderOverallLength;
return holder.z + tool.holderOverallLength + holder.sOffset;
}

if (getHaasToolTypeBIDC(tool.type) == HAAS_DRILL) {
Expand Down Expand Up @@ -640,8 +640,13 @@ function getCompleteTool(holder, tool) {
this.probeX = function() {
return holder.x - (tool.cuttingWidth - (.5*tool.shankWidth));
}
this.probeZ = defaultZ;
return;
}

this.probeX = defaultX;
this.probeZ = defaultZ;

} else if (holder == KM40R) {
this.probeX = function() {
return holder.x + (tool.getBodyLength() + tool.getHolderLength())*2
Expand Down Expand Up @@ -1233,19 +1238,13 @@ function writeToolMeasureBlockBIDC(tool) {
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));
}

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 (measureTool.offsetType == "Indexible Drill") {

if (typeof measureTool.machineX == 'function') {
writeBlock(gFormat.format(10), "L10 P" + tool.number, xOffset.format(measureTool.machineX()));
}
writeln("");
Expand Down

0 comments on commit 8200f2e

Please sign in to comment.