From 79e0eb1c7b4b447b37fc2bedaa66ae2f65f7f713 Mon Sep 17 00:00:00 2001 From: lawgicau Date: Thu, 20 Aug 2020 12:05:25 +1000 Subject: [PATCH] Add prime speed to retraction tuning --- calibration.html | 33 +++++++++++++++++++++++---------- css/styles.css | 2 +- js/gcodeprocessing.js | 19 +++++++++++++------ 3 files changed, 37 insertions(+), 17 deletions(-) diff --git a/calibration.html b/calibration.html index ba3f433..b1d5177 100644 --- a/calibration.html +++ b/calibration.html @@ -462,7 +462,7 @@

Retraction Tuning

Aim:
-

To set the correct parameters concerning retraction during 3D printing, including retraction distance, speed, extra restart distance and z hop.

+

To set the correct parameters concerning retraction during 3D printing, including retraction distance, speed, extra restart distance, prime speed and z hop.

When required:

Initial calibration, any time the hot end or extruder is changed, when trying a new type/brand of filament.

Tools:
@@ -475,7 +475,7 @@
Special note:

Temperature tuning and retraction tuning are related to each other. You could do them in either order, and it may be necessary to tune back and forth to reach an ideal result. A higher nozzle temperature will promote more oozing and stringing, whereas a lower temperature will reduce oozing and stringing.

-

Besides hot end temperature, there are four parameters we will be tuning relating to retraction. In the table is a description of each as well as where the setting is found in the most popular slicers.

+

Besides hot end temperature, there are five parameters we will be tuning relating to retraction. In the table is a description of each as well as where the setting is found in the most popular slicers. By far the most important is retraction distance.

