Quellcode durchsuchen

Unify run_z_probe

Unify run_z_probe
Add double touch for DELTAs.
Introduce Z_PROBE_SPEED_FAST and Z_PROBE_SPEED_SLOW
  defaulting to homing_feedrate_mm_m[Z_AXIS] and homing_feedrate_mm_m[Z_AXIS]/2
AnHardt vor 9 Jahren
Ursprung
Commit
09a3cc33e6
23 geänderte Dateien mit 114 neuen und 77 gelöschten Zeilen
  1. 4
    0
      Marlin/Configuration.h
  2. 26
    77
      Marlin/Marlin_main.cpp
  3. 4
    0
      Marlin/example_configurations/Cartesio/Configuration.h
  4. 4
    0
      Marlin/example_configurations/Felix/Configuration.h
  5. 4
    0
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  6. 4
    0
      Marlin/example_configurations/Hephestos/Configuration.h
  7. 4
    0
      Marlin/example_configurations/Hephestos_2/Configuration.h
  8. 4
    0
      Marlin/example_configurations/K8200/Configuration.h
  9. 4
    0
      Marlin/example_configurations/K8400/Configuration.h
  10. 4
    0
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  11. 4
    0
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  12. 4
    0
      Marlin/example_configurations/RigidBot/Configuration.h
  13. 4
    0
      Marlin/example_configurations/SCARA/Configuration.h
  14. 4
    0
      Marlin/example_configurations/TAZ4/Configuration.h
  15. 4
    0
      Marlin/example_configurations/WITBOX/Configuration.h
  16. 4
    0
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  17. 4
    0
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  18. 4
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  19. 4
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  20. 4
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  21. 4
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  22. 4
    0
      Marlin/example_configurations/makibox/Configuration.h
  23. 4
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h

+ 4
- 0
Marlin/Configuration.h Datei anzeigen

@@ -499,6 +499,10 @@
499 499
 
500 500
 // X and Y axis travel speed (mm/m) between probes
501 501
 #define XY_PROBE_SPEED 8000
502
+// Speed for the first approach when probing
503
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
504
+// Speed for the second approach when probing
505
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
502 506
 
503 507
 //
504 508
 // Allen Key Probe is defined in the Delta example configurations.

+ 26
- 77
Marlin/Marlin_main.cpp Datei anzeigen

