Browse Source

Z_RAISE_BEFORE_HOMING -> MIN_Z_HEIGHT_FOR_HOMING

rebased
corrected spelling
changed to #elif for error

Still with MIN_Z_HEIGHT_FOR_HOMING but con be done with (folder wide) search-replace when we have a better name.
AnHardt 9 years ago
parent
commit
fd5414c6ea

+ 2
- 3
Marlin/Configuration.h View File

378
 #define INVERT_E3_DIR false
378
 #define INVERT_E3_DIR false
379
 
379
 
380
 // @section homing
380
 // @section homing
381
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
382
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
381
 
383
 
382
 // ENDSTOP SETTINGS:
384
 // ENDSTOP SETTINGS:
383
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
385
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
509
   #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Z offset: -front [of the nozzle] +behind
511
   #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  // Z offset: -front [of the nozzle] +behind
510
   #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below [the nozzle] (always negative!)
512
   #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z offset: -below [the nozzle] (always negative!)
511
 
513
 
512
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
513
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
514
-
515
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
514
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
516
 
515
 
517
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
516
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

+ 19
- 50
Marlin/Marlin_main.cpp View File

2268
 
2268
 
2269
   setup_for_endstop_move();
2269
   setup_for_endstop_move();
2270
 
2270
 
2271
-  set_destination_to_current();
2271
+  set_destination_to_current(); // Directly after a reset this is all 0. Later we get a hint if we have to raise z or not.
2272
 
2272
 
2273
   feedrate = 0.0;
2273
   feedrate = 0.0;
2274
 
2274
 
2311
 
2311
 
2312
     home_all_axis = (!homeX && !homeY && !homeZ) || (homeX && homeY && homeZ);
2312
     home_all_axis = (!homeX && !homeY && !homeZ) || (homeX && homeY && homeZ);
2313
 
2313
 
2314
-    if (home_all_axis || homeZ) {
2315
-
2316
-      #if Z_HOME_DIR > 0  // If homing away from BED do Z first
2314
+    #if Z_HOME_DIR > 0  // If homing away from BED do Z first
2317
 
2315
 
2316
+      if (home_all_axis || homeZ) {
2318
         HOMEAXIS(Z);
2317
         HOMEAXIS(Z);
2319
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2318
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2320
           if (marlin_debug_flags & DEBUG_LEVELING) {
2319
           if (marlin_debug_flags & DEBUG_LEVELING) {
2321
             print_xyz("> HOMEAXIS(Z) > current_position", current_position);
2320
             print_xyz("> HOMEAXIS(Z) > current_position", current_position);
2322
           }
2321
           }
2323
         #endif
2322
         #endif
2323
+      }
2324
 
2324
 
2325
-      #elif defined(Z_RAISE_BEFORE_HOMING) && Z_RAISE_BEFORE_HOMING > 0
2326
-
2327
-        // Consider the current Z-position as zero
2328
-        // !!WARNING!! If the machine has no physical z-max endstops then we
2329
-        // can move the axis more than it can physically travel.
2330
-        current_position[Z_AXIS] = 0;
2331
-        sync_plan_position();
2332
-
2333
-        // (Does this need to be "negative home direction?" Why not just use Z_RAISE_BEFORE_HOMING?)
2334
-        destination[Z_AXIS] = -Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS);
2335
-        feedrate = max_feedrate[Z_AXIS] * 60;
2325
+    #elif defined(MIN_Z_HEIGHT_FOR_HOMING) && MIN_Z_HEIGHT_FOR_HOMING > 0
2336
 
2326
 
