Skip to content

Commit

Permalink
Accounted for offset issues after selection
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Jul 9, 2021
1 parent 21d17f9 commit 8d5156a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Haas_Next_Generation/haas vf2.cps
Original file line number Diff line number Diff line change
Expand Up @@ -2602,6 +2602,12 @@ function onSection() {
// Create GOTO cases for Y/N selection, halt if N
getTA("Net Share/Media/TAWarning.png", gotoRef['N'], onSecGotoRef);
writeWords("N" + nFormat.format(gotoRef['Y']), mFormat.format(131), formatComment("End Multimedia"));
writeWords(
conditional(!currentSection.isMultiAxis() || !tcpIsSupported, gFormat.format(43)),
conditional(currentSection.isMultiAxis() && tcpIsSupported, gFormat.format(234)),
zOutput.format(initialPosition.z),
hFormat.format(lengthOffset)
);
writeComment("END VALIDATION SECTION");

// initialize spindle and engage coolant if heights are correct
Expand Down

0 comments on commit 8d5156a

Please sign in to comment.