Browse Source

Merge pull request #3946 from thinkyhead/rc_g28_servo_raise_before_stow

Raise the servo probe before stow outside ABL context
Scott Lahteine 9 years ago
parent
commit
8529122af1

+ 1
- 1
Marlin/Conditionals.h View File

@@ -732,7 +732,7 @@
732 732
       #define Z_ENDSTOP_SERVO_NR -1
733 733
     #endif
734 734
     #if X_ENDSTOP_SERVO_NR >= 0 || Y_ENDSTOP_SERVO_NR >= 0 || HAS_Z_ENDSTOP_SERVO
735
-      #define HAS_SERVO_ENDSTOPS true
735
+      #define HAS_SERVO_ENDSTOPS
736 736
       #define SERVO_ENDSTOP_IDS { X_ENDSTOP_SERVO_NR, Y_ENDSTOP_SERVO_NR, Z_ENDSTOP_SERVO_NR }
737 737
     #endif
738 738
   #endif

+ 7
- 3
Marlin/Configuration.h View File

@@ -440,6 +440,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
440 440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
441 441
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
442 442
 
443
+// Probe Raise options provide clearance for the probe to deploy and stow.
444
+// For G28 these apply when the probe deploys and stows.
445
+// For G29 these apply before and after the full procedure.
446
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
447
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
448
+
443 449
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
444 450
 // :{0:'Low',1:'High'}
445 451
 #define X_ENABLE_ON 0
@@ -585,7 +591,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
585 591
     #define ABL_PROBE_PT_3_X 170
586 592
     #define ABL_PROBE_PT_3_Y 20
587 593
 
588
-  #endif // AUTO_BED_LEVELING_GRID
594
+  #endif // !AUTO_BED_LEVELING_GRID
589 595
 
590 596
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
591 597
   // X and Y offsets must be integers.
@@ -610,9 +616,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
610 616
 
611 617
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
612 618
 
613
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
614 619
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
615
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
616 620
 
617 621
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
618 622
                                                                              // Useful to retract a deployable Z probe.

+ 66
- 52
Marlin/Marlin_main.cpp View File

@@ -372,7 +372,7 @@ static uint8_t target_extruder;
372 372
   };
373 373
 #endif
374 374
 
375
-#if HAS_SERVO_ENDSTOPS
375
+#if ENABLED(HAS_SERVO_ENDSTOPS)
376 376
   const int servo_endstop_id[] = SERVO_ENDSTOP_IDS;
377 377
   const int servo_endstop_angle[][2] = SERVO_ENDSTOP_ANGLES;
378 378
 #endif