2327
+      // Raise Z before homing any other axes and z is not already high enough (never lower z)
2328
+      if (current_position[Z_AXIS] <= MIN_Z_HEIGHT_FOR_HOMING) {
2329
+        destination[Z_AXIS] = MIN_Z_HEIGHT_FOR_HOMING;
2330
+        feedrate = max_feedrate[Z_AXIS] * 60;  // feedrate (mm/m) = max_feedrate (mm/s)
2337
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2331
         #if ENABLED(DEBUG_LEVELING_FEATURE)
2338
           if (marlin_debug_flags & DEBUG_LEVELING) {
2332
           if (marlin_debug_flags & DEBUG_LEVELING) {
2339
-            SERIAL_ECHOPAIR("Raise Z (before homing) by ", (float)Z_RAISE_BEFORE_HOMING);
2333
+            SERIAL_ECHOPAIR("Raise Z (before homing) to ", (float)MIN_Z_HEIGHT_FOR_HOMING);
2340
             SERIAL_EOL;
2334
             SERIAL_EOL;
2341
             print_xyz("> (home_all_axis || homeZ) > current_position", current_position);
2335
             print_xyz("> (home_all_axis || homeZ) > current_position", current_position);
2342
             print_xyz("> (home_all_axis || homeZ) > destination", destination);
2336
             print_xyz("> (home_all_axis || homeZ) > destination", destination);
2343
           }
2337
           }
2344
         #endif
2338
         #endif
2345
-
2346
-        // Raise Z-axis by Z_RAISE_BEFORE_HOMING before homing any other axis
2347
         line_to_destination();
2339
         line_to_destination();
2348
         st_synchronize();
2340
         st_synchronize();
2349
 
2341
 
2350
         // Update the current Z position even if it currently not real from Z-home
2342
         // Update the current Z position even if it currently not real from Z-home
2351
         // otherwise each call to line_to_destination() will want to move Z-axis
2343
         // otherwise each call to line_to_destination() will want to move Z-axis
2352
-        // by Z_RAISE_BEFORE_HOMING.
2344
+        // by MIN_Z_HEIGHT_FOR_HOMING.
2353
         current_position[Z_AXIS] = destination[Z_AXIS];
2345
         current_position[Z_AXIS] = destination[Z_AXIS];
2354
-
2355
-      #endif
2356
-
2357
-    } // home_all_axis || homeZ
2346
+      }
2347
+    #endif
2358
 
2348
 
2359
     #if ENABLED(QUICK_HOME)
2349
     #if ENABLED(QUICK_HOME)
2360
 
2350
 
2468
 
2458
 
