Skip to content

Commit

Permalink
Basic M130 Functinality
Browse files Browse the repository at this point in the history
  • Loading branch information
will1742 committed Jun 14, 2021
1 parent 57b5521 commit 47d2726
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions Haas_Next_Generation/haas vf2.cps
Original file line number Diff line number Diff line change
Expand Up @@ -2332,9 +2332,9 @@ function onSection() {
}
}

var inMapping = takeInput("Y/N?", ['Y', 'N', 'X', 'Y', 'Z']);
writeln(inMapping)

displayMedia("testfile.png");
takeInput("Y/N", ['Y', 'N']);
cancelMedia();
// Modified 06/09/21 | Gavin Williams | will1742
// Issue 000 Init coolant after positioning
setCoolant(tool.coolant);
Expand All @@ -2344,6 +2344,22 @@ function onSection() {
}

// Added 6/14/21 | Gavin Williams | will1742
// Issue 001 Input and Validation
// Displays a file: MP4, MOV, PNG, JPEG. 1920x1080
// Input: Absolute path to file
function displayMedia(file) {
writeln("N" + sequenceNumber + " M130 (" + file + ")");
sequenceNumber += getProperty("sequenceNumberIncrement");
}

// Ends displayed media
function cancelMedia() {
writeln("N" + sequenceNumber + " M131 (End Media)");
sequenceNumber += getProperty("sequenceNumberIncrement");
}

// Added 6/14/21 | Gavin Williams | will1742
// Issue 001 Input and Validation
// Takes input from the user
// Input: string prompt, will be displayed to users
// char array options, capital letters accepted as input
Expand Down

0 comments on commit 47d2726

Please sign in to comment.