@@ -724,7 +724,7 @@ void servo_init() {
724 724
     servo[3].detach();
725 725
   #endif
726 726
 
727
-   #if HAS_SERVO_ENDSTOPS
727
+   #if ENABLED(HAS_SERVO_ENDSTOPS)
728 728
 
729 729
     endstops.enable_z_probe(false);
730 730
 
@@ -1701,7 +1701,12 @@ static void setup_for_endstop_move() {
1701 1701
   }
1702 1702
 
1703 1703
   inline void raise_z_after_probing() {
1704
-    do_blocking_move_to_z(current_position[Z_AXIS] + Z_RAISE_AFTER_PROBING);
1704
+    #if Z_RAISE_AFTER_PROBING > 0
1705
+      #if ENABLED(DEBUG_LEVELING_FEATURE)
1706
+        if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("raise_z_after_probing()");
1707
+      #endif
1708
+      do_blocking_move_to_z(current_position[Z_AXIS] + Z_RAISE_AFTER_PROBING);
1709
+    #endif
1705 1710
   }
1706 1711
 
1707 1712
   static void clean_up_after_endstop_move() {
@@ -1724,7 +1729,7 @@ static void setup_for_endstop_move() {
1724 1729
 
1725 1730
     if (endstops.z_probe_enabled) return;
1726 1731
 
1727
-    #if HAS_SERVO_ENDSTOPS
1732
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
1728 1733
 
1729 1734
       // Engage Z Servo endstop if enabled
1730 1735
       if (servo_endstop_id[Z_AXIS] >= 0) servo[servo_endstop_id[Z_AXIS]].move(servo_endstop_angle[Z_AXIS][0]);
@@ -1811,7 +1816,7 @@ static void setup_for_endstop_move() {
1811 1816
   }
1812 1817
 
1813 1818
   static void stow_z_probe(bool doRaise = true) {
1814
-    #if !(HAS_SERVO_ENDSTOPS && (Z_RAISE_AFTER_PROBING > 0))
1819
+    #if !(ENABLED(HAS_SERVO_ENDSTOPS) && (Z_RAISE_AFTER_PROBING > 0))
1815 1820
       UNUSED(doRaise);
1816 1821
     #endif
1817 1822
     #if ENABLED(DEBUG_LEVELING_FEATURE)
@@ -1820,21 +1825,13 @@ static void setup_for_endstop_move() {
1820 1825
 
1821 1826
     if (!endstops.z_probe_enabled) return;
1822 1827
 
1823
-    #if HAS_SERVO_ENDSTOPS
1828
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
1824 1829
 
1825 1830
       // Retract Z Servo endstop if enabled
1826 1831
       if (servo_endstop_id[Z_AXIS] >= 0) {
1827 1832
 
1828 1833
         #if Z_RAISE_AFTER_PROBING > 0
1829 1834
           if (doRaise) {
1830
-            #if ENABLED(DEBUG_LEVELING_FEATURE)
1831
-              if (DEBUGGING(LEVELING)) {
1832
-                SERIAL_ECHOPAIR("Raise Z (after) by ", Z_RAISE_AFTER_PROBING);
1833
-                SERIAL_EOL;
1834
-                SERIAL_ECHO("> SERVO_ENDSTOPS > raise_z_after_probing()");
1835
-                SERIAL_EOL;
1836
-              }
1837
-            #endif
1838 1835
             raise_z_after_probing(); // this also updates current_position
1839 1836
             stepper.synchronize();
1840 1837
           }
@@ -2062,7 +2059,7 @@ static void setup_for_endstop_move() {
2062 2059
 
2063 2060
   #endif // DELTA
2064 2061
 
2065
-  #if HAS_SERVO_ENDSTOPS && DISABLED(Z_PROBE_SLED)
2062
+  #if ENABLED(HAS_SERVO_ENDSTOPS) && DISABLED(Z_PROBE_SLED)
2066 2063
 
2067 2064
     void raise_z_for_servo() {
2068 2065
       float zpos = current_position[Z_AXIS], z_dest = Z_RAISE_BEFORE_PROBING;
@@ -2122,9 +2119,7 @@ static void setup_for_endstop_move() {
2122 2119
 
2123 2120
     float oldXpos = current_position[X_AXIS]; // save x position
2124 2121
     if (dock) {
2125
-      #if Z_RAISE_AFTER_PROBING > 0
2126
-        raise_z_after_probing(); // raise Z
2127
-      #endif
2122
+      raise_z_after_probing(); // raise Z
2128 2123
       // Dock sled a bit closer to ensure proper capturing
2129 2124
       do_blocking_move_to_x(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1);
2130 2125
       digitalWrite(SLED_PIN, LOW); // turn off magnet
@@ -2173,33 +2168,36 @@ static void homeaxis(AxisEnum axis) {
2173 2168
     sync_plan_position();
2174 2169
 
2175 2170
     #if ENABLED(Z_PROBE_SLED)
2176
-      #define _Z_SERVO_TEST       (axis != Z_AXIS)      // deploy Z, servo.move XY
2177
-      #define _Z_PROBE_SUBTEST    false                 // Z will never be invoked
2171
+      #define _Z_SERVO_TEST       (axis != Z_AXIS)      // already deployed Z
2172
+      #define _Z_SERVO_SUBTEST    false                 // Z will never be invoked
2178 2173
       #define _Z_DEPLOY           (dock_sled(false))
2179 2174
       #define _Z_STOW             (dock_sled(true))
2180 2175
     #elif SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
2181
-      #define _Z_SERVO_TEST       (axis != Z_AXIS)      // servo.move XY
2182
-      #define _Z_PROBE_SUBTEST    false                 // Z will never be invoked
2176
+      #define _Z_SERVO_TEST       (axis != Z_AXIS)      // already deployed Z
2177
+      #define _Z_SERVO_SUBTEST    false                 // Z will never be invoked
2183 2178
       #define _Z_DEPLOY           (deploy_z_probe())
2184 2179
       #define _Z_STOW             (stow_z_probe())
2185
-    #elif HAS_SERVO_ENDSTOPS
2186
-      #define _Z_SERVO_TEST       true                  // servo.move X, Y, Z
2187
-      #define _Z_PROBE_SUBTEST    (axis == Z_AXIS)      // Z is a probe
2180
+    #elif ENABLED(HAS_SERVO_ENDSTOPS)
2181
+      #define _Z_SERVO_TEST       true                  // Z not deployed yet
2182
+      #define _Z_SERVO_SUBTEST    (axis == Z_AXIS)      // Z is a probe
2188 2183
     #endif
2189 2184
 
2190
-    if (axis == Z_AXIS) {
2191
-      // If there's a Z probe that needs deployment...
2192
-      #if ENABLED(Z_PROBE_SLED) || SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
2193
-        // ...and homing Z towards the bed? Deploy it.
2194
-        if (axis_home_dir < 0) _Z_DEPLOY;
2195
-      #endif
2196
-    }
2185
+    // If there's a Z probe that needs deployment...
2186
+    #if ENABLED(Z_PROBE_SLED) || SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
2187
+      // ...and homing Z towards the bed? Deploy it.
2188
+      if (axis == Z_AXIS && axis_home_dir < 0) {
2189
+        #if ENABLED(DEBUG_LEVELING_FEATURE)
2190
+          if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> SERVO_LEVELING > " STRINGIFY(_Z_DEPLOY));
2191
+        #endif
2192
+        _Z_DEPLOY;
2193
+      }
2194
+    #endif
2197 2195
 
2198
-    #if HAS_SERVO_ENDSTOPS
2199
-      // Engage an X or Y Servo endstop if enabled
2196
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
2197
+      // Engage an X, Y (or Z) Servo endstop if enabled
2200 2198
       if (_Z_SERVO_TEST && servo_endstop_id[axis] >= 0) {
2201 2199
         servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][0]);
2202
-        if (_Z_PROBE_SUBTEST) endstops.z_probe_enabled = true;
2200
+        if (_Z_SERVO_SUBTEST) endstops.z_probe_enabled = true;
2203 2201
       }
2204 2202
     #endif
2205 2203
 
@@ -2316,7 +2314,7 @@ static void homeaxis(AxisEnum axis) {
2316 2314
     axis_known_position[axis] = true;
2317 2315
     axis_homed[axis] = true;
2318 2316
 
2319
-    // Put away the Z probe
2317
+    // Put away the Z probe with a function
2320 2318
     #if ENABLED(Z_PROBE_SLED) || SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
2321 2319
       if (axis == Z_AXIS && axis_home_dir < 0) {
2322 2320
         #if ENABLED(DEBUG_LEVELING_FEATURE)
@@ -2326,16 +2324,32 @@ static void homeaxis(AxisEnum axis) {
2326 2324
       }
2327 2325
     #endif
2328 2326
 
2329
-    // Retract Servo endstop if enabled
2330
-    #if HAS_SERVO_ENDSTOPS
2327
+    // Retract X, Y (or Z) Servo endstop if enabled
2328
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
2331 2329
       if (_Z_SERVO_TEST && servo_endstop_id[axis] >= 0) {
2330
+        // Raise the servo probe before stow outside ABL context.
2331
+        // This is a workaround to allow use of a Servo Probe without
2332
+        // ABL until more global probe handling is implemented.
2333
+        #if Z_RAISE_AFTER_PROBING > 0
2334
+          if (axis == Z_AXIS) {
2335
+            #if ENABLED(DEBUG_LEVELING_FEATURE)
2336
+              if (DEBUGGING(LEVELING)) SERIAL_ECHOPAIR("Raise Z (after) by ", Z_RAISE_AFTER_PROBING);
2337
+            #endif
2338
+            current_position[Z_AXIS] = Z_RAISE_AFTER_PROBING;
2339
+            feedrate = homing_feedrate[Z_AXIS];
2340
+            line_to_current_position();
2341
+            stepper.synchronize();
2342
+          }
2343
+        #endif
2344
+
2332 2345
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2333 2346
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> SERVO_ENDSTOPS > Stow with servo.move()");
2334 2347
         #endif
2335 2348
         servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][1]);
2336
-        if (_Z_PROBE_SUBTEST) endstops.enable_z_probe(false);
2349
+        if (_Z_SERVO_SUBTEST) endstops.enable_z_probe(false);
2337 2350
       }
2338
-    #endif
2351
+
2352
+    #endif // HAS_SERVO_ENDSTOPS
2339 2353
 
2340 2354
   }
2341 2355
 
@@ -3564,7 +3578,7 @@ inline void gcode_G28() {
3564 3578
       // Allen Key Probe for Delta
3565 3579
       #if ENABLED(Z_PROBE_ALLEN_KEY) || SERVO_LEVELING
3566 3580
         stow_z_probe();
3567
-      #elif Z_RAISE_AFTER_PROBING > 0
3581
+      #else
3568 3582
         raise_z_after_probing(); // for non Allen Key probes, such as simple mechanical probe
3569 3583
       #endif
3570 3584
     #else // !DELTA
@@ -3624,7 +3638,7 @@ inline void gcode_G28() {
3624 3638
         #endif
3625 3639
 
3626 3640
         current_position[Z_AXIS] = -zprobe_zoffset + (z_tmp - real_z)
3627
-          #if HAS_SERVO_ENDSTOPS || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED)
3641
+          #if ENABLED(HAS_SERVO_ENDSTOPS) || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED)
3628 3642
              + Z_RAISE_AFTER_PROBING
3629 3643
           #endif
3630 3644
           ;
@@ -3639,9 +3653,9 @@ inline void gcode_G28() {
3639 3653
       // Sled assembly for Cartesian bots
3640 3654
       #if ENABLED(Z_PROBE_SLED)
3641 3655
         dock_sled(true); // dock the sled
3642
-      #elif Z_RAISE_AFTER_PROBING > 0
3656
+      #else
3643 3657
         // Raise Z axis for non-delta and non servo based probes
3644
-        #if !defined(HAS_SERVO_ENDSTOPS) && DISABLED(Z_PROBE_ALLEN_KEY) && DISABLED(Z_PROBE_SLED)
3658
+        #if DISABLED(HAS_SERVO_ENDSTOPS) && DISABLED(Z_PROBE_ALLEN_KEY) && DISABLED(Z_PROBE_SLED)
3645 3659
           raise_z_after_probing();
3646 3660
         #endif
3647 3661
       #endif
@@ -3685,7 +3699,7 @@ inline void gcode_G28() {
3685 3699
      * G30: Do a single Z probe at the current XY
3686 3700
      */
3687 3701
     inline void gcode_G30() {
3688
-      #if HAS_SERVO_ENDSTOPS
3702
+      #if ENABLED(HAS_SERVO_ENDSTOPS)
3689 3703
         raise_z_for_servo();
3690 3704
       #endif
3691 3705
       deploy_z_probe(); // Engage Z Servo endstop if available. Z_PROBE_SLED is missed here.
@@ -3707,7 +3721,7 @@ inline void gcode_G28() {
3707 3721
 
3708 3722
       clean_up_after_endstop_move(); // Too early. must be done after the stowing.
3709 3723
 
3710
-      #if HAS_SERVO_ENDSTOPS
3724
+      #if ENABLED(HAS_SERVO_ENDSTOPS)
3711 3725
         raise_z_for_servo();
3712 3726
       #endif
3713 3727
       stow_z_probe(false); // Retract Z Servo endstop if available. Z_PROBE_SLED is missed here.
@@ -5816,13 +5830,13 @@ inline void gcode_M303() {
5816 5830
  */
5817 5831
 inline void gcode_M400() { stepper.synchronize(); }
5818 5832
 
5819
-#if ENABLED(AUTO_BED_LEVELING_FEATURE) && DISABLED(Z_PROBE_SLED) && (HAS_SERVO_ENDSTOPS || ENABLED(Z_PROBE_ALLEN_KEY))
5833
+#if ENABLED(AUTO_BED_LEVELING_FEATURE) && DISABLED(Z_PROBE_SLED) && (ENABLED(HAS_SERVO_ENDSTOPS) || ENABLED(Z_PROBE_ALLEN_KEY))
5820 5834
 
5821 5835
   /**
5822 5836
    * M401: Engage Z Servo endstop if available
5823 5837
    */
5824 5838
   inline void gcode_M401() {
5825
-    #if HAS_SERVO_ENDSTOPS
5839
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
5826 5840
       raise_z_for_servo();
5827 5841
     #endif
5828 5842
     deploy_z_probe();
@@ -5832,13 +5846,13 @@ inline void gcode_M400() { stepper.synchronize(); }
5832 5846
    * M402: Retract Z Servo endstop if enabled
5833 5847
    */
5834 5848
   inline void gcode_M402() {
5835
-    #if HAS_SERVO_ENDSTOPS
5849
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
5836 5850
       raise_z_for_servo();
5837 5851
     #endif
5838 5852
     stow_z_probe(false);
5839 5853
   }
5840 5854
 
5841
-#endif // AUTO_BED_LEVELING_FEATURE && (HAS_SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
5855
+#endif // AUTO_BED_LEVELING_FEATURE && (ENABLED(HAS_SERVO_ENDSTOPS) || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
5842 5856
 
5843 5857
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
5844 5858
 
@@ -7054,14 +7068,14 @@ void process_next_command() {
7054 7068
         gcode_M400();
7055 7069
         break;
7056 7070
 
7057
-      #if ENABLED(AUTO_BED_LEVELING_FEATURE) && (HAS_SERVO_ENDSTOPS || ENABLED(Z_PROBE_ALLEN_KEY)) && DISABLED(Z_PROBE_SLED)
7071
+      #if ENABLED(AUTO_BED_LEVELING_FEATURE) && (ENABLED(HAS_SERVO_ENDSTOPS) || ENABLED(Z_PROBE_ALLEN_KEY)) && DISABLED(Z_PROBE_SLED)
7058 7072
         case 401:
7059 7073
           gcode_M401();
7060 7074
           break;
7061 7075
         case 402:
7062 7076
           gcode_M402();
7063 7077
           break;
7064
-      #endif // AUTO_BED_LEVELING_FEATURE && (HAS_SERVO_ENDSTOPS || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
7078
+      #endif // AUTO_BED_LEVELING_FEATURE && (ENABLED(HAS_SERVO_ENDSTOPS) || Z_PROBE_ALLEN_KEY) && !Z_PROBE_SLED
7065 7079
 
7066 7080
       #if ENABLED(FILAMENT_WIDTH_SENSOR)
7067 7081
         case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or display nominal filament width

+ 1
- 1
Marlin/SanityCheck.h View File

@@ -174,7 +174,7 @@
174 174
 /**
175 175
  * Servo deactivation depends on servo endstops
176 176
  */
177
-#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_SERVO_ENDSTOPS
177
+#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && DISABLED(HAS_SERVO_ENDSTOPS)
178 178
   #error "At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE."
179 179
 #endif
180 180
 

+ 7
- 3
Marlin/example_configurations/Felix/Configuration.h View File

@@ -422,6 +422,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
422 422
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
423 423
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
424 424
 
425
+// Probe Raise options provide clearance for the probe to deploy and stow.
426
+// For G28 these apply when the probe deploys and stows.
427
+// For G29 these apply before and after the full procedure.
428
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
429
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
430
+
425 431
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
426 432
 // :{0:'Low',1:'High'}
427 433
 #define X_ENABLE_ON 0
@@ -567,7 +573,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
567 573
     #define ABL_PROBE_PT_3_X 170
568 574
     #define ABL_PROBE_PT_3_Y 20
569 575
 
570
-  #endif // AUTO_BED_LEVELING_GRID
576
+  #endif // !AUTO_BED_LEVELING_GRID
571 577
 
572 578
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
573 579
   // X and Y offsets must be integers.
@@ -592,9 +598,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
592 598
 
593 599
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
594 600
 
595
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
596 601
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
597
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
598 602
 
599 603
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
600 604
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/Felix/DUAL/Configuration.h View File

@@ -420,6 +420,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
420 420
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
421 421
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
422 422
 
423
+// Probe Raise options provide clearance for the probe to deploy and stow.
424
+// For G28 these apply when the probe deploys and stows.
425
+// For G29 these apply before and after the full procedure.
426
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
427
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
428
+
423 429
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
424 430
 // :{0:'Low',1:'High'}
425 431
 #define X_ENABLE_ON 0
@@ -565,7 +571,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
565 571
     #define ABL_PROBE_PT_3_X 170
566 572
     #define ABL_PROBE_PT_3_Y 20
567 573
 
568
-  #endif // AUTO_BED_LEVELING_GRID
574
+  #endif // !AUTO_BED_LEVELING_GRID
569 575
 
570 576
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
571 577
   // X and Y offsets must be integers.
@@ -590,9 +596,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
590 596
 
591 597
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
592 598
 
593
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
594 599
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
595
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
596 600
 
597 601
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
598 602
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -432,6 +432,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
432 432
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
433 433
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
434 434
 
435
+// Probe Raise options provide clearance for the probe to deploy and stow.
436
+// For G28 these apply when the probe deploys and stows.
437
+// For G29 these apply before and after the full procedure.
438
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
439
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
440
+
435 441
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
436 442
 // :{0:'Low',1:'High'}
437 443
 #define X_ENABLE_ON 0
@@ -577,7 +583,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
577 583
     #define ABL_PROBE_PT_3_X 170
578 584
     #define ABL_PROBE_PT_3_Y 20
579 585
 
580
-  #endif // AUTO_BED_LEVELING_GRID
586
+  #endif // !AUTO_BED_LEVELING_GRID
581 587
 
582 588
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
583 589
   // X and Y offsets must be integers.
@@ -602,9 +608,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
602 608
 
603 609
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
604 610
 
605
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
606 611
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
607
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
608 612
 
609 613
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
610 614
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/Hephestos_2/Configuration.h View File

@@ -434,6 +434,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
434 434
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
435 435
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
436 436
 
437
+// Probe Raise options provide clearance for the probe to deploy and stow.
438
+// For G28 these apply when the probe deploys and stows.
439
+// For G29 these apply before and after the full procedure.
440
+#define Z_RAISE_BEFORE_PROBING 5    // Raise before probe deploy (e.g., the first probe).
441
+#define Z_RAISE_AFTER_PROBING 5     // Raise before probe stow (e.g., the last probe).
442
+
437 443
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
438 444
 // :{0:'Low',1:'High'}
439 445
 #define X_ENABLE_ON 0
@@ -579,7 +585,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
579 585
     #define ABL_PROBE_PT_3_X ((X_MIN_POS + X_MAX_POS) / 2)
580 586
     #define ABL_PROBE_PT_3_Y Y_MAX_POS - (Y_PROBE_OFFSET_FROM_EXTRUDER)
581 587
 
582
-  #endif // AUTO_BED_LEVELING_GRID
588
+  #endif // !AUTO_BED_LEVELING_GRID
583 589
 
584 590
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
585 591
   // X and Y offsets must be integers.
@@ -604,9 +610,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
604 610
 
605 611
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
606 612
 
607
-  #define Z_RAISE_BEFORE_PROBING   5  // How much the Z axis will be raised before traveling to the first probing point.
608 613
   #define Z_RAISE_BETWEEN_PROBINGS 2  // How much the Z axis will be raised when traveling from between next probing points.
609
-  #define Z_RAISE_AFTER_PROBING    5  // How much the Z axis will be raised after the last probing point.
610 614
 
611 615
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
612 616
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/K8200/Configuration.h View File

@@ -457,6 +457,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
457 457
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
458 458
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
459 459
 
460
+// Probe Raise options provide clearance for the probe to deploy and stow.
461
+// For G28 these apply when the probe deploys and stows.
462
+// For G29 these apply before and after the full procedure.
463
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
464
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
465
+
460 466
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
461 467
 // :{0:'Low',1:'High'}
462 468
 #define X_ENABLE_ON 0
@@ -602,7 +608,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
602 608
     #define ABL_PROBE_PT_3_X 170
603 609
     #define ABL_PROBE_PT_3_Y 20
604 610
 
605
-  #endif // AUTO_BED_LEVELING_GRID
611
+  #endif // !AUTO_BED_LEVELING_GRID
606 612
 
607 613
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
608 614
   // X and Y offsets must be integers.
@@ -627,9 +633,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
627 633
 
628 634
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
629 635
 
630
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
631 636
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
632
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
633 637
 
634 638
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
635 639
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -440,6 +440,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
440 440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
441 441
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
442 442
 
443
+// Probe Raise options provide clearance for the probe to deploy and stow.
444
+// For G28 these apply when the probe deploys and stows.
445
+// For G29 these apply before and after the full procedure.
446
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
447
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
448
+
443 449
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
444 450
 // :{0:'Low',1:'High'}
445 451
 #define X_ENABLE_ON 0
@@ -585,7 +591,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
585 591
     #define ABL_PROBE_PT_3_X 170
586 592
     #define ABL_PROBE_PT_3_Y 20
587 593
 
588
-  #endif // AUTO_BED_LEVELING_GRID
594
+  #endif // !AUTO_BED_LEVELING_GRID
589 595
 
590 596
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
591 597
   // X and Y offsets must be integers.
@@ -610,9 +616,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
610 616
 
611 617
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
612 618
 
613
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
614 619
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
615
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
616 620
 
617 621
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
618 622
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -434,6 +434,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
434 434
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
435 435
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
436 436
 
437
+// Probe Raise options provide clearance for the probe to deploy and stow.
438
+// For G28 these apply when the probe deploys and stows.
439
+// For G29 these apply before and after the full procedure.
440
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
441
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
442
+
437 443
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
438 444
 // :{0:'Low',1:'High'}
439 445
 #define X_ENABLE_ON 0
@@ -579,7 +585,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
579 585
     #define ABL_PROBE_PT_3_X 170
580 586
     #define ABL_PROBE_PT_3_Y 20
581 587
 
582
-  #endif // AUTO_BED_LEVELING_GRID
588
+  #endif // !AUTO_BED_LEVELING_GRID
583 589
 
584 590
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
585 591
   // X and Y offsets must be integers.
@@ -604,9 +610,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
604 610
 
605 611
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
606 612
 
607
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
608 613
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
609
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
610 614
 
611 615
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
612 616
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -448,6 +448,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
448 448
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
449 449
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
450 450
 
451
+// Probe Raise options provide clearance for the probe to deploy and stow.
452
+// For G28 these apply when the probe deploys and stows.
453
+// For G29 these apply before and after the full procedure.
454
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
455
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
456
+
451 457
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
452 458
 // :{0:'Low',1:'High'}
453 459
 #define X_ENABLE_ON 0
@@ -593,7 +599,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
593 599
     #define ABL_PROBE_PT_3_X 170
594 600
     #define ABL_PROBE_PT_3_Y 20
595 601
 
596
-  #endif // AUTO_BED_LEVELING_GRID
602
+  #endif // !AUTO_BED_LEVELING_GRID
597 603
 
598 604
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
599 605
   // X and Y offsets must be integers.
@@ -618,9 +624,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
618 624
 
619 625
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
620 626
 
621
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
622 627
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
623
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
624 628
 
625 629
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
626 630
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/TAZ4/Configuration.h View File

@@ -461,6 +461,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
461 461
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
462 462
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
463 463
 
464
+// Probe Raise options provide clearance for the probe to deploy and stow.
465
+// For G28 these apply when the probe deploys and stows.
466
+// For G29 these apply before and after the full procedure.
467
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
468
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
469
+
464 470
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
465 471
 // :{0:'Low',1:'High'}
466 472
 #define X_ENABLE_ON 0
@@ -606,7 +612,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
606 612
     #define ABL_PROBE_PT_3_X 170
607 613
     #define ABL_PROBE_PT_3_Y 20
608 614
 
609
-  #endif // AUTO_BED_LEVELING_GRID
615
+  #endif // !AUTO_BED_LEVELING_GRID
610 616
 
611 617
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
612 618
   // X and Y offsets must be integers.
@@ -631,9 +637,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
631 637
 
632 638
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
633 639
 
634
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
635 640
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
636
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
637 641
 
638 642
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
639 643
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -432,6 +432,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
432 432
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
433 433
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
434 434
 
435
+// Probe Raise options provide clearance for the probe to deploy and stow.
436
+// For G28 these apply when the probe deploys and stows.
437
+// For G29 these apply before and after the full procedure.
438
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
439
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
440
+
435 441
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
436 442
 // :{0:'Low',1:'High'}
437 443
 #define X_ENABLE_ON 0
@@ -577,7 +583,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
577 583
     #define ABL_PROBE_PT_3_X 170
578 584
     #define ABL_PROBE_PT_3_Y 20
579 585
 
580
-  #endif // AUTO_BED_LEVELING_GRID
586
+  #endif // !AUTO_BED_LEVELING_GRID
581 587
 
582 588
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
583 589
   // X and Y offsets must be integers.
@@ -602,9 +608,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
602 608
 
603 609
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
604 610
 
605
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
606 611
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
607
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
608 612
 
609 613
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
610 614
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -440,6 +440,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
440 440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
441 441
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
442 442
 
443
+// Probe Raise options provide clearance for the probe to deploy and stow.
444
+// For G28 these apply when the probe deploys and stows.
445
+// For G29 these apply before and after the full procedure.
446
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
447
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
448
+
443 449
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
444 450
 // :{0:'Low',1:'High'}
445 451
 #define X_ENABLE_ON 0
@@ -585,7 +591,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
585 591
     #define ABL_PROBE_PT_3_X 170
586 592
     #define ABL_PROBE_PT_3_Y 20
587 593
 
588
-  #endif // AUTO_BED_LEVELING_GRID
594
+  #endif // !AUTO_BED_LEVELING_GRID
589 595
 
590 596
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
591 597
   // X and Y offsets must be integers.
@@ -610,9 +616,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
610 616
 
611 617
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
612 618
 
613
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
614 619
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
615
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
616 620
 
617 621
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
618 622
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -482,6 +482,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
482 482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
483 483
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
484 484
 
485
+// Probe Raise options provide clearance for the probe to deploy and stow.
486
+// For G28 these apply when the probe deploys and stows.
487
+// For G29 these apply before and after the full procedure.
488
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
489
+#define Z_RAISE_AFTER_PROBING 50    // Raise before probe stow (e.g., the last probe).
490
+
485 491
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
486 492
 // :{0:'Low',1:'High'}
487 493
 #define X_ENABLE_ON 0
@@ -631,7 +637,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
631 637
     #define ABL_PROBE_PT_3_X 170
632 638
     #define ABL_PROBE_PT_3_Y 20
633 639
 
634
-  #endif // AUTO_BED_LEVELING_GRID
640
+  #endif // !AUTO_BED_LEVELING_GRID
635 641
 
636 642
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
637 643
   // X and Y offsets must be integers.
@@ -656,9 +662,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
656 662
 
657 663
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
658 664
 
659
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
660 665
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
661
-  #define Z_RAISE_AFTER_PROBING 50    // How much the Z axis will be raised after the last probing point.
662 666
 
663 667
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
664 668
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -482,6 +482,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
482 482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
483 483
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
484 484
 
485
+// Probe Raise options provide clearance for the probe to deploy and stow.
486
+// For G28 these apply when the probe deploys and stows.
487
+// For G29 these apply before and after the full procedure.
488
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
489
+#define Z_RAISE_AFTER_PROBING 50    // Raise before probe stow (e.g., the last probe).
490
+
485 491
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
486 492
 // :{0:'Low',1:'High'}
487 493
 #define X_ENABLE_ON 0
@@ -631,7 +637,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
631 637
     #define ABL_PROBE_PT_3_X 170
632 638
     #define ABL_PROBE_PT_3_Y 20
633 639
 
634
-  #endif // AUTO_BED_LEVELING_GRID
640
+  #endif // !AUTO_BED_LEVELING_GRID
635 641
 
636 642
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
637 643
   // X and Y offsets must be integers.
@@ -656,9 +662,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
656 662
 
657 663
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
658 664
 
659
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
660 665
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points
661
-  #define Z_RAISE_AFTER_PROBING 50    // How much the Z axis will be raised after the last probing point.
662 666
 
663 667
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
664 668
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -482,6 +482,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
482 482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
483 483
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
484 484
 
485
+// Probe Raise options provide clearance for the probe to deploy and stow.
486
+// For G28 these apply when the probe deploys and stows.
487
+// For G29 these apply before and after the full procedure.
488
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
489
+#define Z_RAISE_AFTER_PROBING 50    // Raise before probe stow (e.g., the last probe).
490
+
485 491
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
486 492
 // :{0:'Low',1:'High'}
487 493
 #define X_ENABLE_ON 0
@@ -631,7 +637,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
631 637
     #define ABL_PROBE_PT_3_X 170
632 638
     #define ABL_PROBE_PT_3_Y 20
633 639
 
634
-  #endif // AUTO_BED_LEVELING_GRID
640
+  #endif // !AUTO_BED_LEVELING_GRID
635 641
 
636 642
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
637 643
   // X and Y offsets must be integers.
@@ -656,9 +662,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
656 662
 
657 663
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
658 664
 
659
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
660 665
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points
661
-  #define Z_RAISE_AFTER_PROBING 50    // How much the Z axis will be raised after the last probing point.
662 666
 
663 667
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
664 668
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -471,6 +471,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
471 471
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
472 472
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
473 473
 
474
+// Probe Raise options provide clearance for the probe to deploy and stow.
475
+// For G28 these apply when the probe deploys and stows.
476
+// For G29 these apply before and after the full procedure.
477
+#define Z_RAISE_BEFORE_PROBING 100  // Raise before probe deploy (e.g., the first probe).
478
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
479
+
474 480
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
475 481
 // :{0:'Low',1:'High'}
476 482
 #define X_ENABLE_ON 0
@@ -620,7 +626,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
620 626
     #define ABL_PROBE_PT_3_X 170
621 627
     #define ABL_PROBE_PT_3_Y 20
622 628
 
623
-  #endif // AUTO_BED_LEVELING_GRID
629
+  #endif // !AUTO_BED_LEVELING_GRID
624 630
 
625 631
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
626 632
   // X and Y offsets must be integers.
@@ -647,9 +653,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
647 653
 
648 654
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
649 655
 
650
-  #define Z_RAISE_BEFORE_PROBING 100  // How much the Z axis will be raised before traveling to the first probing point.
651 656
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
652
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
653 657
 
654 658
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
655 659
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/delta/kossel_xl/Configuration.h View File

@@ -480,6 +480,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
480 480
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
481 481
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
482 482
 
483
+// Probe Raise options provide clearance for the probe to deploy and stow.
484
+// For G28 these apply when the probe deploys and stows.
485
+// For G29 these apply before and after the full procedure.
486
+#define Z_RAISE_BEFORE_PROBING 20   // Raise before probe deploy (e.g., the first probe).
487
+#define Z_RAISE_AFTER_PROBING 20    // Raise before probe stow (e.g., the last probe).
488
+
483 489
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
484 490
 // :{0:'Low',1:'High'}
485 491
 #define X_ENABLE_ON 0
@@ -629,7 +635,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
629 635
     #define ABL_PROBE_PT_3_X 170
630 636
     #define ABL_PROBE_PT_3_Y 20
631 637
 
632
-  #endif // AUTO_BED_LEVELING_GRID
638
+  #endif // !AUTO_BED_LEVELING_GRID
633 639
 
634 640
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
635 641
   // X and Y offsets must be integers.
@@ -654,9 +660,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
654 660
 
655 661
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
656 662
 
657
-  #define Z_RAISE_BEFORE_PROBING 20   // How much the Z axis will be raised before traveling to the first probing point.
658 663
   #define Z_RAISE_BETWEEN_PROBINGS 10 // How much the Z axis will be raised when traveling from between next probing points.
659
-  #define Z_RAISE_AFTER_PROBING 20    // How much the Z axis will be raised after the last probing point.
660 664
 
661 665
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
662 666
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/makibox/Configuration.h View File

@@ -443,6 +443,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
443 443
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
444 444
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
445 445
 
446
+// Probe Raise options provide clearance for the probe to deploy and stow.
447
+// For G28 these apply when the probe deploys and stows.
448
+// For G29 these apply before and after the full procedure.
449
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
450
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
451
+
446 452
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
447 453
 // :{0:'Low',1:'High'}
448 454
 #define X_ENABLE_ON 0
@@ -588,7 +594,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
588 594
     #define ABL_PROBE_PT_3_X 170
589 595
     #define ABL_PROBE_PT_3_Y 20
590 596
 
591
-  #endif // AUTO_BED_LEVELING_GRID
597
+  #endif // !AUTO_BED_LEVELING_GRID
592 598
 
593 599
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
594 600
   // X and Y offsets must be integers.
@@ -613,9 +619,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the l
613 619
 
614 620
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
615 621
 
616
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
617 622
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
618
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
619 623
 
620 624
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
621 625
                                                                              // Useful to retract a deployable Z probe.

+ 7
- 3
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -430,6 +430,12 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
430 430
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
431 431
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
432 432
 
433
+// Probe Raise options provide clearance for the probe to deploy and stow.
434
+// For G28 these apply when the probe deploys and stows.
435
+// For G29 these apply before and after the full procedure.
436
+#define Z_RAISE_BEFORE_PROBING 15   // Raise before probe deploy (e.g., the first probe).
437
+#define Z_RAISE_AFTER_PROBING 15    // Raise before probe stow (e.g., the last probe).
438
+
433 439
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
434 440
 // :{0:'Low',1:'High'}
435 441
 #define X_ENABLE_ON 1
@@ -575,7 +581,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
575 581
     #define ABL_PROBE_PT_3_X 170
576 582
     #define ABL_PROBE_PT_3_Y 20
577 583
 
578
-  #endif // AUTO_BED_LEVELING_GRID
584
+  #endif // !AUTO_BED_LEVELING_GRID
579 585
 
580 586
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
581 587
   // X and Y offsets must be integers.
@@ -600,9 +606,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
600 606
 
601 607
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
602 608
 
603
-  #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
604 609
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
605
-  #define Z_RAISE_AFTER_PROBING 15    // How much the Z axis will be raised after the last probing point.
606 610
 
607 611
   //#define Z_PROBE_END_SCRIPT "G1 Z10 F12000\nG1 X15 Y330\nG1 Z0.5\nG1 Z10" // These commands will be executed in the end of G29 routine.
608 612
                                                                              // Useful to retract a deployable Z probe.

Loading…
Cancel
Save