2469
           if (home_all_axis) {
2459
           if (home_all_axis) {
2470
 
2460
 
2471
-            // At this point we already have Z at Z_RAISE_BEFORE_HOMING height
2461
+            // At this point we already have Z at MIN_Z_HEIGHT_FOR_HOMING height
2472
             // No need to move Z any more as this height should already be safe
2462
             // No need to move Z any more as this height should already be safe
2473
-            // enough to reach Z_SAFE_HOMING XY positions; just make sure the
2474
-            // planner is in sync.
2463
+            // enough to reach Z_SAFE_HOMING XY positions.
2464
+            // Just make sure the planner is in sync.
2475
             sync_plan_position();
2465
             sync_plan_position();
2476
 
2466
 
2477
             //
2467
             //
2478
             // Set the Z probe (or just the nozzle) destination to the safe homing point
2468
             // Set the Z probe (or just the nozzle) destination to the safe homing point
2479
             //
2469
             //
2480
-            // NOTE: If current_position[X_AXIS] or current_position[Y_AXIS] were set above
2481
-            // then this may not work as expected.
2482
             destination[X_AXIS] = round(Z_SAFE_HOMING_X_POINT - X_PROBE_OFFSET_FROM_EXTRUDER);
2470
             destination[X_AXIS] = round(Z_SAFE_HOMING_X_POINT - X_PROBE_OFFSET_FROM_EXTRUDER);
2483
             destination[Y_AXIS] = round(Z_SAFE_HOMING_Y_POINT - Y_PROBE_OFFSET_FROM_EXTRUDER);
2471
             destination[Y_AXIS] = round(Z_SAFE_HOMING_Y_POINT - Y_PROBE_OFFSET_FROM_EXTRUDER);
2472
+            destination[Z_AXIS] = current_position[Z_AXIS]; //z is already at the right height
2484
             feedrate = XY_TRAVEL_SPEED;
2473
             feedrate = XY_TRAVEL_SPEED;
2485
 
2474
 
2486
             #if ENABLED(DEBUG_LEVELING_FEATURE)
2475
             #if ENABLED(DEBUG_LEVELING_FEATURE)
2494
             line_to_destination();
2483
             line_to_destination();
2495
             st_synchronize();
2484
             st_synchronize();
2496
 
2485
 
2497
-            // Update the current positions for XY, Z is still at
2498
-            // Z_RAISE_BEFORE_HOMING height, no changes there.
2486
+            // Update the current positions for XY, Z is still at least at
2487
+            // MIN_Z_HEIGHT_FOR_HOMING height, no changes there.
2499
             current_position[X_AXIS] = destination[X_AXIS];
2488
             current_position[X_AXIS] = destination[X_AXIS];
2500
             current_position[Y_AXIS] = destination[Y_AXIS];
2489
             current_position[Y_AXIS] = destination[Y_AXIS];
2501
 
2490
 
2515
                   && cpx <= X_MAX_POS - X_PROBE_OFFSET_FROM_EXTRUDER
2504
                   && cpx <= X_MAX_POS - X_PROBE_OFFSET_FROM_EXTRUDER
2516
                   && cpy >= Y_MIN_POS - Y_PROBE_OFFSET_FROM_EXTRUDER
2505
                   && cpy >= Y_MIN_POS - Y_PROBE_OFFSET_FROM_EXTRUDER
2517
                   && cpy <= Y_MAX_POS - Y_PROBE_OFFSET_FROM_EXTRUDER) {
2506
                   && cpy <= Y_MAX_POS - Y_PROBE_OFFSET_FROM_EXTRUDER) {
2518
-                // Set the plan current position to X, Y, 0
2519
-                current_position[Z_AXIS] = 0;
2520
-                plan_set_position(cpx, cpy, 0, current_position[E_AXIS]); // = sync_plan_position
2521
-
2522
-                // Set Z destination away from bed and raise the axis
2523
-                // NOTE: This should always just be Z_RAISE_BEFORE_HOMING unless...???
2524
-                destination[Z_AXIS] = -Z_RAISE_BEFORE_HOMING * home_dir(Z_AXIS);
2525
-                feedrate = max_feedrate[Z_AXIS] * 60;  // feedrate (mm/m) = max_feedrate (mm/s)
2526
-
2527
-                #if ENABLED(DEBUG_LEVELING_FEATURE)
2528
-                  if (marlin_debug_flags & DEBUG_LEVELING) {
2529
-                    SERIAL_ECHOPAIR("Raise Z (before homing) by ", (float)Z_RAISE_BEFORE_HOMING);
2530
-                    SERIAL_EOL;
2531
-                    print_xyz("> homeZ > current_position", current_position);
2532
-                    print_xyz("> homeZ > destination", destination);
2533
-                  }
2534
-                #endif
2535
-
2536
-                line_to_destination();
2537
-                st_synchronize();
2538
 
2507
 
2539
                 // Home the Z axis
2508
                 // Home the Z axis
2540
                 HOMEAXIS(Z);
2509
                 HOMEAXIS(Z);

+ 2
- 0
Marlin/SanityCheck.h View File

368
   #error SDSLOW deprecated - set SPI_SPEED to SPI_HALF_SPEED instead
368
   #error SDSLOW deprecated - set SPI_SPEED to SPI_HALF_SPEED instead
369
 #elif defined(SDEXTRASLOW)
369
 #elif defined(SDEXTRASLOW)
370
   #error SDEXTRASLOW deprecated - set SPI_SPEED to SPI_QUARTER_SPEED instead
370
   #error SDEXTRASLOW deprecated - set SPI_SPEED to SPI_QUARTER_SPEED instead
371
+#elif defined(Z_RAISE_BEFORE_HOMING)
372
+  #error Z_RAISE_BEFORE_HOMING is deprecated. Use MIN_Z_HEIGHT_FOR_HOMING instead.
371
 #endif
373
 #endif
372
 
374
 
373
 #endif //SANITYCHECK_H
375
 #endif //SANITYCHECK_H

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

360
 #define INVERT_E3_DIR false
360
 #define INVERT_E3_DIR false
361
 
361
 
362
 // @section homing
362
 // @section homing
363
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
364
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
363
 
365
 
364
 // ENDSTOP SETTINGS:
366
 // ENDSTOP SETTINGS:
365
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
367
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
491
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
493
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
492
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
494
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
493
 
495
 
494
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
495
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
496
-
497
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
496
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
498
 
497
 
499
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
498
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

+ 2
- 3
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

357
 #define INVERT_E3_DIR false
357
 #define INVERT_E3_DIR false
358
 
358
 
359
 // @section homing
359
 // @section homing
360
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
361
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
360
 
362
 
361
 // ENDSTOP SETTINGS:
363
 // ENDSTOP SETTINGS:
362
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
364
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
488
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
490
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
489
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
491
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
490
 
492
 
491
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
492
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
493
-
494
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
493
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
495
 
494
 
496
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
495
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

370
 #define INVERT_E3_DIR false
370
 #define INVERT_E3_DIR false
371
 
371
 
372
 // @section homing
372
 // @section homing
373
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
374
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
373
 
375
 
374
 // ENDSTOP SETTINGS:
376
 // ENDSTOP SETTINGS:
375
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
377
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
501
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
503
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
502
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
504
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
503
 
505
 
504
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
505
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
506
-
507
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
506
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
508
 
507
 
509
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
508
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

373
 #define INVERT_E3_DIR false
373
 #define INVERT_E3_DIR false
374
 
374
 
375
 // @section homing
375
 // @section homing
376
+//#define MIN_Z_HEIGHT_FOR_HOMING 5 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
377
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
376
 
378
 
377
 // ENDSTOP SETTINGS:
379
 // ENDSTOP SETTINGS:
378
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
380
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
504
   #define Y_PROBE_OFFSET_FROM_EXTRUDER 15  // Z probe to nozzle Y offset: -front +behind
506
   #define Y_PROBE_OFFSET_FROM_EXTRUDER 15  // Z probe to nozzle Y offset: -front +behind
505
   #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z probe to nozzle Z offset: -below (always!)
507
   #define Z_PROBE_OFFSET_FROM_EXTRUDER 0   // Z probe to nozzle Z offset: -below (always!)
506
 
508
 
507
-  #define Z_RAISE_BEFORE_HOMING 5       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
508
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
509
-
510
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
509
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
511
 
510
 
512
   #define Z_RAISE_BEFORE_PROBING 5    // How much the Z axis will be raised before traveling to the first probing point.
511
   #define Z_RAISE_BEFORE_PROBING 5    // How much the Z axis will be raised before traveling to the first probing point.

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

393
 #define INVERT_E3_DIR true
393
 #define INVERT_E3_DIR true
394
 
394
 
395
 // @section homing
395
 // @section homing
396
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
397
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
396
 
398
 
397
 // ENDSTOP SETTINGS:
399
 // ENDSTOP SETTINGS:
398
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
400
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
524
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
526
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
525
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
527
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
526
 
528
 
527
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
528
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
529
-
530
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
529
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
531
 
530
 
532
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
531
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

378
 #define INVERT_E3_DIR false
378
 #define INVERT_E3_DIR false
379
 
379
 
380
 // @section homing
380
 // @section homing
381
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
382
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
381
 
383
 
382
 // ENDSTOP SETTINGS:
384
 // ENDSTOP SETTINGS:
383
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
385
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
509
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
511
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
510
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
512
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
511
 
513
 
512
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
513
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
514
-
515
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
514
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
516
 
515
 
517
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
516
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

372
 #define INVERT_E3_DIR false
372
 #define INVERT_E3_DIR false
373
 
373
 
374
 // @section homing
374
 // @section homing
375
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
376
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
375
 
377
 
376
 // ENDSTOP SETTINGS:
378
 // ENDSTOP SETTINGS:
377
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
379
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
503
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
505
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
504
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
506
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
505
 
507
 
506
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
507
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
508
-
509
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
508
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
510
 
509
 
511
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
510
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

386
 #define INVERT_E3_DIR false
386
 #define INVERT_E3_DIR false
387
 
387
 
388
 // @section homing
388
 // @section homing
389
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
390
+                                      // Be sure you have this distance over your Z_MAX_POS in case.
389
 
391
 
390
 // ENDSTOP SETTINGS:
392
 // ENDSTOP SETTINGS:
391
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
393
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
517
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
519
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
518
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
520
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
519
 
521
 
520
-  //#define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
521
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
522
-
523
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
522
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
524
 
523
 
525
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
524
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

398
 #define INVERT_E3_DIR true
398
 #define INVERT_E3_DIR true
399
 
399
 
400
 // @section homing
400
 // @section homing
401
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
402
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
401
 
403
 
402
 // ENDSTOP SETTINGS:
404
 // ENDSTOP SETTINGS:
403
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
405
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
529
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
531
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
530
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
532
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
531
 
533
 
532
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
533
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
534
-
535
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
534
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
536
 
535
 
537
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
536
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

370
 #define INVERT_E3_DIR false
370
 #define INVERT_E3_DIR false
371
 
371
 
372
 // @section homing
372
 // @section homing
373
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
374
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
373
 
375
 
374
 // ENDSTOP SETTINGS:
376
 // ENDSTOP SETTINGS:
375
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
377
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
501
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
503
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
502
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
504
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
503
 
505
 
504
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
505
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
506
-
507
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
506
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
508
 
507
 
509
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
508
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

378
 #define INVERT_E3_DIR false
378
 #define INVERT_E3_DIR false
379
 
379
 
380
 // @section homing
380
 // @section homing
381
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
382
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
381
 
383
 
382
 // ENDSTOP SETTINGS:
384
 // ENDSTOP SETTINGS:
383
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
385
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
509
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
511
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
510
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
512
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
511
 
513
 
512
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
513
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
514
-
515
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
514
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
516
 
515
 
517
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
516
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

413
 #define INVERT_E3_DIR false
413
 #define INVERT_E3_DIR false
414
 
414
 
415
 // @section homing
415
 // @section homing
416
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
417
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
416
 
418
 
417
 // ENDSTOP SETTINGS:
419
 // ENDSTOP SETTINGS:
418
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
420
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
548
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Z offset: -front [of the nozzle] +behind
550
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Z offset: -front [of the nozzle] +behind
549
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below [the nozzle] (always negative!)
551
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below [the nozzle] (always negative!)
550
 
552
 
551
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
552
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
553
-
554
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
553
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
555
 
554
 
556
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
555
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

413
 #define INVERT_E3_DIR false
413
 #define INVERT_E3_DIR false
414
 
414
 
415
 // @section homing
415
 // @section homing
416
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
417
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
416
 
418
 
417
 // ENDSTOP SETTINGS:
419
 // ENDSTOP SETTINGS:
418
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
420
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
548
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Z probe to nozzle Y offset: -front +behind
550
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Z probe to nozzle Y offset: -front +behind
549
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z probe to nozzle Z offset: -below (always!)
551
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z probe to nozzle Z offset: -below (always!)
550
 
552
 
551
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
552
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
553
-
554
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
553
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
555
 
554
 
556
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
555
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

413
 #define INVERT_E3_DIR false
413
 #define INVERT_E3_DIR false
414
 
414
 
415
 // @section homing
415
 // @section homing
416
+//#define MIN_Z_HEIGHT_FOR_HOMING 15// (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
417
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
416
 
418
 
417
 // ENDSTOP SETTINGS:
419
 // ENDSTOP SETTINGS:
418
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
420
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
548
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Z offset: -front [of the nozzle] +behind
550
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -10   // Z offset: -front [of the nozzle] +behind
549
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below [the nozzle] (always negative!)
551
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -3.5  // Z offset: -below [the nozzle] (always negative!)
550
 
552
 
551
-  #define Z_RAISE_BEFORE_HOMING 15      // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
552
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
553
-
554
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
553
   #define XY_TRAVEL_SPEED 4000         // X and Y axis travel speed between probes, in mm/min.
555
 
554
 
556
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
555
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

400
 #define INVERT_E3_DIR false
400
 #define INVERT_E3_DIR false
401
 
401
 
402
 // @section homing
402
 // @section homing
403
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
404
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
403
 
405
 
404
 // ENDSTOP SETTINGS:
406
 // ENDSTOP SETTINGS:
405
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
407
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
537
   // not giving someone a head crash. Use something like G29 Z-0.2 to adjust as needed.
539
   // not giving someone a head crash. Use something like G29 Z-0.2 to adjust as needed.
538
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -17.25  // Increase this if the first layer is too thin (remember: it's a negative number so increase means closer to zero).
540
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -17.25  // Increase this if the first layer is too thin (remember: it's a negative number so increase means closer to zero).
539
 
541
 
540
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
541
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
542
-
543
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
542
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
544
 
543
 
545
   #define Z_RAISE_BEFORE_PROBING 100  // How much the Z axis will be raised before traveling to the first probing point.
544
   #define Z_RAISE_BEFORE_PROBING 100  // How much the Z axis will be raised before traveling to the first probing point.

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

406
 #define INVERT_E3_DIR false
406
 #define INVERT_E3_DIR false
407
 
407
 
408
 // @section homing
408
 // @section homing
409
+//#define MIN_Z_HEIGHT_FOR_HOMING 7 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
410
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
409
 
411
 
410
 // ENDSTOP SETTINGS:
412
 // ENDSTOP SETTINGS:
411
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
413
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
540
   #define Y_PROBE_OFFSET_FROM_EXTRUDER 0.0     // Z offset: -front [of the nozzle] +behind
542
   #define Y_PROBE_OFFSET_FROM_EXTRUDER 0.0     // Z offset: -front [of the nozzle] +behind
541
   #define Z_PROBE_OFFSET_FROM_EXTRUDER 0.3     // Z offset: -below [the nozzle] (always negative!)
543
   #define Z_PROBE_OFFSET_FROM_EXTRUDER 0.3     // Z offset: -below [the nozzle] (always negative!)
542
 
544
 
543
-  #define Z_RAISE_BEFORE_HOMING 7       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
544
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
545
-
546
   #define XY_TRAVEL_SPEED 7000         // X and Y axis travel speed between probes, in mm/min.
545
   #define XY_TRAVEL_SPEED 7000         // X and Y axis travel speed between probes, in mm/min.
547
 
546
 
548
   #define Z_RAISE_BEFORE_PROBING 20   // How much the Z axis will be raised before traveling to the first probing point.
547
   #define Z_RAISE_BEFORE_PROBING 20   // How much the Z axis will be raised before traveling to the first probing point.

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

381
 #define INVERT_E3_DIR false
381
 #define INVERT_E3_DIR false
382
 
382
 
383
 // @section homing
383
 // @section homing
384
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
385
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
384
 
386
 
385
 // ENDSTOP SETTINGS:
387
 // ENDSTOP SETTINGS:
386
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
388
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
512
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
514
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
513
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
515
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
514
 
516
 
515
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
516
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
517
-
518
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
517
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
519
 
518
 
520
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
519
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

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

368
 #define INVERT_E3_DIR false
368
 #define INVERT_E3_DIR false
369
 
369
 
370
 // @section homing
370
 // @section homing
371
+//#define MIN_Z_HEIGHT_FOR_HOMING 4 // (in mm) Minimal z height before homing (G28) for Z clearance above the bed, clamps, ...
372
+                                    // Be sure you have this distance over your Z_MAX_POS in case.
371
 
373
 
372
 // ENDSTOP SETTINGS:
374
 // ENDSTOP SETTINGS:
373
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
375
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
499
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
501
   #define Y_PROBE_OFFSET_FROM_EXTRUDER -29     // Z offset: -front [of the nozzle] +behind
500
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
502
   #define Z_PROBE_OFFSET_FROM_EXTRUDER -12.35  // Z offset: -below [the nozzle] (always negative!)
501
 
503
 
502
-  #define Z_RAISE_BEFORE_HOMING 4       // (in mm) Raise Z axis before homing (G28) for Z probe clearance.
503
-                                        // Be sure you have this distance over your Z_MAX_POS in case.
504
-
505
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
504
   #define XY_TRAVEL_SPEED 8000         // X and Y axis travel speed between probes, in mm/min.
506
 
505
 
507
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.
506
   #define Z_RAISE_BEFORE_PROBING 15   // How much the Z axis will be raised before traveling to the first probing point.

Loading…
Cancel
Save