Skip to content

Commit

Permalink
Altered Signs on Part Loading
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Jul 21, 2021
1 parent ac60f44 commit 63b7791
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Haas_Next_Generation/Bechtel DT.cps
Original file line number Diff line number Diff line change
Expand Up @@ -2277,9 +2277,9 @@ function onSection() {
writeln("");
writeComment("STOCK PREP");
var Stock_X_55 = (stockUpperX - stockLowerX)/2;
writeln(macroFormat.format(100) + "=[" + (Stock_X_55.toFixed(4) + "-" + macroFormat.format(5241)) + "]");
writeWords("IF [" + macroFormat.format(100) + " LT 0] THEN " + macroFormat.format(100) + "=0");
writeWords("IF [" + macroFormat.format(100) + " GT " + X_TRAVEL_LIMIT + "] THEN " + macroFormat.format(100) + "=" + X_TRAVEL_LIMIT);
writeln(macroFormat.format(100) + "=[[" + (Stock_X_55.toFixed(4) + "-" + macroFormat.format(5241)) + "]*-1.]");
writeWords("IF [" + macroFormat.format(100) + " GT 0.] THEN " + macroFormat.format(100) + "=0.");
writeWords("IF [" + macroFormat.format(100) + " LT " + (X_TRAVEL_LIMIT*-1) + "." + "] THEN " + macroFormat.format(100) + "=" + (X_TRAVEL_LIMIT*-1) + ".");
writeBlock(gFormat.format(53), "X" + macroFormat.format(100), yOutput.format(0));
displayMedia("loadStock.jpg");
writeBlock(mFormat.format(0));
Expand Down
6 changes: 3 additions & 3 deletions Haas_Next_Generation/Bechtel VF2.cps
Original file line number Diff line number Diff line change
Expand Up @@ -2277,9 +2277,9 @@ function onSection() {
writeln("");
writeComment("STOCK PREP");
var Stock_X_55 = (stockUpperX - stockLowerX)/2;
writeln(macroFormat.format(100) + "=[" + (Stock_X_55.toFixed(4) + "-" + macroFormat.format(5241)) + "]");
writeWords("IF [" + macroFormat.format(100) + " LT 0] THEN " + macroFormat.format(100) + "=0");
writeWords("IF [" + macroFormat.format(100) + " GT " + X_TRAVEL_LIMIT + "] THEN " + macroFormat.format(100) + "=" + X_TRAVEL_LIMIT);
writeln(macroFormat.format(100) + "=[[" + (Stock_X_55.toFixed(4) + "-" + macroFormat.format(5241)) + "]*-1.]");
writeWords("IF [" + macroFormat.format(100) + " GT 0.] THEN " + macroFormat.format(100) + "=0.");
writeWords("IF [" + macroFormat.format(100) + " LT " + (X_TRAVEL_LIMIT*-1) + "." + "] THEN " + macroFormat.format(100) + "=" + (X_TRAVEL_LIMIT*-1) + ".");
writeBlock(gFormat.format(53), "X" + macroFormat.format(100), yOutput.format(0));
displayMedia("loadStock.jpg");
writeBlock(mFormat.format(0));
Expand Down
6 changes: 3 additions & 3 deletions Haas_Next_Generation/Bechtel VF4.cps
Original file line number Diff line number Diff line change
Expand Up @@ -2277,9 +2277,9 @@ function onSection() {
writeln("");
writeComment("STOCK PREP");
var Stock_X_55 = (stockUpperX - stockLowerX)/2;
writeln(macroFormat.format(100) + "=[" + (Stock_X_55.toFixed(4) + "-" + macroFormat.format(5241)) + "]");
writeWords("IF [" + macroFormat.format(100) + " LT 0] THEN " + macroFormat.format(100) + "=0");
writeWords("IF [" + macroFormat.format(100) + " GT " + X_TRAVEL_LIMIT + "] THEN " + macroFormat.format(100) + "=" + X_TRAVEL_LIMIT);
writeln(macroFormat.format(100) + "=[[" + (Stock_X_55.toFixed(4) + "-" + macroFormat.format(5241)) + "]*-1.]");
writeWords("IF [" + macroFormat.format(100) + " GT 0.] THEN " + macroFormat.format(100) + "=0.");
writeWords("IF [" + macroFormat.format(100) + " LT " + (X_TRAVEL_LIMIT*-1) + "." + "] THEN " + macroFormat.format(100) + "=" + (X_TRAVEL_LIMIT*-1) + ".");
writeBlock(gFormat.format(53), "X" + macroFormat.format(100), yOutput.format(0));
displayMedia("loadStock.jpg");
writeBlock(mFormat.format(0));
Expand Down

0 comments on commit 63b7791

Please sign in to comment.