Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Aug 24, 2021
1 parent aedd7c9 commit 28d641e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions Haas_Lathes_BIDC/Bechtel ST-20.cps
Original file line number Diff line number Diff line change
Expand Up @@ -574,23 +574,24 @@ function getCompleteTool(holder, tool) {

if (holder == WHOLD) {
this.probeX = function() {
return holder.x + (tool.holderOverallLength*2);
return holder.x + tool.holderOverallLength*2;
};

if (tool.type == TOOL_TURNING_GROOVING) {
this.offsetType = "Grooving";
this.probeZ = function() {
return holder.z + (tool.shankWidth*.5);
return holder.z + (.5*tool.shankWidth);
};
} else {
var lhZ = function() {
return holder.z - tool.cuttingWidth + (tool.shankWidth*.5);
var leftHandZ = function() {
return holder.z - tool.cuttingWidth + (.5*tool.shankWidth);
};
var rhZ = function() {
return holder.z + tool.cuttingWidth - (tool.shankWidth*.5);
var rightHandZ = function() {
return holder.z + tool.cuttingWidth - (.5*tool.shankWidth);
};

this.offsetType = (tool.hand =='L') ? "General Turning, L" : "General Turning, R";
this.probeZ = (tool.hand =='L') ? lhZ : rhZ;
this.probeZ = (tool.hand == 'L') ? leftHandZ : rightHandZ;
}
} else {
var defaultX = function() {
Expand Down
8 changes: 4 additions & 4 deletions Haas_Lathes_BIDC/Bechtel ST-20Y.cps
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ function getCompleteTool(holder, tool) {

if (holder == KM50R || holder == WBLOCK) {
this.probeX = function() {
return holder.x = tool.holderOverallLength*2;
return holder.x + tool.holderOverallLength*2;
};

if (tool.type == TOOL_TURNING_GROOVING) {
Expand Down Expand Up @@ -631,15 +631,15 @@ function getCompleteTool(holder, tool) {
this.probeZ = (tool.numberOfFlutes != 1) ? stanProbeZ : indexProbeZ;
this.probeX = (tool.numberOfFlutes != 1) ? stanProbeX : indexProbeX;
this.machineX = function() {
return holder.z;
return holder.x;
};
return;
}

if (tool.type == TOOL_TURNING_THREADING) {
this.offsetType = "Threading"
this.offsetType = "Threading";
this.probeX = function() {
return holder.x - (tool.cuttingWidth - (.5*tool.shankWidth));
return holder.x - (2*tool.cuttingWidth - tool.shankWidth);
};
this.probeZ = defaultZ;
return;
Expand Down

0 comments on commit 28d641e

Please sign in to comment.