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
       #define Z_ENDSTOP_SERVO_NR -1
732
       #define Z_ENDSTOP_SERVO_NR -1
733
     #endif
733
     #endif
734
     #if X_ENDSTOP_SERVO_NR >= 0 || Y_ENDSTOP_SERVO_NR >= 0 || HAS_Z_ENDSTOP_SERVO
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
       #define SERVO_ENDSTOP_IDS { X_ENDSTOP_SERVO_NR, Y_ENDSTOP_SERVO_NR, Z_ENDSTOP_SERVO_NR }
736
       #define SERVO_ENDSTOP_IDS { X_ENDSTOP_SERVO_NR, Y_ENDSTOP_SERVO_NR, Z_ENDSTOP_SERVO_NR }
737
     #endif
737
     #endif
738
   #endif
738
   #endif

+ 7
- 3
Marlin/Configuration.h View File

440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
441
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
449
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
444
 // :{0:'Low',1:'High'}
450
 // :{0:'Low',1:'High'}
445
 #define X_ENABLE_ON 0
451
 #define X_ENABLE_ON 0
585
     #define ABL_PROBE_PT_3_X 170
591
     #define ABL_PROBE_PT_3_X 170
586
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
596
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
591
   // X and Y offsets must be integers.
597
   // X and Y offsets must be integers.
610
 
616
 
611
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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
   //#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
                                                                              // Useful to retract a deployable Z probe.
622
                                                                              // Useful to retract a deployable Z probe.

+ 66
- 52
Marlin/Marlin_main.cpp View File

372
   };
372
   };
373
 #endif
373
 #endif
374
 
374
 
375
-#if HAS_SERVO_ENDSTOPS
375
+#if ENABLED(HAS_SERVO_ENDSTOPS)
376
   const int servo_endstop_id[] = SERVO_ENDSTOP_IDS;
376
   const int servo_endstop_id[] = SERVO_ENDSTOP_IDS;
377
   const int servo_endstop_angle[][2] = SERVO_ENDSTOP_ANGLES;
377
   const int servo_endstop_angle[][2] = SERVO_ENDSTOP_ANGLES;
378
 #endif
378
 #endif
724
     servo[3].detach();
724
     servo[3].detach();
725
   #endif
725
   #endif
726
 
726
 
727
-   #if HAS_SERVO_ENDSTOPS
727
+   #if ENABLED(HAS_SERVO_ENDSTOPS)
728
 
728
 
729
     endstops.enable_z_probe(false);
729
     endstops.enable_z_probe(false);
730
 
730
 
1701
   }
1701
   }
1702
 
1702
 
