Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2018-07-09 12:21:16 +0300
committerGhostkeeper <rubend@tutanota.com>2018-07-09 12:21:34 +0300
commit54b990c0bd32dc7d2ee231a3453e89cb8440e954 (patch)
tree3f68f9a2023e394611428779ed587cbefc37854f /plugins
parent1fdac63168cea6d01caabda619b8e120fdf6ab60 (diff)
Retract further if we can't set the temperature to stand-by temp
Because we can't set the temperature and we don't know the correct temperature to set it back to, we will just retract further in order to prevent damage to the material. Contributes to issue CURA-5491.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/PostProcessingPlugin/scripts/PauseAtHeight.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
index 545db24048..6354dd4f04 100644
--- a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
+++ b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
@@ -266,8 +266,10 @@ class PauseAtHeight(Script):
# Retraction
prepend_gcode += self.putValue(M = 83) + "\n"
if retraction_amount != 0:
- if firmware_retract:
- prepend_gcode += self.putValue(G = 10)
+ if firmware_retract: #Can't set the distance directly to what the user wants. We have to choose ourselves.
+ retraction_count = 1 if control_temperatures else 3 #Retract more if we don't control the temperature.
+ for i in range(retraction_count):
+ prepend_gcode += self.putValue(G = 10) + "\n"
else:
prepend_gcode += self.putValue(G = 1, E = -retraction_amount, F = retraction_speed * 60) + "\n"
@@ -309,8 +311,10 @@ class PauseAtHeight(Script):
prepend_gcode += self.putValue(G = 1, Z = current_z + 1, F = 300) + "\n"
prepend_gcode += self.putValue(G = 1, X = x, Y = y, F = 9000) + "\n"
if retraction_amount != 0:
- if firmware_retract:
- prepend_gcode += self.putValue(G = 11)
+ if firmware_retract: #Can't set the distance directly to what the user wants. We have to choose ourselves.
+ retraction_count = 1 if control_temperatures else 3 #Retract more if we don't control the temperature.
+ for i in range(retraction_count):
+ prepend_gcode += self.putValue(G = 11) + "\n"
else:
prepend_gcode += self.putValue(G = 1, E = retraction_amount, F = retraction_speed * 60) + "\n"
prepend_gcode += self.putValue(G = 1, F = 9000) + "\n"