Browse Source

Add G29_RETRY_AND_RECOVER to example configs

Scott Lahteine 6 years ago
parent
commit
6faa93d787
45 changed files with 1080 additions and 0 deletions
  1. 24
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  2. 24
    0
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  3. 24
    0
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  4. 24
    0
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  5. 24
    0
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  6. 24
    0
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
  7. 24
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  8. 24
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  9. 24
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  10. 24
    0
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  11. 24
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  12. 24
    0
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  13. 24
    0
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  14. 24
    0
      Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
  15. 24
    0
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  16. 24
    0
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  17. 24
    0
      Marlin/src/config/examples/Felix/Configuration_adv.h
  18. 24
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  19. 24
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  20. 24
    0
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  21. 24
    0
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  22. 24
    0
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  23. 24
    0
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  24. 24
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  25. 24
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  26. 24
    0
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  27. 24
    0
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  28. 24
    0
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  29. 24
    0
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  30. 24
    0
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  31. 24
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  32. 24
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  33. 24
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  34. 24
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  35. 24
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  36. 24
    0
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  37. 24
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  38. 24
    0
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  39. 24
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  40. 24
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  41. 24
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  42. 24
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  43. 24
    0
      Marlin/src/config/examples/makibox/Configuration_adv.h
  44. 24
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  45. 24
    0
      Marlin/src/config/examples/wt150/Configuration_adv.h

+ 24
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Anet/A6/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Anet/A8/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Cartesio/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Felix/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/MakerParts/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h View File

@@ -754,6 +754,30 @@
754 754
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
755 755
 #endif
756 756
 
757
+/**
758
+ * Repeatedly attempt G29 leveling until it succeeds.
759
+ * Stop after G29_MAX_RETRIES attempts.
760
+ */
761
+//#define G29_RETRY_AND_RECOVER
762
+#if ENABLED(G29_RETRY_AND_RECOVER)
763
+  #define G29_MAX_RETRIES 3
764
+  #define G29_HALT_ON_FAILURE
765
+  /**
766
+   * Specify the GCODE commands that will be executed when leveling succeeds,
767
+   * between attempts, and after the maximum number of retries have been tried.
768
+   */
769
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
770
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
771
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
772
+  /**
773
+   * Specify an action command to send to the host on a recovery attempt or failure.
774
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
775
+   * The host must be configured to handle the action command.
776
+   */
777
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
778
+  #define G29_ACTION_ON_FAILURE "probe_failed"
779
+#endif
780
+
757 781
 // @section extras
758 782
 
759 783
 //

+ 24
- 0
Marlin/src/config/examples/RigidBot/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/SCARA/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/TheBorg/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h View File

@@ -759,6 +759,30 @@
759 759
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
760 760
 #endif
761 761
 
762
+/**
763
+ * Repeatedly attempt G29 leveling until it succeeds.
764
+ * Stop after G29_MAX_RETRIES attempts.
765
+ */
766
+//#define G29_RETRY_AND_RECOVER
767
+#if ENABLED(G29_RETRY_AND_RECOVER)
768
+  #define G29_MAX_RETRIES 3
769
+  #define G29_HALT_ON_FAILURE
770
+  /**
771
+   * Specify the GCODE commands that will be executed when leveling succeeds,
772
+   * between attempts, and after the maximum number of retries have been tried.
773
+   */
774
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
775
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
776
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
777
+  /**
778
+   * Specify an action command to send to the host on a recovery attempt or failure.
779
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
780
+   * The host must be configured to handle the action command.
781
+   */
782
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
783
+  #define G29_ACTION_ON_FAILURE "probe_failed"
784
+#endif
785
+
762 786
 // @section extras
763 787
 
764 788
 //

+ 24
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

@@ -748,6 +748,30 @@
748 748
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
749 749
 #endif
750 750
 
751
+/**
752
+ * Repeatedly attempt G29 leveling until it succeeds.
753
+ * Stop after G29_MAX_RETRIES attempts.
754
+ */
755
+//#define G29_RETRY_AND_RECOVER
756
+#if ENABLED(G29_RETRY_AND_RECOVER)
757
+  #define G29_MAX_RETRIES 3
758
+  #define G29_HALT_ON_FAILURE
759
+  /**
760
+   * Specify the GCODE commands that will be executed when leveling succeeds,
761
+   * between attempts, and after the maximum number of retries have been tried.
762
+   */
763
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
764
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
765
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
766
+  /**
767
+   * Specify an action command to send to the host on a recovery attempt or failure.
768
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
769
+   * The host must be configured to handle the action command.
770
+   */
771
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
772
+  #define G29_ACTION_ON_FAILURE "probe_failed"
773
+#endif
774
+
751 775
 // @section extras
752 776
 
753 777
 //

+ 24
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -748,6 +748,30 @@
748 748
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
749 749
 #endif
750 750
 