@@ -1584,7 +1584,7 @@ static void set_axis_is_at_home(AxisEnum axis) {
1584 1584
 /**
1585 1585
  * Some planner shorthand inline functions
1586 1586
  */
1587
-inline float set_homing_bump_feedrate(AxisEnum axis) {
1587
+inline float get_homing_bump_feedrate(AxisEnum axis) {
1588 1588
   const int homing_bump_divisor[] = HOMING_BUMP_DIVISOR;
1589 1589
   int hbd = homing_bump_divisor[axis];
1590 1590
   if (hbd < 1) {
@@ -1592,8 +1592,7 @@ inline float set_homing_bump_feedrate(AxisEnum axis) {
1592 1592
     SERIAL_ECHO_START;
1593 1593
     SERIAL_ECHOLNPGM("Warning: Homing Bump Divisor < 1");
1594 1594
   }
1595
-  feedrate_mm_m = homing_feedrate_mm_m[axis] / hbd;
1596
-  return feedrate_mm_m;
1595
+  return homing_feedrate_mm_m[axis] / hbd;
1597 1596
 }
1598 1597
 //
1599 1598
 // line_to_current_position
@@ -1613,7 +1612,7 @@ inline void line_to_axis_pos(AxisEnum axis, float where, float fr_mm_m = 0.0) {
1613 1612
   current_position[axis] = where;
1614 1613
   feedrate_mm_m = (fr_mm_m != 0.0) ? fr_mm_m : homing_feedrate_mm_m[axis];
1615 1614
   planner.buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], MMM_TO_MMS(feedrate_mm_m), active_extruder);
1616
-  stepper.synchronize(); // The lost one
1615
+  stepper.synchronize();
1617 1616
   feedrate_mm_m = old_feedrate_mm_m;
1618 1617
 }
1619 1618
 
@@ -2061,85 +2060,35 @@ static void clean_up_after_endstop_or_probe_move() {
2061 2060
   // at the height where the probe triggered.
2062 2061
   static float run_z_probe() {
2063 2062
 
2064
-    float old_feedrate_mm_m = feedrate_mm_m;
2065
-
2066 2063
     // Prevent stepper_inactive_time from running out and EXTRUDER_RUNOUT_PREVENT from extruding
2067 2064
     refresh_cmd_timeout();
2068 2065
 
2069
-    #if ENABLED(DELTA)
2070
-
2071
-      float start_z = current_position[Z_AXIS];
2072
-      long start_steps = stepper.position(Z_AXIS);
2073
-
2074
-      #if ENABLED(DEBUG_LEVELING_FEATURE)
2075
-        if (DEBUGGING(LEVELING)) DEBUG_POS("run_z_probe (DELTA) 1", current_position);
2076
-      #endif
2077
-
2078
-      // move down slowly until you find the bed
2079
-      feedrate_mm_m = homing_feedrate_mm_m[Z_AXIS] / 4;
2080
-      destination[Z_AXIS] = -10;
2081
-      prepare_move_to_destination_raw(); // this will also set_current_to_destination
2082
-      stepper.synchronize();
2083
-      endstops.hit_on_purpose(); // clear endstop hit flags
2084
-
2085
-      /**
2086
-       * We have to let the planner know where we are right now as it
2087
-       * is not where we said to go.
2088
-       */
2089
-      long stop_steps = stepper.position(Z_AXIS);
2090
-      float mm = start_z - float(start_steps - stop_steps) / planner.axis_steps_per_mm[Z_AXIS];
2091
-      current_position[Z_AXIS] = mm;
2092
-
2093
-      #if ENABLED(DEBUG_LEVELING_FEATURE)
2094
-        if (DEBUGGING(LEVELING)) DEBUG_POS("run_z_probe (DELTA) 2", current_position);
2095
-      #endif
2096
-
2097
-    #else // !DELTA
2098
-
2099
-      #if ENABLED(AUTO_BED_LEVELING_FEATURE)
2100
-        planner.bed_level_matrix.set_to_identity();
2101
-      #endif
2102
-
2103
-      feedrate_mm_m = homing_feedrate_mm_m[Z_AXIS];
2104
-
2105
-      // Move down until the Z probe (or endstop?) is triggered
2106
-      float zPosition = -(Z_MAX_LENGTH + 10);
2107
-      line_to_z(zPosition);
2108
-      stepper.synchronize();
2109
-
2110
-      // Tell the planner where we ended up - Get this from the stepper handler
2111
-      zPosition = stepper.get_axis_position_mm(Z_AXIS);
2112
-      planner.set_position_mm(
2113
-        current_position[X_AXIS], current_position[Y_AXIS], zPosition,
2114
-        current_position[E_AXIS]
2115
-      );
2116
-
2117
-      // move up the retract distance
2118
-      zPosition += home_bump_mm(Z_AXIS);
2119
-      line_to_z(zPosition);
2120
-      stepper.synchronize();
2121
-      endstops.hit_on_purpose(); // clear endstop hit flags
2122
-
2123
-      // move back down slowly to find bed
2124
-      set_homing_bump_feedrate(Z_AXIS);
2125
-
2126
-      zPosition -= home_bump_mm(Z_AXIS) * 2;
2127
-      line_to_z(zPosition);
2128
-      stepper.synchronize();
2129
-      endstops.hit_on_purpose(); // clear endstop hit flags
2130
-
2131
-      // Get the current stepper position after bumping an endstop
2132
-      current_position[Z_AXIS] = stepper.get_axis_position_mm(Z_AXIS);
2066
+    #if ENABLED(AUTO_BED_LEVELING_FEATURE)
2067
+      planner.bed_level_matrix.set_to_identity();
2068
+    #endif
2133 2069
 
2134
-      #if ENABLED(DEBUG_LEVELING_FEATURE)
2135
-        if (DEBUGGING(LEVELING)) DEBUG_POS("run_z_probe", current_position);
2136
-      #endif
2070
+    current_position[Z_AXIS] = -(Z_MAX_LENGTH + 10);
2071
+    do_blocking_move_to_z(current_position[Z_AXIS], Z_PROBE_SPEED_FAST);
2072
+    endstops.hit_on_purpose(); // clear endstop hit flags
2073
+    // Get the current stepper position after bumping an endstop
2074
+    current_position[Z_AXIS] = stepper.get_axis_position_mm(Z_AXIS);
2075
+    SYNC_PLAN_POSITION_KINEMATIC(); // tell the planner where we are      feedrate_mm_m = homing_feedrate_mm_m[Z_AXIS];
2137 2076
 
2138
-    #endif // !DELTA
2077
+    // move up the retract distance
2078
+    current_position[Z_AXIS] += home_bump_mm(Z_AXIS);
2079
+    do_blocking_move_to_z(current_position[Z_AXIS], Z_PROBE_SPEED_FAST);
2139 2080
 
2140
-    SYNC_PLAN_POSITION_KINEMATIC();
2081
+    // move back down slowly to find bed
2082
+    current_position[Z_AXIS] -= home_bump_mm(Z_AXIS) * 2;
2083
+    do_blocking_move_to_z(current_position[Z_AXIS], Z_PROBE_SPEED_SLOW);
2084
+    endstops.hit_on_purpose(); // clear endstop hit flags
2085
+    // Get the current stepper position after bumping an endstop
2086
+    current_position[Z_AXIS] = stepper.get_axis_position_mm(Z_AXIS);
2087
+    SYNC_PLAN_POSITION_KINEMATIC(); // tell the planner where we are
2141 2088
 
2142
-    feedrate_mm_m = old_feedrate_mm_m;
2089
+    #if ENABLED(DEBUG_LEVELING_FEATURE)
2090
+      if (DEBUGGING(LEVELING)) DEBUG_POS("run_z_probe", current_position);
2091
+    #endif
2143 2092
 
2144 2093
     return current_position[Z_AXIS];
2145 2094
   }
@@ -2424,7 +2373,7 @@ static void homeaxis(AxisEnum axis) {
2424 2373
   line_to_axis_pos(axis, -home_bump_mm(axis) * axis_home_dir);
2425 2374
 
2426 2375
   // Move slowly towards the endstop until triggered
2427
-  line_to_axis_pos(axis, 2 * home_bump_mm(axis) * axis_home_dir, set_homing_bump_feedrate(axis));
2376
+  line_to_axis_pos(axis, 2 * home_bump_mm(axis) * axis_home_dir, get_homing_bump_feedrate(axis));
2428 2377
 
2429 2378
   #if ENABLED(DEBUG_LEVELING_FEATURE)
2430 2379
     if (DEBUGGING(LEVELING)) DEBUG_POS("> TRIGGER ENDSTOP", current_position);

+ 4
- 0
Marlin/example_configurations/Cartesio/Configuration.h Datei anzeigen

@@ -499,6 +499,10 @@
499 499
 
500 500
 // X and Y axis travel speed (mm/m) between probes
501 501
 #define XY_PROBE_SPEED 8000
502
+// Speed for the first approach when probing
503
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
504
+// Speed for the second approach when probing
505
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
502 506
 
503 507
 //
504 508
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/Felix/Configuration.h Datei anzeigen

@@ -481,6 +481,10 @@
481 481
 
482 482
 // X and Y axis travel speed (mm/m) between probes
483 483
 #define XY_PROBE_SPEED 8000
484
+// Speed for the first approach when probing
485
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
486
+// Speed for the second approach when probing
487
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
484 488
 
485 489
 //
486 490
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/Felix/DUAL/Configuration.h Datei anzeigen

@@ -479,6 +479,10 @@
479 479
 
480 480
 // X and Y axis travel speed (mm/m) between probes
481 481
 #define XY_PROBE_SPEED 8000
482
+// Speed for the first approach when probing
483
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
484
+// Speed for the second approach when probing
485
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
482 486
 
483 487
 //
484 488
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/Hephestos/Configuration.h Datei anzeigen

@@ -491,6 +491,10 @@
491 491
 
492 492
 // X and Y axis travel speed (mm/m) between probes
493 493
 #define XY_PROBE_SPEED 8000
494
+// Speed for the first approach when probing
495
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
496
+// Speed for the second approach when probing
497
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
494 498
 
495 499
 //
496 500
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/Hephestos_2/Configuration.h Datei anzeigen

@@ -493,6 +493,10 @@
493 493
 
494 494
 // X and Y axis travel speed (mm/m) between probes
495 495
 #define XY_PROBE_SPEED 8000
496
+// Speed for the first approach when probing
497
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
498
+// Speed for the second approach when probing
499
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
496 500
 
497 501
 //
498 502
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/K8200/Configuration.h Datei anzeigen

@@ -516,6 +516,10 @@
516 516
 
517 517
 // X and Y axis travel speed (mm/m) between probes
518 518
 #define XY_PROBE_SPEED 8000
519
+// Speed for the first approach when probing
520
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
521
+// Speed for the second approach when probing
522
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
519 523
 
520 524
 //
521 525
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/K8400/Configuration.h Datei anzeigen

@@ -499,6 +499,10 @@
499 499
 
500 500
 // X and Y axis travel speed (mm/m) between probes
501 501
 #define XY_PROBE_SPEED 8000
502
+// Speed for the first approach when probing
503
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
504
+// Speed for the second approach when probing
505
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
502 506
 
503 507
 //
504 508
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/K8400/Dual-head/Configuration.h Datei anzeigen

@@ -499,6 +499,10 @@
499 499
 
500 500
 // X and Y axis travel speed (mm/m) between probes
501 501
 #define XY_PROBE_SPEED 8000
502
+// Speed for the first approach when probing
503
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
504
+// Speed for the second approach when probing
505
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
502 506
 
503 507
 //
504 508
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Datei anzeigen

@@ -499,6 +499,10 @@
499 499
 
500 500
 // X and Y axis travel speed (mm/m) between probes
501 501
 #define XY_PROBE_SPEED 8000
502
+// Speed for the first approach when probing
503
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
504
+// Speed for the second approach when probing
505
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
502 506
 
503 507
 //
504 508
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/RigidBot/Configuration.h Datei anzeigen

@@ -496,6 +496,10 @@
496 496
 
497 497
 // X and Y axis travel speed (mm/m) between probes
498 498
 #define XY_PROBE_SPEED 8000
499
+// Speed for the first approach when probing
500
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
501
+// Speed for the second approach when probing
502
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
499 503
 
500 504
 //
501 505
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/SCARA/Configuration.h Datei anzeigen

@@ -507,6 +507,10 @@
507 507
 
508 508
 // X and Y axis travel speed (mm/m) between probes
509 509
 #define XY_PROBE_SPEED 8000
510
+// Speed for the first approach when probing
511
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
512
+// Speed for the second approach when probing
513
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
510 514
 
511 515
 //
512 516
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/TAZ4/Configuration.h Datei anzeigen

@@ -520,6 +520,10 @@
520 520
 
521 521
 // X and Y axis travel speed (mm/m) between probes
522 522
 #define XY_PROBE_SPEED 8000
523
+// Speed for the first approach when probing
524
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
525
+// Speed for the second approach when probing
526
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
523 527
 
524 528
 //
525 529
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/WITBOX/Configuration.h Datei anzeigen

@@ -491,6 +491,10 @@
491 491
 
492 492
 // X and Y axis travel speed (mm/m) between probes
493 493
 #define XY_PROBE_SPEED 8000
494
+// Speed for the first approach when probing
495
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
496
+// Speed for the second approach when probing
497
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
494 498
 
495 499
 //
496 500
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h Datei anzeigen

@@ -499,6 +499,10 @@
499 499
 
500 500
 // X and Y axis travel speed (mm/m) between probes
501 501
 #define XY_PROBE_SPEED 8000
502
+// Speed for the first approach when probing
503
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
504
+// Speed for the second approach when probing
505
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
502 506
 
503 507
 //
504 508
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/delta/biv2.5/Configuration.h Datei anzeigen

@@ -541,6 +541,10 @@
541 541
 
542 542
 // X and Y axis travel speed (mm/m) between probes
543 543
 #define XY_PROBE_SPEED 4000
544
+// Speed for the first approach when probing
545
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
546
+// Speed for the second approach when probing
547
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
544 548
 
545 549
 // Allen key retractable z-probe as seen on many Kossel delta printers - http://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe
546 550
 // Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.

+ 4
- 0
Marlin/example_configurations/delta/generic/Configuration.h Datei anzeigen

@@ -541,6 +541,10 @@
541 541
 
542 542
 // X and Y axis travel speed (mm/m) between probes
543 543
 #define XY_PROBE_SPEED 4000
544
+// Speed for the first approach when probing
545
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
546
+// Speed for the second approach when probing
547
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
544 548
 
545 549
 // Allen key retractable z-probe as seen on many Kossel delta printers - http://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe
546 550
 // Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.

+ 4
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h Datei anzeigen

@@ -541,6 +541,10 @@
541 541
 
542 542
 // X and Y axis travel speed (mm/m) between probes
543 543
 #define XY_PROBE_SPEED 4000
544
+// Speed for the first approach when probing
545
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
546
+// Speed for the second approach when probing
547
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
544 548
 
545 549
 // Allen key retractable z-probe as seen on many Kossel delta printers - http://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe
546 550
 // Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.

+ 4
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h Datei anzeigen

@@ -532,6 +532,10 @@
532 532
 
533 533
 // X and Y axis travel speed (mm/m) between probes
534 534
 #define XY_PROBE_SPEED 8000
535
+// Speed for the first approach when probing
536
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
537
+// Speed for the second approach when probing
538
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
535 539
 
536 540
 // Allen key retractable z-probe as seen on many Kossel delta printers - http://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe
537 541
 // Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.

+ 4
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration.h Datei anzeigen

@@ -539,6 +539,10 @@
539 539
 
540 540
 // X and Y axis travel speed (mm/m) between probes
541 541
 #define XY_PROBE_SPEED 8000
542
+// Speed for the first approach when probing
543
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
544
+// Speed for the second approach when probing
545
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
542 546
 
543 547
 // Allen key retractable z-probe as seen on many Kossel delta printers - http://reprap.org/wiki/Kossel#Automatic_bed_leveling_probe
544 548
 // Deploys by touching z-axis belt. Retracts by pushing the probe down. Uses Z_MIN_PIN.

+ 4
- 0
Marlin/example_configurations/makibox/Configuration.h Datei anzeigen

@@ -502,6 +502,10 @@
502 502
 
503 503
 // X and Y axis travel speed (mm/m) between probes
504 504
 #define XY_PROBE_SPEED 8000
505
+// Speed for the first approach when probing
506
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
507
+// Speed for the second approach when probing
508
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
505 509
 
506 510
 //
507 511
 // Allen Key Probe is defined in the Delta example configurations.

+ 4
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h Datei anzeigen

@@ -489,6 +489,10 @@
489 489
 
490 490
 // X and Y axis travel speed (mm/m) between probes
491 491
 #define XY_PROBE_SPEED 8000
492
+// Speed for the first approach when probing
493
+#define Z_PROBE_SPEED_FAST (homing_feedrate_mm_m[Z_AXIS])
494
+// Speed for the second approach when probing
495
+#define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
492 496
 
493 497
 //
494 498
 // Allen Key Probe is defined in the Delta example configurations.

Laden…
Abbrechen
Speichern