mirror of
https://github.com/teachingtechYT/teachingtechYT.github.io.git
synced 2024-08-30 18:23:26 +00:00
Add nozzle diameter, layer height and feedrates in settings summary
This commit is contained in:
@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user