751
+/**
752
+ * Repeatedly attempt G29 leveling until it succeeds.
753
+ * Stop after G29_MAX_RETRIES attempts.
754
+ */
755
+//#define G29_RETRY_AND_RECOVER
756
+#if ENABLED(G29_RETRY_AND_RECOVER)
757
+  #define G29_MAX_RETRIES 3
758
+  #define G29_HALT_ON_FAILURE
759
+  /**
760
+   * Specify the GCODE commands that will be executed when leveling succeeds,
761
+   * between attempts, and after the maximum number of retries have been tried.
762
+   */
763
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
764
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
765
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
766
+  /**
767
+   * Specify an action command to send to the host on a recovery attempt or failure.
768
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
769
+   * The host must be configured to handle the action command.
770
+   */
771
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
772
+  #define G29_ACTION_ON_FAILURE "probe_failed"
773
+#endif
774
+
751 775
 // @section extras
752 776
 
753 777
 //

+ 24
- 0
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h View File

@@ -748,6 +748,30 @@
748 748
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
749 749
 #endif
750 750
 
751
+/**
752
+ * Repeatedly attempt G29 leveling until it succeeds.
753
+ * Stop after G29_MAX_RETRIES attempts.
754
+ */
755
+//#define G29_RETRY_AND_RECOVER
756
+#if ENABLED(G29_RETRY_AND_RECOVER)
757
+  #define G29_MAX_RETRIES 3
758
+  #define G29_HALT_ON_FAILURE
759
+  /**
760
+   * Specify the GCODE commands that will be executed when leveling succeeds,
761
+   * between attempts, and after the maximum number of retries have been tried.
762
+   */
763
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
764
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
765
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
766
+  /**
767
+   * Specify an action command to send to the host on a recovery attempt or failure.
768
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
769
+   * The host must be configured to handle the action command.
770
+   */
771
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
772
+  #define G29_ACTION_ON_FAILURE "probe_failed"
773
+#endif
774
+
751 775
 // @section extras
752 776
 
753 777
 //

+ 24
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -748,6 +748,30 @@
748 748
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
749 749
 #endif
750 750
 
751
+/**
752
+ * Repeatedly attempt G29 leveling until it succeeds.
753
+ * Stop after G29_MAX_RETRIES attempts.
754
+ */
755
+//#define G29_RETRY_AND_RECOVER
756
+#if ENABLED(G29_RETRY_AND_RECOVER)
757
+  #define G29_MAX_RETRIES 3
758
+  #define G29_HALT_ON_FAILURE
759
+  /**
760
+   * Specify the GCODE commands that will be executed when leveling succeeds,
761
+   * between attempts, and after the maximum number of retries have been tried.
762
+   */
763
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
764
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
765
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
766
+  /**
767
+   * Specify an action command to send to the host on a recovery attempt or failure.
768
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
769
+   * The host must be configured to handle the action command.
770
+   */
771
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
772
+  #define G29_ACTION_ON_FAILURE "probe_failed"
773
+#endif
774
+
751 775
 // @section extras
752 776
 
753 777
 //

+ 24
- 0
Marlin/src/config/examples/delta/generic/Configuration_adv.h View File

@@ -748,6 +748,30 @@
748 748
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
749 749
 #endif
750 750
 
751
+/**
752
+ * Repeatedly attempt G29 leveling until it succeeds.
753
+ * Stop after G29_MAX_RETRIES attempts.
754
+ */
755
+//#define G29_RETRY_AND_RECOVER
756
+#if ENABLED(G29_RETRY_AND_RECOVER)
757
+  #define G29_MAX_RETRIES 3
758
+  #define G29_HALT_ON_FAILURE
759
+  /**
760
+   * Specify the GCODE commands that will be executed when leveling succeeds,
761
+   * between attempts, and after the maximum number of retries have been tried.
762
+   */
763
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
764
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
765
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
766
+  /**
767
+   * Specify an action command to send to the host on a recovery attempt or failure.
768
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
769
+   * The host must be configured to handle the action command.
770
+   */
771
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
772
+  #define G29_ACTION_ON_FAILURE "probe_failed"
773
+#endif
774
+
751 775
 // @section extras
752 776
 
753 777
 //

+ 24
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h View File

@@ -748,6 +748,30 @@
748 748
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
749 749
 #endif
750 750
 
751
+/**
752
+ * Repeatedly attempt G29 leveling until it succeeds.
753
+ * Stop after G29_MAX_RETRIES attempts.
754
+ */
755
+//#define G29_RETRY_AND_RECOVER
756
+#if ENABLED(G29_RETRY_AND_RECOVER)
757
+  #define G29_MAX_RETRIES 3
758
+  #define G29_HALT_ON_FAILURE
759
+  /**
760
+   * Specify the GCODE commands that will be executed when leveling succeeds,
761
+   * between attempts, and after the maximum number of retries have been tried.
762
+   */
763
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
764
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
765
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
766
+  /**
767
+   * Specify an action command to send to the host on a recovery attempt or failure.
768
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
769
+   * The host must be configured to handle the action command.
770
+   */
771
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
772
+  #define G29_ACTION_ON_FAILURE "probe_failed"
773
+#endif
774
+
751 775
 // @section extras
