Sfoglia il codice sorgente

Event G-code for Stop SD Print (#13547)

Co-Authored-By: 7eggert <7eggert@gmx.de>
Co-Authored-By: robbycandra <robbycandra.mail@gmail.com>
Robby Candra 5 anni fa
parent
commit
46445a5a16
76 ha cambiato i file con 229 aggiunte e 148 eliminazioni
  1. 3
    2
      Marlin/Configuration_adv.h
  2. 3
    0
      Marlin/src/Marlin.cpp
  3. 4
    0
      Marlin/src/inc/SanityCheck.h
  4. 3
    2
      config/default/Configuration_adv.h
  5. 3
    2
      config/examples/3DFabXYZ/Migbot/Configuration_adv.h
  6. 3
    2
      config/examples/AlephObjects/TAZ4/Configuration_adv.h
  7. 3
    2
      config/examples/AliExpress/UM2pExt/Configuration_adv.h
  8. 3
    2
      config/examples/Anet/A2/Configuration_adv.h
  9. 3
    2
      config/examples/Anet/A2plus/Configuration_adv.h
  10. 3
    2
      config/examples/Anet/A6/Configuration_adv.h
  11. 3
    2
      config/examples/Anet/A8/Configuration_adv.h
  12. 3
    2
      config/examples/AnyCubic/i3/Configuration_adv.h
  13. 3
    2
      config/examples/ArmEd/Configuration_adv.h
  14. 3
    2
      config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  15. 3
    2
      config/examples/BIBO/TouchX/default/Configuration_adv.h
  16. 3
    2
      config/examples/BQ/Hephestos/Configuration_adv.h
  17. 3
    2
      config/examples/BQ/Hephestos_2/Configuration_adv.h
  18. 3
    2
      config/examples/BQ/WITBOX/Configuration_adv.h
  19. 3
    2
      config/examples/Cartesio/Configuration_adv.h
  20. 3
    2
      config/examples/Creality/CR-10/Configuration_adv.h
  21. 3
    2
      config/examples/Creality/CR-10S/Configuration_adv.h
  22. 3
    2
      config/examples/Creality/CR-10_5S/Configuration_adv.h
  23. 3
    2
      config/examples/Creality/CR-10mini/Configuration_adv.h
  24. 3
    2
      config/examples/Creality/CR-8/Configuration_adv.h
  25. 3
    2
      config/examples/Creality/Ender-2/Configuration_adv.h
  26. 3
    2
      config/examples/Creality/Ender-3/Configuration_adv.h
  27. 3
    2
      config/examples/Creality/Ender-4/Configuration_adv.h
  28. 3
    2
      config/examples/Einstart-S/Configuration_adv.h
  29. 3
    2
      config/examples/Felix/Configuration_adv.h
  30. 3
    2
      config/examples/FlashForge/CreatorPro/Configuration_adv.h
  31. 3
    2
      config/examples/FolgerTech/i3-2020/Configuration_adv.h
  32. 3
    2
      config/examples/Formbot/Raptor/Configuration_adv.h
  33. 3
    2
      config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  34. 3
    2
      config/examples/Formbot/T_Rex_3/Configuration_adv.h
  35. 3
    2
      config/examples/Geeetech/A10M/Configuration_adv.h
  36. 3
    2
      config/examples/Geeetech/A20M/Configuration_adv.h
  37. 3
    2
      config/examples/Geeetech/MeCreator2/Configuration_adv.h
  38. 3
    2
      config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  39. 3
    2
      config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  40. 3
    2
      config/examples/Infitary/i3-M508/Configuration_adv.h
  41. 3
    2
      config/examples/JGAurora/A5/Configuration_adv.h
  42. 3
    2
      config/examples/MakerParts/Configuration_adv.h
  43. 3
    2
      config/examples/Malyan/M150/Configuration_adv.h
  44. 3
    2
      config/examples/Malyan/M200/Configuration_adv.h
  45. 3
    2
      config/examples/Micromake/C1/enhanced/Configuration_adv.h
  46. 3
    2
      config/examples/Mks/Robin/Configuration_adv.h
  47. 3
    2
      config/examples/Mks/Sbase/Configuration_adv.h
  48. 3
    2
      config/examples/RapideLite/RL200/Configuration_adv.h
  49. 3
    2
      config/examples/RigidBot/Configuration_adv.h
  50. 3
    2
      config/examples/SCARA/Configuration_adv.h
  51. 3
    2
      config/examples/Sanguinololu/Configuration_adv.h
  52. 3
    2
      config/examples/TheBorg/Configuration_adv.h
  53. 3
    2
      config/examples/TinyBoy2/Configuration_adv.h
  54. 3
    2
      config/examples/Tronxy/X3A/Configuration_adv.h
  55. 3
    2
      config/examples/Tronxy/X5S-2E/Configuration_adv.h
  56. 3
    2
      config/examples/UltiMachine/Archim1/Configuration_adv.h
  57. 3
    2
      config/examples/UltiMachine/Archim2/Configuration_adv.h
  58. 3
    2
      config/examples/VORONDesign/Configuration_adv.h
  59. 3
    2
      config/examples/Velleman/K8200/Configuration_adv.h
  60. 3
    2
      config/examples/Velleman/K8400/Configuration_adv.h
  61. 3
    2
      config/examples/WASP/PowerWASP/Configuration_adv.h
  62. 3
    2
      config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  63. 3
    2
      config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  64. 3
    2
      config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  65. 3
    2
      config/examples/delta/FLSUN/kossel/Configuration_adv.h
  66. 3
    2
      config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  67. 3
    2
      config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h
  68. 3
    2
      config/examples/delta/MKS/SBASE/Configuration_adv.h
  69. 3
    2
      config/examples/delta/Tevo Little Monster/Configuration_adv.h
  70. 3
    2
      config/examples/delta/generic/Configuration_adv.h
  71. 3
    2
      config/examples/delta/kossel_mini/Configuration_adv.h
  72. 3
    2
      config/examples/delta/kossel_xl/Configuration_adv.h
  73. 3
    2
      config/examples/gCreate/gMax1.5+/Configuration_adv.h
  74. 3
    2
      config/examples/makibox/Configuration_adv.h
  75. 3
    2
      config/examples/tvrrug/Round2/Configuration_adv.h
  76. 3
    2
      config/examples/wt150/Configuration_adv.h

+ 3
- 2
Marlin/Configuration_adv.h Vedi File

@@ -770,8 +770,9 @@
770 770
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
771 771
   #define SDCARD_RATHERRECENTFIRST
772 772
 
773
-  // Add an option in the menu to run all auto#.g files
774
-  //#define MENU_ADDAUTOSTART
773
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
774
+
775
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
775 776
 
776 777
   /**
777 778
    * Continue after Power-Loss (Creality3D)

+ 3
- 0
Marlin/src/Marlin.cpp Vedi File

@@ -1143,6 +1143,9 @@ void loop() {
1143 1143
         #if ENABLED(POWER_LOSS_RECOVERY)
1144 1144
           card.removeJobRecoveryFile();
1145 1145
         #endif
1146
+        #ifdef EVENT_GCODE_SD_STOP
1147
+          enqueue_and_echo_commands_P(PSTR(EVENT_GCODE_SD_STOP));
1148
+        #endif  
1146 1149
       }
1147 1150
     #endif // SDSUPPORT
1148 1151
 

+ 4
- 0
Marlin/src/inc/SanityCheck.h Vedi File

@@ -551,6 +551,10 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
551 551
   #endif
552 552
 #endif
553 553
 
554
+#if defined(EVENT_GCODE_SD_STOP) && DISABLED(NOZZLE_PARK_FEATURE)
555
+  static_assert(NULL == strstr(EVENT_GCODE_SD_STOP, "G27"), "NOZZLE_PARK_FEATURE is required to use G27 in EVENT_GCODE_SD_STOP.");
556
+#endif
557
+
554 558
 /**
555 559
  * I2C Position Encoders
556 560
  */

+ 3
- 2
config/default/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/3DFabXYZ/Migbot/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/AlephObjects/TAZ4/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/AliExpress/UM2pExt/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Anet/A2/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Anet/A2plus/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Anet/A6/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Anet/A8/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/AnyCubic/i3/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/ArmEd/Configuration_adv.h Vedi File

@@ -777,8 +777,9 @@
777 777
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
778 778
   #define SDCARD_RATHERRECENTFIRST
779 779
 
780
-  // Add an option in the menu to run all auto#.g files
781
-  //#define MENU_ADDAUTOSTART
780
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
781
+
782
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
782 783
 
783 784
   /**
784 785
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/BIBO/TouchX/cyclops/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/BIBO/TouchX/default/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/BQ/Hephestos/Configuration_adv.h Vedi File

@@ -770,8 +770,9 @@
770 770
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
771 771
   #define SDCARD_RATHERRECENTFIRST
772 772
 
773
-  // Add an option in the menu to run all auto#.g files
774
-  //#define MENU_ADDAUTOSTART
773
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
774
+
775
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
775 776
 
776 777
   /**
777 778
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/BQ/Hephestos_2/Configuration_adv.h Vedi File

@@ -778,8 +778,9 @@
778 778
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
779 779
   #define SDCARD_RATHERRECENTFIRST
780 780
 
781
-  // Add an option in the menu to run all auto#.g files
782
-  //#define MENU_ADDAUTOSTART
781
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
782
+
783
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
783 784
 
784 785
   /**
785 786
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/BQ/WITBOX/Configuration_adv.h Vedi File

@@ -770,8 +770,9 @@
770 770
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
771 771
   #define SDCARD_RATHERRECENTFIRST
772 772
 
773
-  // Add an option in the menu to run all auto#.g files
774
-  //#define MENU_ADDAUTOSTART
773
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
774
+
775
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
775 776
 
776 777
   /**
777 778
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Cartesio/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/CR-10/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/CR-10S/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/CR-10_5S/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/CR-10mini/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/CR-8/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/Ender-2/Configuration_adv.h Vedi File

@@ -770,8 +770,9 @@
770 770
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
771 771
   #define SDCARD_RATHERRECENTFIRST
772 772
 
773
-  // Add an option in the menu to run all auto#.g files
774
-  //#define MENU_ADDAUTOSTART
773
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
774
+
775
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
775 776
 
776 777
   /**
777 778
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/Ender-3/Configuration_adv.h Vedi File

@@ -770,8 +770,9 @@
770 770
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
771 771
   #define SDCARD_RATHERRECENTFIRST
772 772
 
773
-  // Add an option in the menu to run all auto#.g files
774
-  //#define MENU_ADDAUTOSTART
773
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
774
+
775
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
775 776
 
776 777
   /**
777 778
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Creality/Ender-4/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Einstart-S/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Felix/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/FlashForge/CreatorPro/Configuration_adv.h Vedi File

@@ -769,8 +769,9 @@
769 769
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
770 770
   #define SDCARD_RATHERRECENTFIRST
771 771
 
772
-  // Add an option in the menu to run all auto#.g files
773
-  //#define MENU_ADDAUTOSTART
772
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
773
+
774
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
774 775
 
775 776
   /**
776 777
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/FolgerTech/i3-2020/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Formbot/Raptor/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Formbot/T_Rex_2+/Configuration_adv.h Vedi File

@@ -777,8 +777,9 @@
777 777
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
778 778
   #define SDCARD_RATHERRECENTFIRST
779 779
 
780
-  // Add an option in the menu to run all auto#.g files
781
-  //#define MENU_ADDAUTOSTART
780
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
781
+
782
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
782 783
 
783 784
   /**
784 785
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Formbot/T_Rex_3/Configuration_adv.h Vedi File

@@ -777,8 +777,9 @@
777 777
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
778 778
   #define SDCARD_RATHERRECENTFIRST
779 779
 
780
-  // Add an option in the menu to run all auto#.g files
781
-  //#define MENU_ADDAUTOSTART
780
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
781
+
782
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
782 783
 
783 784
   /**
784 785
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Geeetech/A10M/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Geeetech/A20M/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Geeetech/MeCreator2/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Infitary/i3-M508/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/JGAurora/A5/Configuration_adv.h Vedi File

@@ -770,8 +770,9 @@
770 770
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
771 771
   #define SDCARD_RATHERRECENTFIRST
772 772
 
773
-  // Add an option in the menu to run all auto#.g files
774
-  //#define MENU_ADDAUTOSTART
773
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
774
+
775
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
775 776
 
776 777
   /**
777 778
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/MakerParts/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Malyan/M150/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Malyan/M200/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Micromake/C1/enhanced/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Mks/Robin/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Mks/Sbase/Configuration_adv.h Vedi File

@@ -774,8 +774,9 @@
774 774
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
775 775
   #define SDCARD_RATHERRECENTFIRST
776 776
 
777
-  // Add an option in the menu to run all auto#.g files
778
-  //#define MENU_ADDAUTOSTART
777
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
778
+
779
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
779 780
 
780 781
   /**
781 782
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/RapideLite/RL200/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/RigidBot/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/SCARA/Configuration_adv.h Vedi File

@@ -770,8 +770,9 @@
770 770
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
771 771
   #define SDCARD_RATHERRECENTFIRST
772 772
 
773
-  // Add an option in the menu to run all auto#.g files
774
-  //#define MENU_ADDAUTOSTART
773
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
774
+
775
+  //#define EVENT_GCODE_SD_STOP "G28XY"     // G-code to run on Stop Print (e.g., "G28XY" or "G27")
775 776
 
776 777
   /**
777 778
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Sanguinololu/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/TheBorg/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/TinyBoy2/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Tronxy/X3A/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Tronxy/X5S-2E/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/UltiMachine/Archim1/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/UltiMachine/Archim2/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/VORONDesign/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Velleman/K8200/Configuration_adv.h Vedi File

@@ -786,8 +786,9 @@
786 786
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
787 787
   #define SDCARD_RATHERRECENTFIRST
788 788
 
789
-  // Add an option in the menu to run all auto#.g files
790
-  //#define MENU_ADDAUTOSTART
789
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
790
+
791
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
791 792
 
792 793
   /**
793 794
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Velleman/K8400/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/WASP/PowerWASP/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/Wanhao/Duplicator 6/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/Anycubic/Kossel/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/FLSUN/kossel/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/Geeetech/Rostock 301/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/MKS/SBASE/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/Tevo Little Monster/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/generic/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/kossel_mini/Configuration_adv.h Vedi File

@@ -771,8 +771,9 @@
771 771
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
772 772
   #define SDCARD_RATHERRECENTFIRST
773 773
 
774
-  // Add an option in the menu to run all auto#.g files
775
-  //#define MENU_ADDAUTOSTART
774
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
775
+
776
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
776 777
 
777 778
   /**
778 779
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/delta/kossel_xl/Configuration_adv.h Vedi File

@@ -772,8 +772,9 @@
772 772
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
773 773
   #define SDCARD_RATHERRECENTFIRST
774 774
 
775
-  // Add an option in the menu to run all auto#.g files
776
-  //#define MENU_ADDAUTOSTART
775
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
776
+
777
+  #define EVENT_GCODE_SD_STOP "G28"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
777 778
 
778 779
   /**
779 780
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/gCreate/gMax1.5+/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/makibox/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/tvrrug/Round2/Configuration_adv.h Vedi File

@@ -773,8 +773,9 @@
773 773
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
774 774
   #define SDCARD_RATHERRECENTFIRST
775 775
 
776
-  // Add an option in the menu to run all auto#.g files
777
-  //#define MENU_ADDAUTOSTART
776
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
777
+
778
+  #define EVENT_GCODE_SD_STOP "G27"         // G-code to run on Stop Print (e.g., "G28XY" or "G27")
778 779
 
779 780
   /**
780 781
    * Continue after Power-Loss (Creality3D)

+ 3
- 2
config/examples/wt150/Configuration_adv.h Vedi File

@@ -774,8 +774,9 @@
774 774
   // Since the FAT gets out of order with usage, SDCARD_SORT_ALPHA is recommended.
775 775
   #define SDCARD_RATHERRECENTFIRST
776 776
 
777
-  // Add an option in the menu to run all auto#.g files
778
-  //#define MENU_ADDAUTOSTART
777
+  //#define MENU_ADDAUTOSTART               // Add a menu option to run auto#.g files
778
+
779
+  #define EVENT_GCODE_SD_STOP "G28XY"       // G-code to run on Stop Print (e.g., "G28XY" or "G27")
779 780
 
780 781
   /**
781 782
    * Continue after Power-Loss (Creality3D)

Loading…
Annulla
Salva