Browse Source

Add a Z raise-between-probes to G34 (#13791)

Giuliano Zaro 6 years ago
parent
commit
e2dd2268e8
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Marlin/src/gcode/calibrate/G34_M422.cpp

+ 6
- 0
Marlin/src/gcode/calibrate/G34_M422.cpp View File

@@ -126,6 +126,12 @@ void GcodeSuite::G34() {
126 126
       extruder_duplication_enabled = false;
127 127
     #endif
128 128
 
129
+    // Before moving other axes raise Z, if needed. Never lower Z.
130
+    if (current_position[Z_AXIS] < Z_CLEARANCE_BETWEEN_PROBES) {
131
+      if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Raise Z (before moving to probe pos) to ", Z_CLEARANCE_BETWEEN_PROBES);
132
+      do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
133
+    }
134
+
129 135
     // Remember corrections to determine errors on each iteration
130 136
     float last_z_align_move[Z_STEPPER_COUNT] = ARRAY_N(Z_STEPPER_COUNT, 10000.0f, 10000.0f, 10000.0f),
131 137
           z_measured[Z_STEPPER_COUNT] = { 0 };

Loading…
Cancel
Save