Procházet zdrojové kódy

G425/G35 menu items; G425 pre- and post- scripts (#18737)

InsanityAutomation před 4 roky
rodič
revize
c5ec80d6c7
No account linked to committer's email address

+ 3
- 0
Marlin/Configuration_adv.h Zobrazit soubor

@@ -898,6 +898,9 @@
898 898
 //#define CALIBRATION_GCODE
899 899
 #if ENABLED(CALIBRATION_GCODE)
900 900
 
901
+  //#define CALIBRATION_SCRIPT_PRE  "M117 Starting Auto-Calibration\nT0\nG28\nG12\nM117 Calibrating..."
902
+  //#define CALIBRATION_SCRIPT_POST "M500\nM117 Calibration data saved"
903
+
901 904
   #define CALIBRATION_MEASUREMENT_RESOLUTION     0.01 // mm
902 905
 
903 906
   #define CALIBRATION_FEEDRATE_SLOW             60    // mm/m

+ 9
- 0
Marlin/src/gcode/calibrate/G425.cpp Zobrazit soubor

@@ -576,6 +576,11 @@ inline void calibrate_all() {
576 576
  *   no args     - Perform entire calibration sequence (backlash + position on all toolheads)
577 577
  */
578 578
 void GcodeSuite::G425() {
579
+
580
+  #ifdef CALIBRATION_SCRIPT_PRE
581
+    GcodeSuite::process_subcommands_now_P(PSTR(CALIBRATION_SCRIPT_PRE));
582
+  #endif
583
+
579 584
   TEMPORARY_SOFT_ENDSTOP_STATE(false);
580 585
   TEMPORARY_BED_LEVELING_STATE(false);
581 586
 
@@ -606,6 +611,10 @@ void GcodeSuite::G425() {
606 611
   #endif
607 612
   else
608 613
     calibrate_all();
614
+
615
+  #ifdef CALIBRATION_SCRIPT_POST
616
+    GcodeSuite::process_subcommands_now_P(PSTR(CALIBRATION_SCRIPT_POST));
617
+  #endif
609 618
 }
610 619
 
611 620
 #endif // CALIBRATION_GCODE

+ 1
- 0
Marlin/src/lcd/language/language_en.h Zobrazit soubor

@@ -66,6 +66,7 @@ namespace Language_en {
66 66
   PROGMEM Language_Str MSG_AUTO_HOME_Y                     = _UxGT("Home Y");
67 67
   PROGMEM Language_Str MSG_AUTO_HOME_Z                     = _UxGT("Home Z");
68 68
   PROGMEM Language_Str MSG_AUTO_Z_ALIGN                    = _UxGT("Auto Z-Align");
69
+  PROGMEM Language_Str MSG_ASSISTED_TRAMMING               = _UxGT("Assisted Tramming");
69 70
   PROGMEM Language_Str MSG_LEVEL_BED_HOMING                = _UxGT("Homing XYZ");
70 71
   PROGMEM Language_Str MSG_LEVEL_BED_WAITING               = _UxGT("Click to Begin");
71 72
   PROGMEM Language_Str MSG_LEVEL_BED_NEXT_POINT            = _UxGT("Next Point");

+ 14
- 0
Marlin/src/lcd/menu/menu_motion.cpp Zobrazit soubor

@@ -326,6 +326,13 @@ void menu_motion() {
326 326
   #endif
327 327
 
328 328
   //
329
+  // Auto-calibration
330
+  //
331
+  #if ENABLED(CALIBRATION_GCODE)
332
+    GCODES_ITEM(MSG_AUTO_CALIBRATE, PSTR("G425"));
333
+  #endif
334
+
335
+  //
329 336
   // Auto Z-Align
330 337
   //
331 338
   #if ENABLED(Z_STEPPER_AUTO_ALIGN)
@@ -333,6 +340,13 @@ void menu_motion() {
333 340
   #endif
334 341
 
335 342
   //
343
+  // Assisted Bed Tramming
344
+  //
345
+  #if ENABLED(ASSISTED_TRAMMING)
346
+    GCODES_ITEM(MSG_ASSISTED_TRAMMING, PSTR("G35"));
347
+  #endif
348
+  
349
+  //
336 350
   // Level Bed
337 351
   //
338 352
   #if ENABLED(AUTO_BED_LEVELING_UBL)

Loading…
Zrušit
Uložit