752 776
 
753 777
 //

+ 24
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h View File

@@ -753,6 +753,30 @@
753 753
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
754 754
 #endif
755 755
 
756
+/**
757
+ * Repeatedly attempt G29 leveling until it succeeds.
758
+ * Stop after G29_MAX_RETRIES attempts.
759
+ */
760
+//#define G29_RETRY_AND_RECOVER
761
+#if ENABLED(G29_RETRY_AND_RECOVER)
762
+  #define G29_MAX_RETRIES 3
763
+  #define G29_HALT_ON_FAILURE
764
+  /**
765
+   * Specify the GCODE commands that will be executed when leveling succeeds,
766
+   * between attempts, and after the maximum number of retries have been tried.
767
+   */
768
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
769
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
770
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
771
+  /**
772
+   * Specify an action command to send to the host on a recovery attempt or failure.
773
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
774
+   * The host must be configured to handle the action command.
775
+   */
776
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
777
+  #define G29_ACTION_ON_FAILURE "probe_failed"
778
+#endif
779
+
756 780
 // @section extras
757 781
 
758 782
 //

+ 24
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h View File

@@ -748,6 +748,30 @@
748 748
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
749 749
 #endif
750 750
 
751
+/**
752
+ * Repeatedly attempt G29 leveling until it succeeds.
753
+ * Stop after G29_MAX_RETRIES attempts.
754
+ */
755
+//#define G29_RETRY_AND_RECOVER
756
+#if ENABLED(G29_RETRY_AND_RECOVER)
757
+  #define G29_MAX_RETRIES 3
758
+  #define G29_HALT_ON_FAILURE
759
+  /**
760
+   * Specify the GCODE commands that will be executed when leveling succeeds,
761
+   * between attempts, and after the maximum number of retries have been tried.
762
+   */
763
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
764
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
765
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
766
+  /**
767
+   * Specify an action command to send to the host on a recovery attempt or failure.
768
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
769
+   * The host must be configured to handle the action command.
770
+   */
771
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
772
+  #define G29_ACTION_ON_FAILURE "probe_failed"
773
+#endif
774
+
751 775
 // @section extras
752 776
 
753 777
 //

+ 24
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/makibox/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h View File

@@ -746,6 +746,30 @@
746 746
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
747 747
 #endif
748 748
 
749
+/**
750
+ * Repeatedly attempt G29 leveling until it succeeds.
751
+ * Stop after G29_MAX_RETRIES attempts.
752
+ */
753
+//#define G29_RETRY_AND_RECOVER
754
+#if ENABLED(G29_RETRY_AND_RECOVER)
755
+  #define G29_MAX_RETRIES 3
756
+  #define G29_HALT_ON_FAILURE
757
+  /**
758
+   * Specify the GCODE commands that will be executed when leveling succeeds,
759
+   * between attempts, and after the maximum number of retries have been tried.
760
+   */
761
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
762
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
763
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
764
+  /**
765
+   * Specify an action command to send to the host on a recovery attempt or failure.
766
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
767
+   * The host must be configured to handle the action command.
768
+   */
769
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
770
+  #define G29_ACTION_ON_FAILURE "probe_failed"
771
+#endif
772
+
749 773
 // @section extras
750 774
 
751 775
 //

+ 24
- 0
Marlin/src/config/examples/wt150/Configuration_adv.h View File

@@ -747,6 +747,30 @@
747 747
   //#define MESH_MAX_Y Y_BED_SIZE - (MESH_INSET)
748 748
 #endif
749 749
 
750
+/**
751
+ * Repeatedly attempt G29 leveling until it succeeds.
752
+ * Stop after G29_MAX_RETRIES attempts.
753
+ */
754
+//#define G29_RETRY_AND_RECOVER
755
+#if ENABLED(G29_RETRY_AND_RECOVER)
756
+  #define G29_MAX_RETRIES 3
757
+  #define G29_HALT_ON_FAILURE
758
+  /**
759
+   * Specify the GCODE commands that will be executed when leveling succeeds,
760
+   * between attempts, and after the maximum number of retries have been tried.
761
+   */
762
+  #define G29_SUCCESS_COMMANDS "M117 Bed leveling done."
763
+  #define G29_RECOVER_COMMANDS "M117 Probe failed. Rewiping.\nG28\nG12 P0 S12 T0"
764
+  #define G29_FAILURE_COMMANDS "M117 Bed leveling failed.\nG0 Z10\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nM300 P25 S880\nM300 P50 S0\nG4 S1"
765
+  /**
766
+   * Specify an action command to send to the host on a recovery attempt or failure.
767
+   * Will be sent in the form '//action:ACTION_ON_G29_FAILURE', e.g. '//action:probe_failed'.
768
+   * The host must be configured to handle the action command.
769
+   */
770
+  #define G29_ACTION_ON_RECOVER "probe_rewipe"
771
+  #define G29_ACTION_ON_FAILURE "probe_failed"
772
+#endif
773
+
750 774
 // @section extras
751 775
 
752 776
 //

Loading…
Cancel
Save