1703
   inline void raise_z_after_probing() {
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
   static void clean_up_after_endstop_move() {
1712
   static void clean_up_after_endstop_move() {
1724
 
1729
 
1725
     if (endstops.z_probe_enabled) return;
1730
     if (endstops.z_probe_enabled) return;
1726
 
1731
 
1727
-    #if HAS_SERVO_ENDSTOPS
1732
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
1728
 
1733
 
1729
       // Engage Z Servo endstop if enabled
1734
       // Engage Z Servo endstop if enabled
1730
       if (servo_endstop_id[Z_AXIS] >= 0) servo[servo_endstop_id[Z_AXIS]].move(servo_endstop_angle[Z_AXIS][0]);
1735
       if (servo_endstop_id[Z_AXIS] >= 0) servo[servo_endstop_id[Z_AXIS]].move(servo_endstop_angle[Z_AXIS][0]);
1811
   }
1816
   }
1812
 
1817
 
1813
   static void stow_z_probe(bool doRaise = true) {
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
       UNUSED(doRaise);
1820
       UNUSED(doRaise);
1816
     #endif
1821
     #endif
1817
     #if ENABLED(DEBUG_LEVELING_FEATURE)
1822
     #if ENABLED(DEBUG_LEVELING_FEATURE)
1820
 
1825
 
1821
     if (!endstops.z_probe_enabled) return;
1826
     if (!endstops.z_probe_enabled) return;
1822
 
1827
 
1823
-    #if HAS_SERVO_ENDSTOPS
1828
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
1824
 
1829
 
1825
       // Retract Z Servo endstop if enabled
1830
       // Retract Z Servo endstop if enabled
1826
       if (servo_endstop_id[Z_AXIS] >= 0) {
1831
       if (servo_endstop_id[Z_AXIS] >= 0) {
1827
 
1832
 
1828
         #if Z_RAISE_AFTER_PROBING > 0
1833
         #if Z_RAISE_AFTER_PROBING > 0
1829
           if (doRaise) {
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
             raise_z_after_probing(); // this also updates current_position
1835
             raise_z_after_probing(); // this also updates current_position
1839
             stepper.synchronize();
1836
             stepper.synchronize();
1840
           }
1837
           }
2062
 
2059
 
2063
   #endif // DELTA
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
     void raise_z_for_servo() {
2064
     void raise_z_for_servo() {
2068
       float zpos = current_position[Z_AXIS], z_dest = Z_RAISE_BEFORE_PROBING;
2065
       float zpos = current_position[Z_AXIS], z_dest = Z_RAISE_BEFORE_PROBING;
2122
 
2119
 
2123
     float oldXpos = current_position[X_AXIS]; // save x position
2120
     float oldXpos = current_position[X_AXIS]; // save x position
2124
     if (dock) {
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
       // Dock sled a bit closer to ensure proper capturing
2123
       // Dock sled a bit closer to ensure proper capturing
2129
       do_blocking_move_to_x(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1);
2124
       do_blocking_move_to_x(X_MAX_POS + SLED_DOCKING_OFFSET + offset - 1);
2130
       digitalWrite(SLED_PIN, LOW); // turn off magnet
2125
       digitalWrite(SLED_PIN, LOW); // turn off magnet
2173
     sync_plan_position();
2168
     sync_plan_position();
2174
 
2169
 
2175
     #if ENABLED(Z_PROBE_SLED)
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
       #define _Z_DEPLOY           (dock_sled(false))
2173
       #define _Z_DEPLOY           (dock_sled(false))
2179
       #define _Z_STOW             (dock_sled(true))
2174
       #define _Z_STOW             (dock_sled(true))
2180
     #elif SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
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
       #define _Z_DEPLOY           (deploy_z_probe())
2178
       #define _Z_DEPLOY           (deploy_z_probe())
2184
       #define _Z_STOW             (stow_z_probe())
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
     #endif
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
       if (_Z_SERVO_TEST && servo_endstop_id[axis] >= 0) {
2198
       if (_Z_SERVO_TEST && servo_endstop_id[axis] >= 0) {
2201
         servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][0]);
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
     #endif
2202
     #endif
2205
 
2203
 
2316
     axis_known_position[axis] = true;
2314
     axis_known_position[axis] = true;
2317
     axis_homed[axis] = true;
2315
     axis_homed[axis] = true;
2318
 
2316
 
2319
-    // Put away the Z probe
2317
+    // Put away the Z probe with a function
2320
     #if ENABLED(Z_PROBE_SLED) || SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
2318
     #if ENABLED(Z_PROBE_SLED) || SERVO_LEVELING || ENABLED(FIX_MOUNTED_PROBE)
2321
       if (axis == Z_AXIS && axis_home_dir < 0) {
2319
       if (axis == Z_AXIS && axis_home_dir < 0) {
2322
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2320
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2326
       }
2324
       }
2327
     #endif
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
       if (_Z_SERVO_TEST && servo_endstop_id[axis] >= 0) {
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
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2345
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2333
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> SERVO_ENDSTOPS > Stow with servo.move()");
2346
           if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("> SERVO_ENDSTOPS > Stow with servo.move()");
2334
         #endif
2347
         #endif
2335
         servo[servo_endstop_id[axis]].move(servo_endstop_angle[axis][1]);
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
       // Allen Key Probe for Delta
3578
       // Allen Key Probe for Delta
3565
       #if ENABLED(Z_PROBE_ALLEN_KEY) || SERVO_LEVELING
3579
       #if ENABLED(Z_PROBE_ALLEN_KEY) || SERVO_LEVELING
3566
         stow_z_probe();
3580
         stow_z_probe();
3567
-      #elif Z_RAISE_AFTER_PROBING > 0
3581
+      #else
3568
         raise_z_after_probing(); // for non Allen Key probes, such as simple mechanical probe
3582
         raise_z_after_probing(); // for non Allen Key probes, such as simple mechanical probe
3569
       #endif
3583
       #endif
3570
     #else // !DELTA
3584
     #else // !DELTA
3624
         #endif
3638
         #endif
3625
 
3639
 
3626
         current_position[Z_AXIS] = -zprobe_zoffset + (z_tmp - real_z)
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
              + Z_RAISE_AFTER_PROBING
3642
              + Z_RAISE_AFTER_PROBING
3629
           #endif
3643
           #endif
3630
           ;
3644
           ;
3639
       // Sled assembly for Cartesian bots
3653
       // Sled assembly for Cartesian bots
3640
       #if ENABLED(Z_PROBE_SLED)
3654
       #if ENABLED(Z_PROBE_SLED)
3641
         dock_sled(true); // dock the sled
3655
         dock_sled(true); // dock the sled
3642
-      #elif Z_RAISE_AFTER_PROBING > 0
3656
+      #else
3643
         // Raise Z axis for non-delta and non servo based probes
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
           raise_z_after_probing();
3659
           raise_z_after_probing();
3646
         #endif
3660
         #endif
3647
       #endif
3661
       #endif
3685
      * G30: Do a single Z probe at the current XY
3699
      * G30: Do a single Z probe at the current XY
3686
      */
3700
      */
3687
     inline void gcode_G30() {
3701
     inline void gcode_G30() {
3688
-      #if HAS_SERVO_ENDSTOPS
3702
+      #if ENABLED(HAS_SERVO_ENDSTOPS)
3689
         raise_z_for_servo();
3703
         raise_z_for_servo();
3690
       #endif
3704
       #endif
3691
       deploy_z_probe(); // Engage Z Servo endstop if available. Z_PROBE_SLED is missed here.
3705
       deploy_z_probe(); // Engage Z Servo endstop if available. Z_PROBE_SLED is missed here.
3707
 
3721
 
3708
       clean_up_after_endstop_move(); // Too early. must be done after the stowing.
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
         raise_z_for_servo();
3725
         raise_z_for_servo();
3712
       #endif
3726
       #endif
3713
       stow_z_probe(false); // Retract Z Servo endstop if available. Z_PROBE_SLED is missed here.
3727
       stow_z_probe(false); // Retract Z Servo endstop if available. Z_PROBE_SLED is missed here.
5816
  */
5830
  */
5817
 inline void gcode_M400() { stepper.synchronize(); }
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
    * M401: Engage Z Servo endstop if available
5836
    * M401: Engage Z Servo endstop if available
5823
    */
5837
    */
5824
   inline void gcode_M401() {
5838
   inline void gcode_M401() {
5825
-    #if HAS_SERVO_ENDSTOPS
5839
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
5826
       raise_z_for_servo();
5840
       raise_z_for_servo();
5827
     #endif
5841
     #endif
5828
     deploy_z_probe();
5842
     deploy_z_probe();
5832
    * M402: Retract Z Servo endstop if enabled
5846
    * M402: Retract Z Servo endstop if enabled
5833
    */
5847
    */
5834
   inline void gcode_M402() {
5848
   inline void gcode_M402() {
5835
-    #if HAS_SERVO_ENDSTOPS
5849
+    #if ENABLED(HAS_SERVO_ENDSTOPS)
5836
       raise_z_for_servo();
5850
       raise_z_for_servo();
5837
     #endif
5851
     #endif
5838
     stow_z_probe(false);
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
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
5857
 #if ENABLED(FILAMENT_WIDTH_SENSOR)
5844
 
5858
 
7054
         gcode_M400();
7068
         gcode_M400();
7055
         break;
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
         case 401:
7072
         case 401:
7059
           gcode_M401();
7073
           gcode_M401();
7060
           break;
7074
           break;
7061
         case 402:
7075
         case 402:
7062
           gcode_M402();
7076
           gcode_M402();
7063
           break;
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
       #if ENABLED(FILAMENT_WIDTH_SENSOR)
7080
       #if ENABLED(FILAMENT_WIDTH_SENSOR)
7067
         case 404:  //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or display nominal filament width
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
 /**
174
 /**
175
  * Servo deactivation depends on servo endstops
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
   #error "At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE."
178
   #error "At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE."
179
 #endif
179
 #endif
180
 
180
 

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

422
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
422
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
423
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
431
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
426
 // :{0:'Low',1:'High'}
432
 // :{0:'Low',1:'High'}
427
 #define X_ENABLE_ON 0
433
 #define X_ENABLE_ON 0
567
     #define ABL_PROBE_PT_3_X 170
573
     #define ABL_PROBE_PT_3_X 170
568
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
578
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
573
   // X and Y offsets must be integers.
579
   // X and Y offsets must be integers.
592
 
598
 
593
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
604
                                                                              // Useful to retract a deployable Z probe.

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

420
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
420
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
421
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
429
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
424
 // :{0:'Low',1:'High'}
430
 // :{0:'Low',1:'High'}
425
 #define X_ENABLE_ON 0
431
 #define X_ENABLE_ON 0
565
     #define ABL_PROBE_PT_3_X 170
571
     #define ABL_PROBE_PT_3_X 170
566
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
576
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
571
   // X and Y offsets must be integers.
577
   // X and Y offsets must be integers.
590
 
596
 
591
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
602
                                                                              // Useful to retract a deployable Z probe.

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

432
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
432
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
433
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
441
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
436
 // :{0:'Low',1:'High'}
442
 // :{0:'Low',1:'High'}
437
 #define X_ENABLE_ON 0
443
 #define X_ENABLE_ON 0
577
     #define ABL_PROBE_PT_3_X 170
583
     #define ABL_PROBE_PT_3_X 170
578
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
588
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
583
   // X and Y offsets must be integers.
589
   // X and Y offsets must be integers.
602
 
608
 
603
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
614
                                                                              // Useful to retract a deployable Z probe.

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

434
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
434
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
435
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
443
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
438
 // :{0:'Low',1:'High'}
444
 // :{0:'Low',1:'High'}
439
 #define X_ENABLE_ON 0
445
 #define X_ENABLE_ON 0
579
     #define ABL_PROBE_PT_3_X ((X_MIN_POS + X_MAX_POS) / 2)
585
     #define ABL_PROBE_PT_3_X ((X_MIN_POS + X_MAX_POS) / 2)
580
     #define ABL_PROBE_PT_3_Y Y_MAX_POS - (Y_PROBE_OFFSET_FROM_EXTRUDER)
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
590
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
585
   // X and Y offsets must be integers.
591
   // X and Y offsets must be integers.
604
 
610
 
605
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 2  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
616
                                                                              // Useful to retract a deployable Z probe.

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

457
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
457
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
458
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
466
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
461
 // :{0:'Low',1:'High'}
467
 // :{0:'Low',1:'High'}
462
 #define X_ENABLE_ON 0
468
 #define X_ENABLE_ON 0
602
     #define ABL_PROBE_PT_3_X 170
608
     #define ABL_PROBE_PT_3_X 170
603
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
613
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
608
   // X and Y offsets must be integers.
614
   // X and Y offsets must be integers.
627
 
633
 
628
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #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_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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
639
                                                                              // Useful to retract a deployable Z probe.

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

440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
441
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
449
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
444
 // :{0:'Low',1:'High'}
450
 // :{0:'Low',1:'High'}
445
 #define X_ENABLE_ON 0
451
 #define X_ENABLE_ON 0
585
     #define ABL_PROBE_PT_3_X 170
591
     #define ABL_PROBE_PT_3_X 170
586
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
596
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
591
   // X and Y offsets must be integers.
597
   // X and Y offsets must be integers.
610
 
616
 
611
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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
   //#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
                                                                              // Useful to retract a deployable Z probe.
622
                                                                              // Useful to retract a deployable Z probe.

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

434
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
434
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
435
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
443
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
438
 // :{0:'Low',1:'High'}
444
 // :{0:'Low',1:'High'}
439
 #define X_ENABLE_ON 0
445
 #define X_ENABLE_ON 0
579
     #define ABL_PROBE_PT_3_X 170
585
     #define ABL_PROBE_PT_3_X 170
580
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
590
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
585
   // X and Y offsets must be integers.
591
   // X and Y offsets must be integers.
604
 
610
 
605
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
616
                                                                              // Useful to retract a deployable Z probe.

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

448
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
448
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
449
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
457
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
452
 // :{0:'Low',1:'High'}
458
 // :{0:'Low',1:'High'}
453
 #define X_ENABLE_ON 0
459
 #define X_ENABLE_ON 0
593
     #define ABL_PROBE_PT_3_X 170
599
     #define ABL_PROBE_PT_3_X 170
594
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
604
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
599
   // X and Y offsets must be integers.
605
   // X and Y offsets must be integers.
618
 
624
 
619
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
630
                                                                              // Useful to retract a deployable Z probe.

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

461
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
461
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
462
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
470
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
465
 // :{0:'Low',1:'High'}
471
 // :{0:'Low',1:'High'}
466
 #define X_ENABLE_ON 0
472
 #define X_ENABLE_ON 0
606
     #define ABL_PROBE_PT_3_X 170
612
     #define ABL_PROBE_PT_3_X 170
607
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
617
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
612
   // X and Y offsets must be integers.
618
   // X and Y offsets must be integers.
631
 
637
 
632
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
643
                                                                              // Useful to retract a deployable Z probe.

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

432
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
432
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
433
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
441
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
436
 // :{0:'Low',1:'High'}
442
 // :{0:'Low',1:'High'}
437
 #define X_ENABLE_ON 0
443
 #define X_ENABLE_ON 0
577
     #define ABL_PROBE_PT_3_X 170
583
     #define ABL_PROBE_PT_3_X 170
578
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
588
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
583
   // X and Y offsets must be integers.
589
   // X and Y offsets must be integers.
602
 
608
 
603
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
614
                                                                              // Useful to retract a deployable Z probe.

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

440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
440
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
441
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
449
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
444
 // :{0:'Low',1:'High'}
450
 // :{0:'Low',1:'High'}
445
 #define X_ENABLE_ON 0
451
 #define X_ENABLE_ON 0
585
     #define ABL_PROBE_PT_3_X 170
591
     #define ABL_PROBE_PT_3_X 170
586
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
596
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
591
   // X and Y offsets must be integers.
597
   // X and Y offsets must be integers.
610
 
616
 
611
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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
   //#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
                                                                              // Useful to retract a deployable Z probe.
622
                                                                              // Useful to retract a deployable Z probe.

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

482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
483
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
491
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
486
 // :{0:'Low',1:'High'}
492
 // :{0:'Low',1:'High'}
487
 #define X_ENABLE_ON 0
493
 #define X_ENABLE_ON 0
631
     #define ABL_PROBE_PT_3_X 170
637
     #define ABL_PROBE_PT_3_X 170
632
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
642
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
637
   // X and Y offsets must be integers.
643
   // X and Y offsets must be integers.
656
 
662
 
657
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
668
                                                                              // Useful to retract a deployable Z probe.

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

482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
483
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
491
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
486
 // :{0:'Low',1:'High'}
492
 // :{0:'Low',1:'High'}
487
 #define X_ENABLE_ON 0
493
 #define X_ENABLE_ON 0
631
     #define ABL_PROBE_PT_3_X 170
637
     #define ABL_PROBE_PT_3_X 170
632
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
642
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
637
   // X and Y offsets must be integers.
643
   // X and Y offsets must be integers.
656
 
662
 
657
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
668
                                                                              // Useful to retract a deployable Z probe.

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

482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
482
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
483
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
491
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
486
 // :{0:'Low',1:'High'}
492
 // :{0:'Low',1:'High'}
487
 #define X_ENABLE_ON 0
493
 #define X_ENABLE_ON 0
631
     #define ABL_PROBE_PT_3_X 170
637
     #define ABL_PROBE_PT_3_X 170
632
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
642
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
637
   // X and Y offsets must be integers.
643
   // X and Y offsets must be integers.
656
 
662
 
657
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
668
                                                                              // Useful to retract a deployable Z probe.

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

471
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
471
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
472
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
480
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
475
 // :{0:'Low',1:'High'}
481
 // :{0:'Low',1:'High'}
476
 #define X_ENABLE_ON 0
482
 #define X_ENABLE_ON 0
620
     #define ABL_PROBE_PT_3_X 170
626
     #define ABL_PROBE_PT_3_X 170
621
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
631
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
626
   // X and Y offsets must be integers.
632
   // X and Y offsets must be integers.
647
 
653
 
648
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
659
                                                                              // Useful to retract a deployable Z probe.

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

480
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
480
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
481
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
489
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
484
 // :{0:'Low',1:'High'}
490
 // :{0:'Low',1:'High'}
485
 #define X_ENABLE_ON 0
491
 #define X_ENABLE_ON 0
629
     #define ABL_PROBE_PT_3_X 170
635
     #define ABL_PROBE_PT_3_X 170
630
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
640
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
635
   // X and Y offsets must be integers.
641
   // X and Y offsets must be integers.
654
 
660
 
655
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 10 // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
666
                                                                              // Useful to retract a deployable Z probe.

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

443
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
443
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
444
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
452
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
447
 // :{0:'Low',1:'High'}
453
 // :{0:'Low',1:'High'}
448
 #define X_ENABLE_ON 0
454
 #define X_ENABLE_ON 0
588
     #define ABL_PROBE_PT_3_X 170
594
     #define ABL_PROBE_PT_3_X 170
589
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
599
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
594
   // X and Y offsets must be integers.
600
   // X and Y offsets must be integers.
613
 
619
 
614
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #define Z_RAISE_BETWEEN_PROBINGS 5  // How much the Z axis will be raised when traveling from between next probing points.
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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
625
                                                                              // Useful to retract a deployable Z probe.

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

430
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
430
 // If you're using the Z MIN endstop connector for your Z probe, this has no effect.
431
 //#define DISABLE_Z_MIN_PROBE_ENDSTOP
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
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
439
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
434
 // :{0:'Low',1:'High'}
440
 // :{0:'Low',1:'High'}
435
 #define X_ENABLE_ON 1
441
 #define X_ENABLE_ON 1
575
     #define ABL_PROBE_PT_3_X 170
581
     #define ABL_PROBE_PT_3_X 170
576
     #define ABL_PROBE_PT_3_Y 20
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
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
586
   // Z Probe to nozzle (X,Y) offset, relative to (0, 0).
581
   // X and Y offsets must be integers.
587
   // X and Y offsets must be integers.
600
 
606
 
601
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
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
   #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_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
   //#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.
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
                                                                              // Useful to retract a deployable Z probe.
612
                                                                              // Useful to retract a deployable Z probe.

Loading…
Cancel
Save