@@ -487,25 +487,31 @@ - + - + - + - + + + + + + + @@ -516,7 +522,7 @@
Other factors beyond the scope of this test:
- - - + + + + @@ -583,6 +590,7 @@ + @@ -590,6 +598,7 @@ + @@ -597,6 +606,7 @@ + @@ -604,6 +614,7 @@ + @@ -611,6 +622,7 @@ + @@ -618,6 +630,7 @@ + diff --git a/css/styles.css b/css/styles.css index 7240e3d..84e11e7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -126,7 +126,7 @@ th { } td { - padding: 20px; + padding: 10px; border: 1px solid grey; } diff --git a/js/gcodeprocessing.js b/js/gcodeprocessing.js index e34ef0d..fff5e48 100644 --- a/js/gcodeprocessing.js +++ b/js/gcodeprocessing.js @@ -186,26 +186,32 @@ function processRetraction(){ var a1 = document.retractionForm.ret_a1.value; var a2 = document.retractionForm.ret_a2.value*60; var a3 = document.retractionForm.ret_a3.value; + var a4 = document.retractionForm.ret_a4.value*60; var a5 = document.retractionForm.ret_a5.value; var b1 = document.retractionForm.ret_b1.value; var b2 = document.retractionForm.ret_b2.value*60; var b3 = document.retractionForm.ret_b3.value; + var b4 = document.retractionForm.ret_b4.value*60; var b5 = document.retractionForm.ret_b5.value; var c1 = document.retractionForm.ret_c1.value; var c2 = document.retractionForm.ret_c2.value*60; var c3 = document.retractionForm.ret_c3.value; + var c4 = document.retractionForm.ret_c4.value*60; var c5 = document.retractionForm.ret_c5.value; var d1 = document.retractionForm.ret_d1.value; var d2 = document.retractionForm.ret_d2.value*60; var d3 = document.retractionForm.ret_d3.value; + var d4 = document.retractionForm.ret_d4.value*60; var d5 = document.retractionForm.ret_d5.value; var e1 = document.retractionForm.ret_e1.value; var e2 = document.retractionForm.ret_e2.value*60; var e3 = document.retractionForm.ret_e3.value; + var e4 = document.retractionForm.ret_e4.value*60; var e5 = document.retractionForm.ret_e5.value; var f1 = document.retractionForm.ret_f1.value; var f2 = document.retractionForm.ret_f2.value*60; var f3 = document.retractionForm.ret_f3.value; + var f4 = document.retractionForm.ret_f4.value*60; var f5 = document.retractionForm.ret_f5.value; var customStart = document.retractionForm.startgcode.value; var retraction = originalRetraction; @@ -286,37 +292,38 @@ function processRetraction(){ } // A section retraction = retraction.replace(/;retractionA/g, "G1 E-"+a1+" F"+a2+" ; custom retraction - A"); - retraction = retraction.replace(/;unretractionA/g, "G1 E"+a3+" F"+a2+" ; custom un-retraction/prime - A"); + retraction = retraction.replace(/;unretractionA/g, "G1 E"+a3+" F"+a4+" ; custom un-retraction/prime - A"); if(a5 > 0){ retraction = retraction.replace(/;zhopupA/g, "G91\nG1 Z"+a5+" F1200 ; custom z hop - A\nG90"); } // B section retraction = retraction.replace(/;retractionB/g, "G1 E-"+b1+" F"+b2+" ; custom retraction - B"); - retraction = retraction.replace(/;unretractionB/g, "G1 E"+b3+" F"+b2+" ; custom un-retraction/prime - B"); + retraction = retraction.replace(/;unretractionB/g, "G1 E"+b3+" F"+b4+" ; custom un-retraction/prime - B"); if(b5 > 0){ retraction = retraction.replace(/;zhopupB/g, "G91\nG1 Z"+b5+" F1200 ; custom z hop - B\nG90"); } // C section retraction = retraction.replace(/;retractionC/g, "G1 E-"+c1+" F"+c2+" ; custom retraction - C"); - retraction = retraction.replace(/;unretractionC/g, "G1 E"+c3+" F"+c2+" ; custom un-retraction/prime - C"); + retraction = retraction.replace(/;unretractionC/g, "G1 E"+c3+" F"+c4+" ; custom un-retraction/prime - C"); if(c5 > 0){ retraction = retraction.replace(/;zhopupC/g, "G91\nG1 Z"+c5+" F1200 ; custom z hop - C\nG90"); } // D section retraction = retraction.replace(/;retractionD/g, "G1 E-"+d1+" F"+d2+" ; custom retraction - D"); - retraction = retraction.replace(/;unretractionD/g, "G1 E"+d3+" F"+d2+" ; custom un-retraction/prime - D"); + retraction = retraction.replace(/;unretractionD/g, "G1 E"+d3+" F"+d4+" ; custom un-retraction/prime - D"); if(d5 > 0){ retraction = retraction.replace(/;zhopupD/g, "G91\nG1 Z"+d5+" F1200 ; custom z hop - D\nG90"); } // E section retraction = retraction.replace(/;retractionE/g, "G1 E-"+e1+" F"+e2+" ; custom retraction - E"); - retraction = retraction.replace(/;unretractionE/g, "G1 E"+e3+" F"+e2+" ; custom un-retraction/prime - E"); + retraction = retraction.replace(/;unretractionE/g, "G1 E"+e3+" F"+e4+" ; custom un-retraction/prime - E"); if(e5 > 0){ retraction = retraction.replace(/;zhopupE/g, "G91\nG1 Z"+e5+" F1200 ; custom z hop - E\nG90"); } // F section retraction = retraction.replace(/;retractionF/g, "G1 E-"+f1+" F"+f2+" ; custom retraction - F"); - retraction = retraction.replace(/;unretractionF/g, "G1 E"+f3+" F"+f2+" ; custom un-retraction/prime - F"); + retraction = retraction.replace(/;unretractionF/g, "G1 E"+f3+" F"+f4+" ; custom un-retraction/prime - F"); + if(document.retractionForm.start.checked == true) { retraction = retraction.replace(/;customstart/, "; custom start gcode\n"+customStart); if(f5 > 0){
Retraction distance: The length the filament is pulled away from the nozzle in mm.Retraction distance: The length the filament is pulled away from the nozzle in mm. Travel > Retraction distance Extruder > Retraction distance Printer settings > Extruder 1 > Retraction > Length
Retraction speed: The speed at which this filament is withdrawn in mm/sec.Retraction speed: The speed at which this filament is withdrawn in mm/sec. Travel > Retraction speed Extruder > Retraction speed Printer settings > Extruder 1 > Retraction > Retraction Speed
Extra restart distance: The retraction distance will be reversed when the travel (non-extruding) movement is over. This is typically zero, but you can opt for extra filament to be extruded (a positive value) or less than what was retracted (a negative value). Also measured in mm.Extra restart distance: The retraction distance will be reversed when the travel (non-extruding) movement is over. This is typically zero, but you can opt for extra filament to be extruded (a positive value) or less than what was retracted (a negative value). Also measured in mm. Travel > Retraction extra prime amount Extruder > Extra restart distance Printer settings > Extruder 1 > Retraction > Extra length on restart
Z hop: The amount the nozzle lifts vertically in mm during a travel (non-extruding) movement. After this movement, the correct Z value is then restored before the filament is unretracted/primed again ready for printing.Prime (unretract) speed: The speed at which this filament is reintroduced to the nozzle in mm/sec.Travel > Retraction prime speedNot supported. S3D will use retraction speed as prime speed.Printer settings > Extruder 1 > Retraction > Deretraction speed
Z hop: The amount the nozzle lifts vertically in mm during a travel (non-extruding) movement. After this movement, the correct Z value is then restored before the filament is unretracted/primed again ready for printing. Travel > Z hop when retracted Extruder > Retraction vertical lift Printer settings > Extruder 1 > Retraction > Lift z Reference Diagram Segment Retraction distance (mm)Retraction speedExtra restart distanceZ hopRetraction speed (mm/sec)Extra restart distance (mm)Prime (unretract) speed (mm/sec)Z hop (mm)