Add nozzle diameter, layer height and feedrates in settings summary

This commit is contained in:
Chris Toxz
2021-09-10 20:13:16 +02:00
parent aa0dba2726
commit 60f463aefc

View File

@ -590,6 +590,15 @@ function outputSettings(formName) {
string += " form\n_________________________________________________________________________\n\n";
string += "G-Code originally generated by Simplify3D(R) Version 4.1.2\nThis calibration test gcode modified by the Teaching Tech Calibration website: https://teachingtechyt.github.io/calibration.html\n";
string += "All changes are marked in the gcode with 'custom' at the end of each line. Open the gcode in a text editor and search for this to your check inputs if needed.\n\n";
// Get selected value
var nozzleLayer = formName.nozzleLayer.value;
// Split Nozzle/Layer value
const nozzleLayerArr = nozzleLayer.split("_");
// Parse both values
string += "\nNozzle diameter: " + nozzleLayerArr[0]/100+" mm";
string += "\nLayer height: " + nozzleLayerArr[1]/100+" mm\n";
if(formName.psuon.checked == true) {
string += "Turn on PSU with M80 active\n"
}
@ -609,6 +618,15 @@ function outputSettings(formName) {
string += ", "+formName.beddia.value+" mm diameter";
}
}
if(formName.baseFeedrate != undefined){
string += "\n\nBase feedrate: "+formName.baseFeedrate.value+" mm/sec";
string += "\nPerimeters: "+document.querySelector( ".perimFeed" ).innerText+" mm/sec";
string += "\nSolid infill: "+document.querySelector( ".solidFeed" ).innerText+" mm/sec";
string += "\nTravel moves: "+document.querySelector( ".travelFeed" ).innerText+" mm/sec";
string += "\nFirst layer: "+document.querySelector( ".firstFeed" ).innerText+" mm/sec";
}
if(formName.name == "firstlayerForm") {
string += "\nExtra margin from edge: "+formName.margin.value+" mm";
}