Skip to content

Commit

Permalink
Probe EQ Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Aug 19, 2021
1 parent 9a31954 commit e750ce8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Haas_Lathes_BIDC/haas st-20.cps
Original file line number Diff line number Diff line change
Expand Up @@ -560,25 +560,25 @@ function getCompleteTool(holder, tool) {
case TOOL_TURNING_GROOVING:
this.offsetType = "Grooving";
this.probeX = function() {
return holder.x + tool.holderOverallLength*2;
return holder.x + (tool.holderOverallLength*2);
};
this.probeZ = function() {
return holder.z + tool.shankWidth*.5;
return holder.z + (tool.shankWidth*.5);
};

return;
default:
this.offsetType = "General Turning";
this.probeX = function() {
return holder.x + tool.holderOverallLength*2;
return holder.x + (tool.holderOverallLength*2);
};
if (tool.hand == 'L') {
this.probeZ = function() {
return holder.z - tool.cuttingWidth - tool.shankWidth*.5;
return holder.z - tool.cuttingWidth + (tool.shankWidth*.5);
};
} else {
this.probeZ = function() {
return holder.z + tool.cuttingWidth - tool.shankWidth*.5;
return holder.z + tool.cuttingWidth - (tool.shankWidth*.5);
};
}
}
Expand Down Expand Up @@ -618,20 +618,20 @@ function getCompleteTool(holder, tool) {
case TOOL_TURNING_THREADING:
this.offsetType = "Threading";
this.probeX = function() {
return holder.x - (tool.cuttingWidth - tool.shankWidth*.5);
return holder.x - (2*(tool.cuttingWidth) - tool.shankWidth);
};
this.probeZ = function() {
return holder.z + (tool.holderOverallLength + holder.sOffset);
return holder.z + tool.holderOverallLength + holder.sOffset;
};
return;

default:
this.offsetType = "General Turning"
this.probeX = function() {
return holder.x - tool.cuttingWidth*2;
return holder.x - (tool.cuttingWidth*2);
};
this.probeZ = function() {
return holder.z + (tool.holderOverallLength + holder.sOffset);
return holder.z + tool.holderOverallLength + holder.sOffset;
};
}
}
Expand Down

0 comments on commit e750ce8

Please sign in to comment.