Przeglądaj źródła

Clean up probe config options

Scott Lahteine 7 lat temu
rodzic
commit
e05af606a8
27 zmienionych plików z 284 dodań i 312 usunięć
  1. 8
    0
      Marlin/Conditionals_LCD.h
  2. 3
    3
      Marlin/Conditionals_post.h
  3. 10
    11
      Marlin/Configuration.h
  4. 48
    62
      Marlin/SanityCheck.h
  5. 4
    4
      Marlin/endstops.cpp
  6. 10
    11
      Marlin/example_configurations/Cartesio/Configuration.h
  7. 10
    11
      Marlin/example_configurations/Felix/Configuration.h
  8. 10
    11
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  9. 10
    11
      Marlin/example_configurations/Hephestos/Configuration.h
  10. 10
    11
      Marlin/example_configurations/Hephestos_2/Configuration.h
  11. 10
    11
      Marlin/example_configurations/K8200/Configuration.h
  12. 10
    11
      Marlin/example_configurations/K8400/Configuration.h
  13. 10
    11
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  14. 10
    11
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  15. 10
    11
      Marlin/example_configurations/RigidBot/Configuration.h
  16. 10
    11
      Marlin/example_configurations/SCARA/Configuration.h
  17. 10
    11
      Marlin/example_configurations/TAZ4/Configuration.h
  18. 10
    11
      Marlin/example_configurations/WITBOX/Configuration.h
  19. 10
    11
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  20. 10
    11
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  21. 10
    11
      Marlin/example_configurations/delta/generic/Configuration.h
  22. 10
    11
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  23. 10
    11
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  24. 10
    11
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  25. 10
    11
      Marlin/example_configurations/makibox/Configuration.h
  26. 10
    11
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  27. 1
    1
      Marlin/pins.h

+ 8
- 0
Marlin/Conditionals_LCD.h Wyświetl plik

@@ -345,4 +345,12 @@
345 345
    */
346 346
   #define PROBE_SELECTED (ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))
347 347
 
348
+  /**
349
+   * Clear probe pin settings when no probe is selected
350
+   */
351
+  #if !PROBE_SELECTED
352
+    #undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
353
+    #undef Z_MIN_PROBE_ENDSTOP
354
+  #endif
355
+
348 356
 #endif //CONDITIONALS_LCD_H

+ 3
- 3
Marlin/Conditionals_post.h Wyświetl plik

@@ -409,9 +409,6 @@
409 409
     #if ENABLED(USE_ZMIN_PLUG)
410 410
       #define ENDSTOPPULLUP_ZMIN
411 411
     #endif
412
-    #if DISABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
413
-      #define ENDSTOPPULLUP_ZMIN_PROBE
414
-    #endif
415 412
   #endif
416 413
 
417 414
   /**
@@ -589,6 +586,9 @@
589 586
    * Bed Probe dependencies
590 587
    */
591 588
   #if HAS_BED_PROBE
589
+    #if ENABLED(ENDSTOPPULLUPS) && HAS_Z_MIN_PROBE_PIN
590
+      #define ENDSTOPPULLUP_ZMIN_PROBE
591
+    #endif
592 592
     #ifndef Z_PROBE_OFFSET_RANGE_MIN
593 593
       #define Z_PROBE_OFFSET_RANGE_MIN -20
594 594
     #endif

+ 10
- 11
Marlin/Configuration.h Wyświetl plik

@@ -573,9 +573,6 @@
573 573
 // Allen Key Probe is defined in the Delta example configurations.
574 574
 //
575 575
 
576
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
577
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
578
-//
579 576
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
580 577
 //
581 578
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -594,15 +591,23 @@
594 591
 //
595 592
 // Normally-closed switches are advised and are the default.
596 593
 //
594
+
595
+//
597 596
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
598 597
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
599
-// default pin for all RAMPS-based boards. Some other boards map differently.
600
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
598
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
599
+// To use a different pin you can override it here.
601 600
 //
602 601
 // WARNING:
603 602
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
604 603
 // Use with caution and do your homework.
605 604
 //
605
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
606
+
607
+//
608
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
609
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
610
+//
606 611
 //#define Z_MIN_PROBE_ENDSTOP
607 612
 
608 613
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -611,12 +616,6 @@
611 616
 
612 617
 // To use a probe you must enable one of the two options above!
613 618
 
614
-// This option disables the use of the Z_MIN_PROBE_PIN
615
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
616
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
617
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
618
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
619
-
620 619
 // Enable Z Probe Repeatability test to see how accurate your probe is
621 620
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
622 621
 

+ 48
- 62
Marlin/SanityCheck.h Wyświetl plik

@@ -352,6 +352,42 @@
352 352
 
353 353
 #if PROBE_SELECTED
354 354
 
355
+  /**
356
+   * Only allow one probe option to be defined
357
+   */
358
+  #define COUNT_PROBE_1 0
359
+  #if ENABLED(FIX_MOUNTED_PROBE)
360
+    #define COUNT_PROBE_2 INCREMENT(COUNT_PROBE_1)
361
+  #else
362
+    #define COUNT_PROBE_2 COUNT_PROBE_1
363
+  #endif
364
+  #if HAS_Z_SERVO_ENDSTOP && DISABLED(BLTOUCH)
365
+    #define COUNT_PROBE_3 INCREMENT(COUNT_PROBE_2)
366
+  #else
367
+    #define COUNT_PROBE_3 COUNT_PROBE_2
368
+  #endif
369
+  #if ENABLED(BLTOUCH)
370
+    #define COUNT_PROBE_4 INCREMENT(COUNT_PROBE_3)
371
+  #else
372
+    #define COUNT_PROBE_4 COUNT_PROBE_3
373
+  #endif
374
+  #if ENABLED(Z_PROBE_ALLEN_KEY)
375
+    #define COUNT_PROBE_5 INCREMENT(COUNT_PROBE_4)
376
+  #else
377
+    #define COUNT_PROBE_5 COUNT_PROBE_4
378
+  #endif
379
+  #if ENABLED(Z_PROBE_SLED)
380
+    #define COUNT_PROBE_6 INCREMENT(COUNT_PROBE_5)
381
+  #else
382
+    #define COUNT_PROBE_6 COUNT_PROBE_5
383
+  #endif
384
+  #if COUNT_PROBE_6 > 1
385
+    #error "Please enable only one probe: FIX_MOUNTED_PROBE, Z Servo, BLTOUCH, Z_PROBE_ALLEN_KEY, or Z_PROBE_SLED."
386
+  #endif
387
+
388
+  /**
389
+   * Z_PROBE_SLED is incompatible with DELTA
390
+   */
355 391
   #if ENABLED(Z_PROBE_SLED) && ENABLED(DELTA)
356 392
     #error "You cannot use Z_PROBE_SLED with DELTA."
357 393
   #endif
@@ -368,72 +404,22 @@
368 404
   #endif
369 405
 
370 406
   /**
371
-   * A probe needs a pin
372
-   */
373
-  #if !PROBE_PIN_CONFIGURED
374
-    #error "A probe needs a pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN."
375
-  #endif
376
-
377
-  /**
378
-   * Require a Z min pin
407
+   * Require pin options and pins to be defined
379 408
    */
380
-  #if HAS_Z_MIN
381
-     // Z_MIN_PIN and Z_MIN_PROBE_PIN can't co-exist when Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
382
-    #if HAS_Z_MIN_PROBE_PIN && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
383
-      #error "A probe cannot have more than one pin! Use Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN or Z_MIN_PROBE_PIN."
409
+  #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
410
+    #if ENABLED(Z_MIN_PROBE_ENDSTOP)
411
+      #error "Enable only one option: Z_MIN_PROBE_ENDSTOP or Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN."
412
+    #elif DISABLED(USE_ZMIN_PLUG)
413
+      #error "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires USE_ZMIN_PLUG to be enabled."
414
+    #elif !HAS_Z_MIN
415
+      #error "Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN requires the Z_MIN_PIN to be defined."
384 416
     #endif
385
-  #elif !HAS_Z_MIN_PROBE_PIN || (DISABLED(Z_MIN_PROBE_ENDSTOP) || ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP))
386
-    // A pin was set for the Z probe, but not enabled.
387
-    #error "A probe requires a Z_MIN or Z_PROBE pin. Z_MIN_PIN or Z_MIN_PROBE_PIN must point to a valid hardware pin."
388
-  #endif
389
-
390
-  /**
391
-   * Make sure the plug is enabled if it's used
392
-   */
393
-  #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) && DISABLED(USE_ZMIN_PLUG)
394
-    #error "You must enable USE_ZMIN_PLUG if any probe or endstop is connected to the ZMIN plug."
395
-  #endif
396
-
397
-  /**
398
-   * Only allow one probe option to be defined
399
-   */
400
-  #if (ENABLED(FIX_MOUNTED_PROBE) && (ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
401
-       || (ENABLED(Z_PROBE_ALLEN_KEY) && (HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
402
-       || (HAS_Z_SERVO_ENDSTOP && ENABLED(Z_PROBE_SLED))
403
-    #error "Please define only one type of probe: Z Servo/BLTOUCH, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE."
404
-  #endif
405
-
406
-  /**
407
-   * Don't allow nonsense probe-pin settings
408
-   */
409
-  #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) && ENABLED(Z_MIN_PROBE_ENDSTOP)
410
-    #error "You can't enable both Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN and Z_MIN_PROBE_ENDSTOP."
411
-  #elif ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN) && ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP)
412
-    #error "Don't enable DISABLE_Z_MIN_PROBE_ENDSTOP with Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN."
413
-  #elif ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP) && DISABLED(Z_MIN_PROBE_ENDSTOP)
414
-    #error "DISABLE_Z_MIN_PROBE_ENDSTOP requires Z_MIN_PROBE_ENDSTOP to be set."
415
-  #endif
416
-
417
-  /**
418
-   * Require a Z probe pin if Z_MIN_PROBE_ENDSTOP is enabled.
419
-   */
420
-  #if ENABLED(Z_MIN_PROBE_ENDSTOP)
417
+  #elif ENABLED(Z_MIN_PROBE_ENDSTOP)
421 418
     #if !HAS_Z_MIN_PROBE_PIN
422
-      #error "Z_MIN_PROBE_ENDSTOP requires a Z_MIN_PROBE_PIN in your board's pins_XXXX.h file."
419
+      #error "Z_MIN_PROBE_ENDSTOP requires the Z_MIN_PROBE_PIN to be defined."
423 420
     #endif
424
-    // Forcing Servo definitions can break some hall effect sensor setups. Leaving these here for further comment.
425
-    //#ifndef NUM_SERVOS
426
-    //  #error "You must have NUM_SERVOS defined and there must be at least 1 configured to use Z_MIN_PROBE_ENDSTOP."
427
-    //#endif
428
-    //#if defined(NUM_SERVOS) && NUM_SERVOS < 1
429
-    //  #error "You must have at least 1 servo defined for NUM_SERVOS to use Z_MIN_PROBE_ENDSTOP."
430
-    //#endif
431
-    //#if Z_ENDSTOP_SERVO_NR < 0
432
-    //  #error "You must have Z_ENDSTOP_SERVO_NR set to at least 0 or above to use Z_MIN_PROBE_ENDSTOP."
433
-    //#endif
434
-    //#ifndef Z_SERVO_ANGLES
435
-    //  #error "You must have Z_SERVO_ANGLES defined for Z Extend and Retract to use Z_MIN_PROBE_ENDSTOP."
436
-    //#endif
421
+  #else
422
+    #error "You must enable either Z_MIN_PROBE_ENDSTOP or Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use a probe."
437 423
   #endif
438 424
 
439 425
   /**

+ 4
- 4
Marlin/endstops.cpp Wyświetl plik

@@ -122,7 +122,7 @@ void Endstops::init() {
122 122
     #endif
123 123
   #endif
124 124
 
125
-  #if HAS_Z_MIN_PROBE_PIN && ENABLED(Z_MIN_PROBE_ENDSTOP) // Check for Z_MIN_PROBE_ENDSTOP so we don't pull a pin high unless it's to be used.
125
+  #if ENABLED(Z_MIN_PROBE_ENDSTOP)
126 126
     SET_INPUT(Z_MIN_PROBE_PIN);
127 127
     #if ENABLED(ENDSTOPPULLUP_ZMIN_PROBE)
128 128
       WRITE(Z_MIN_PROBE_PIN,HIGH);
@@ -209,7 +209,7 @@ void Endstops::M119() {
209 209
     SERIAL_PROTOCOLPGM(MSG_Z2_MAX);
210 210
     SERIAL_PROTOCOLLN(((READ(Z2_MAX_PIN)^Z2_MAX_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
211 211
   #endif
212
-  #if HAS_Z_MIN_PROBE_PIN
212
+  #if ENABLED(Z_MIN_PROBE_ENDSTOP)
213 213
     SERIAL_PROTOCOLPGM(MSG_Z_PROBE);
214 214
     SERIAL_PROTOCOLLN(((READ(Z_MIN_PROBE_PIN)^Z_MIN_PROBE_ENDSTOP_INVERTING) ? MSG_ENDSTOP_HIT : MSG_ENDSTOP_OPEN));
215 215
   #endif
@@ -331,7 +331,7 @@ void Endstops::update() {
331 331
 
332 332
           #else // !Z_DUAL_ENDSTOPS
333 333
 
334
-            #if HAS_BED_PROBE && ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
334
+            #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
335 335
               if (z_probe_enabled) UPDATE_ENDSTOP(Z, MIN);
336 336
             #else
337 337
               UPDATE_ENDSTOP(Z, MIN);
@@ -341,7 +341,7 @@ void Endstops::update() {
341 341
 
342 342
         #endif // HAS_Z_MIN
343 343
 
344
-        #if HAS_BED_PROBE && ENABLED(Z_MIN_PROBE_ENDSTOP) && DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
344
+        #if ENABLED(Z_MIN_PROBE_ENDSTOP)
345 345
           if (z_probe_enabled) {
346 346
             UPDATE_ENDSTOP(Z, MIN_PROBE);
347 347
             if (TEST_ENDSTOP(Z_MIN_PROBE)) SBI(endstop_hit_bits, Z_MIN_PROBE);

+ 10
- 11
Marlin/example_configurations/Cartesio/Configuration.h Wyświetl plik

@@ -556,9 +556,6 @@
556 556
 // Allen Key Probe is defined in the Delta example configurations.
557 557
 //
558 558
 
559
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
560
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
561
-//
562 559
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
563 560
 //
564 561
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -577,15 +574,23 @@
577 574
 //
578 575
 // Normally-closed switches are advised and are the default.
579 576
 //
577
+
578
+//
580 579
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
581 580
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
582
-// default pin for all RAMPS-based boards. Some other boards map differently.
583
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
581
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
582
+// To use a different pin you can override it here.
584 583
 //
585 584
 // WARNING:
586 585
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
587 586
 // Use with caution and do your homework.
588 587
 //
588
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
589
+
590
+//
591
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
592
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
593
+//
589 594
 //#define Z_MIN_PROBE_ENDSTOP
590 595
 
591 596
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -594,12 +599,6 @@
594 599
 
595 600
 // To use a probe you must enable one of the two options above!
596 601
 
597
-// This option disables the use of the Z_MIN_PROBE_PIN
598
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
599
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
600
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
601
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
602
-
603 602
 // Enable Z Probe Repeatability test to see how accurate your probe is
604 603
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
605 604
 

+ 10
- 11
Marlin/example_configurations/Felix/Configuration.h Wyświetl plik

@@ -539,9 +539,6 @@
539 539
 // Allen Key Probe is defined in the Delta example configurations.
540 540
 //
541 541
 
542
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
543
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
544
-//
545 542
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
546 543
 //
547 544
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -560,15 +557,23 @@
560 557
 //
561 558
 // Normally-closed switches are advised and are the default.
562 559
 //
560
+
561
+//
563 562
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
564 563
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
565
-// default pin for all RAMPS-based boards. Some other boards map differently.
566
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
564
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
565
+// To use a different pin you can override it here.
567 566
 //
568 567
 // WARNING:
569 568
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
570 569
 // Use with caution and do your homework.
571 570
 //
571
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
572
+
573
+//
574
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
575
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
576
+//
572 577
 //#define Z_MIN_PROBE_ENDSTOP
573 578
 
574 579
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -577,12 +582,6 @@
577 582
 
578 583
 // To use a probe you must enable one of the two options above!
579 584
 
580
-// This option disables the use of the Z_MIN_PROBE_PIN
581
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
582
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
583
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
584
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
585
-
586 585
 // Enable Z Probe Repeatability test to see how accurate your probe is
587 586
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
588 587
 

+ 10
- 11
Marlin/example_configurations/Felix/DUAL/Configuration.h Wyświetl plik

@@ -537,9 +537,6 @@
537 537
 // Allen Key Probe is defined in the Delta example configurations.
538 538
 //
539 539
 
540
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
541
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
542
-//
543 540
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
544 541
 //
545 542
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -558,15 +555,23 @@
558 555
 //
559 556
 // Normally-closed switches are advised and are the default.
560 557
 //
558
+
559
+//
561 560
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
562 561
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
563
-// default pin for all RAMPS-based boards. Some other boards map differently.
564
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
562
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
563
+// To use a different pin you can override it here.
565 564
 //
566 565
 // WARNING:
567 566
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
568 567
 // Use with caution and do your homework.
569 568
 //
569
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
570
+
571
+//
572
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
573
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
574
+//
570 575
 //#define Z_MIN_PROBE_ENDSTOP
571 576
 
572 577
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -575,12 +580,6 @@
575 580
 
576 581
 // To use a probe you must enable one of the two options above!
577 582
 
578
-// This option disables the use of the Z_MIN_PROBE_PIN
579
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
580
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
581
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
582
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
583
-
584 583
 // Enable Z Probe Repeatability test to see how accurate your probe is
585 584
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
586 585
 

+ 10
- 11
Marlin/example_configurations/Hephestos/Configuration.h Wyświetl plik

@@ -548,9 +548,6 @@
548 548
 // Allen Key Probe is defined in the Delta example configurations.
549 549
 //
550 550
 
551
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
552
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
553
-//
554 551
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
555 552
 //
556 553
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -569,15 +566,23 @@
569 566
 //
570 567
 // Normally-closed switches are advised and are the default.
571 568
 //
569
+
570
+//
572 571
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
573 572
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
574
-// default pin for all RAMPS-based boards. Some other boards map differently.
575
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
573
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
574
+// To use a different pin you can override it here.
576 575
 //
577 576
 // WARNING:
578 577
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
579 578
 // Use with caution and do your homework.
580 579
 //
580
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
581
+
582
+//
583
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
584
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
585
+//
581 586
 #define Z_MIN_PROBE_ENDSTOP
582 587
 
583 588
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -586,12 +591,6 @@
586 591
 
587 592
 // To use a probe you must enable one of the two options above!
588 593
 
589
-// This option disables the use of the Z_MIN_PROBE_PIN
590
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
591
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
592
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
593
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
594
-
595 594
 // Enable Z Probe Repeatability test to see how accurate your probe is
596 595
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
597 596
 

+ 10
- 11
Marlin/example_configurations/Hephestos_2/Configuration.h Wyświetl plik

@@ -550,9 +550,6 @@
550 550
 // Allen Key Probe is defined in the Delta example configurations.
551 551
 //
552 552
 
553
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
554
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
555
-//
556 553
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
557 554
 //
558 555
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -571,15 +568,23 @@
571 568
 //
572 569
 // Normally-closed switches are advised and are the default.
573 570
 //
571
+
572
+//
574 573
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
575 574
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
576
-// default pin for all RAMPS-based boards. Some other boards map differently.
577
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
575
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
576
+// To use a different pin you can override it here.
578 577
 //
579 578
 // WARNING:
580 579
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
581 580
 // Use with caution and do your homework.
582 581
 //
582
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
583
+
584
+//
585
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
586
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
587
+//
583 588
 #define Z_MIN_PROBE_ENDSTOP
584 589
 
585 590
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -588,12 +593,6 @@
588 593
 
589 594
 // To use a probe you must enable one of the two options above!
590 595
 
591
-// This option disables the use of the Z_MIN_PROBE_PIN
592
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
593
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
594
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
595
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
596
-
597 596
 // Enable Z Probe Repeatability test to see how accurate your probe is
598 597
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
599 598
 

+ 10
- 11
Marlin/example_configurations/K8200/Configuration.h Wyświetl plik

@@ -573,9 +573,6 @@
573 573
 // Allen Key Probe is defined in the Delta example configurations.
574 574
 //
575 575
 
576
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
577
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
578
-//
579 576
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
580 577
 //
581 578
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -594,15 +591,23 @@
594 591
 //
595 592
 // Normally-closed switches are advised and are the default.
596 593
 //
594
+
595
+//
597 596
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
598 597
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
599
-// default pin for all RAMPS-based boards. Some other boards map differently.
600
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
598
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
599
+// To use a different pin you can override it here.
601 600
 //
602 601
 // WARNING:
603 602
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
604 603
 // Use with caution and do your homework.
605 604
 //
605
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
606
+
607
+//
608
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
609
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
610
+//
606 611
 //#define Z_MIN_PROBE_ENDSTOP
607 612
 
608 613
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -611,12 +616,6 @@
611 616
 
612 617
 // To use a probe you must enable one of the two options above!
613 618
 
614
-// This option disables the use of the Z_MIN_PROBE_PIN
615
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
616
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
617
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
618
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
619
-
620 619
 // Enable Z Probe Repeatability test to see how accurate your probe is
621 620
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
622 621
 

+ 10
- 11
Marlin/example_configurations/K8400/Configuration.h Wyświetl plik

@@ -556,9 +556,6 @@
556 556
 // Allen Key Probe is defined in the Delta example configurations.
557 557
 //
558 558
 
559
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
560
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
561
-//
562 559
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
563 560
 //
564 561
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -577,15 +574,23 @@
577 574
 //
578 575
 // Normally-closed switches are advised and are the default.
579 576
 //
577
+
578
+//
580 579
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
581 580
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
582
-// default pin for all RAMPS-based boards. Some other boards map differently.
583
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
581
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
582
+// To use a different pin you can override it here.
584 583
 //
585 584
 // WARNING:
586 585
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
587 586
 // Use with caution and do your homework.
588 587
 //
588
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
589
+
590
+//
591
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
592
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
593
+//
589 594
 //#define Z_MIN_PROBE_ENDSTOP
590 595
 
591 596
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -594,12 +599,6 @@
594 599
 
595 600
 // To use a probe you must enable one of the two options above!
596 601
 
597
-// This option disables the use of the Z_MIN_PROBE_PIN
598
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
599
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
600
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
601
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
602
-
603 602
 // Enable Z Probe Repeatability test to see how accurate your probe is
604 603
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
605 604
 

+ 10
- 11
Marlin/example_configurations/K8400/Dual-head/Configuration.h Wyświetl plik

@@ -556,9 +556,6 @@
556 556
 // Allen Key Probe is defined in the Delta example configurations.
557 557
 //
558 558
 
559
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
560
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
561
-//
562 559
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
563 560
 //
564 561
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -577,15 +574,23 @@
577 574
 //
578 575
 // Normally-closed switches are advised and are the default.
579 576
 //
577
+
578
+//
580 579
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
581 580
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
582
-// default pin for all RAMPS-based boards. Some other boards map differently.
583
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
581
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
582
+// To use a different pin you can override it here.
584 583
 //
585 584
 // WARNING:
586 585
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
587 586
 // Use with caution and do your homework.
588 587
 //
588
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
589
+
590
+//
591
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
592
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
593
+//
589 594
 //#define Z_MIN_PROBE_ENDSTOP
590 595
 
591 596
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -594,12 +599,6 @@
594 599
 
595 600
 // To use a probe you must enable one of the two options above!
596 601
 
597
-// This option disables the use of the Z_MIN_PROBE_PIN
598
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
599
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
600
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
601
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
602
-
603 602
 // Enable Z Probe Repeatability test to see how accurate your probe is
604 603
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
605 604
 

+ 10
- 11
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Wyświetl plik

@@ -556,9 +556,6 @@
556 556
 // Allen Key Probe is defined in the Delta example configurations.
557 557
 //
558 558
 
559
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
560
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
561
-//
562 559
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
563 560
 //
564 561
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -577,15 +574,23 @@
577 574
 //
578 575
 // Normally-closed switches are advised and are the default.
579 576
 //
577
+
578
+//
580 579
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
581 580
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
582
-// default pin for all RAMPS-based boards. Some other boards map differently.
583
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
581
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
582
+// To use a different pin you can override it here.
584 583
 //
585 584
 // WARNING:
586 585
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
587 586
 // Use with caution and do your homework.
588 587
 //
588
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
589
+
590
+//
591
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
592
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
593
+//
589 594
 //#define Z_MIN_PROBE_ENDSTOP
590 595
 
591 596
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -594,12 +599,6 @@
594 599
 
595 600
 // To use a probe you must enable one of the two options above!
596 601
 
597
-// This option disables the use of the Z_MIN_PROBE_PIN
598
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
599
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
600
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
601
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
602
-
603 602
 // Enable Z Probe Repeatability test to see how accurate your probe is
604 603
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
605 604
 

+ 10
- 11
Marlin/example_configurations/RigidBot/Configuration.h Wyświetl plik

@@ -554,9 +554,6 @@
554 554
 // Allen Key Probe is defined in the Delta example configurations.
555 555
 //
556 556
 
557
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
558
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
559
-//
560 557
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
561 558
 //
562 559
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -575,15 +572,23 @@
575 572
 //
576 573
 // Normally-closed switches are advised and are the default.
577 574
 //
575
+
576
+//
578 577
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
579 578
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
580
-// default pin for all RAMPS-based boards. Some other boards map differently.
581
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
579
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
580
+// To use a different pin you can override it here.
582 581
 //
583 582
 // WARNING:
584 583
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
585 584
 // Use with caution and do your homework.
586 585
 //
586
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
587
+
588
+//
589
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
590
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
591
+//
587 592
 //#define Z_MIN_PROBE_ENDSTOP
588 593
 
589 594
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -592,12 +597,6 @@
592 597
 
593 598
 // To use a probe you must enable one of the two options above!
594 599
 
595
-// This option disables the use of the Z_MIN_PROBE_PIN
596
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
597
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
598
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
599
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
600
-
601 600
 // Enable Z Probe Repeatability test to see how accurate your probe is
602 601
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
603 602
 

+ 10
- 11
Marlin/example_configurations/SCARA/Configuration.h Wyświetl plik

@@ -566,9 +566,6 @@
566 566
 // Allen Key Probe is defined in the Delta example configurations.
567 567
 //
568 568
 
569
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
570
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
571
-//
572 569
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
573 570
 //
574 571
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -587,15 +584,23 @@
587 584
 //
588 585
 // Normally-closed switches are advised and are the default.
589 586
 //
587
+
588
+//
590 589
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
591 590
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
592
-// default pin for all RAMPS-based boards. Some other boards map differently.
593
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
591
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
592
+// To use a different pin you can override it here.
594 593
 //
595 594
 // WARNING:
596 595
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
597 596
 // Use with caution and do your homework.
598 597
 //
598
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
599
+
600
+//
601
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
602
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
603
+//
599 604
 //#define Z_MIN_PROBE_ENDSTOP
600 605
 
601 606
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -604,12 +609,6 @@
604 609
 
605 610
 // To use a probe you must enable one of the two options above!
606 611
 
607
-// This option disables the use of the Z_MIN_PROBE_PIN
608
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
609
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
610
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
611
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
612
-
613 612
 // Enable Z Probe Repeatability test to see how accurate your probe is
614 613
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
615 614
 

+ 10
- 11
Marlin/example_configurations/TAZ4/Configuration.h Wyświetl plik

@@ -577,9 +577,6 @@
577 577
 // Allen Key Probe is defined in the Delta example configurations.
578 578
 //
579 579
 
580
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
581
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
582
-//
583 580
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
584 581
 //
585 582
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -598,15 +595,23 @@
598 595
 //
599 596
 // Normally-closed switches are advised and are the default.
600 597
 //
598
+
599
+//
601 600
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
602 601
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
603
-// default pin for all RAMPS-based boards. Some other boards map differently.
604
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
602
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
603
+// To use a different pin you can override it here.
605 604
 //
606 605
 // WARNING:
607 606
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
608 607
 // Use with caution and do your homework.
609 608
 //
609
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
610
+
611
+//
612
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
613
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
614
+//
610 615
 //#define Z_MIN_PROBE_ENDSTOP
611 616
 
612 617
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -615,12 +620,6 @@
615 620
 
616 621
 // To use a probe you must enable one of the two options above!
617 622
 
618
-// This option disables the use of the Z_MIN_PROBE_PIN
619
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
620
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
621
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
622
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
623
-
624 623
 // Enable Z Probe Repeatability test to see how accurate your probe is
625 624
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
626 625
 

+ 10
- 11
Marlin/example_configurations/WITBOX/Configuration.h Wyświetl plik

@@ -548,9 +548,6 @@
548 548
 // Allen Key Probe is defined in the Delta example configurations.
549 549
 //
550 550
 
551
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
552
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
553
-//
554 551
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
555 552
 //
556 553
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -569,15 +566,23 @@
569 566
 //
570 567
 // Normally-closed switches are advised and are the default.
571 568
 //
569
+
570
+//
572 571
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
573 572
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
574
-// default pin for all RAMPS-based boards. Some other boards map differently.
575
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
573
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
574
+// To use a different pin you can override it here.
576 575
 //
577 576
 // WARNING:
578 577
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
579 578
 // Use with caution and do your homework.
580 579
 //
580
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
581
+
582
+//
583
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
584
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
585
+//
581 586
 //#define Z_MIN_PROBE_ENDSTOP
582 587
 
583 588
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -586,12 +591,6 @@
586 591
 
587 592
 // To use a probe you must enable one of the two options above!
588 593
 
589
-// This option disables the use of the Z_MIN_PROBE_PIN
590
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
591
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
592
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
593
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
594
-
595 594
 // Enable Z Probe Repeatability test to see how accurate your probe is
596 595
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
597 596
 

+ 10
- 11
Marlin/example_configurations/adafruit/ST7565/Configuration.h Wyświetl plik

@@ -556,9 +556,6 @@
556 556
 // Allen Key Probe is defined in the Delta example configurations.
557 557
 //
558 558
 
559
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
560
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
561
-//
562 559
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
563 560
 //
564 561
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -577,15 +574,23 @@
577 574
 //
578 575
 // Normally-closed switches are advised and are the default.
579 576
 //
577
+
578
+//
580 579
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
581 580
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
582
-// default pin for all RAMPS-based boards. Some other boards map differently.
583
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
581
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
582
+// To use a different pin you can override it here.
584 583
 //
585 584
 // WARNING:
586 585
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
587 586
 // Use with caution and do your homework.
588 587
 //
588
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
589
+
590
+//
591
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
592
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
593
+//
589 594
 //#define Z_MIN_PROBE_ENDSTOP
590 595
 
591 596
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -594,12 +599,6 @@
594 599
 
595 600
 // To use a probe you must enable one of the two options above!
596 601
 
597
-// This option disables the use of the Z_MIN_PROBE_PIN
598
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
599
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
600
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
601
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
602
-
603 602
 // Enable Z Probe Repeatability test to see how accurate your probe is
604 603
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
605 604
 

+ 10
- 11
Marlin/example_configurations/delta/biv2.5/Configuration.h Wyświetl plik

@@ -646,9 +646,6 @@
646 646
 
647 647
 #endif // Z_PROBE_ALLEN_KEY
648 648
 
649
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
650
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
651
-//
652 649
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
653 650
 //
654 651
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -667,15 +664,23 @@
667 664
 //
668 665
 // Normally-closed switches are advised and are the default.
669 666
 //
667
+
668
+//
670 669
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
671 670
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
672
-// default pin for all RAMPS-based boards. Some other boards map differently.
673
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
671
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
672
+// To use a different pin you can override it here.
674 673
 //
675 674
 // WARNING:
676 675
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
677 676
 // Use with caution and do your homework.
678 677
 //
678
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
679
+
680
+//
681
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
682
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
683
+//
679 684
 //#define Z_MIN_PROBE_ENDSTOP
680 685
 
681 686
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -684,12 +689,6 @@
684 689
 
685 690
 // To use a probe you must enable one of the two options above!
686 691
 
687
-// This option disables the use of the Z_MIN_PROBE_PIN
688
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
689
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
690
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
691
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
692
-
693 692
 // Enable Z Probe Repeatability test to see how accurate your probe is
694 693
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
695 694
 

+ 10
- 11
Marlin/example_configurations/delta/generic/Configuration.h Wyświetl plik

@@ -640,9 +640,6 @@
640 640
 
641 641
 #endif // Z_PROBE_ALLEN_KEY
642 642
 
643
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
644
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
645
-//
646 643
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
647 644
 //
648 645
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -661,15 +658,23 @@
661 658
 //
662 659
 // Normally-closed switches are advised and are the default.
663 660
 //
661
+
662
+//
664 663
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
665 664
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
666
-// default pin for all RAMPS-based boards. Some other boards map differently.
667
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
665
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
666
+// To use a different pin you can override it here.
668 667
 //
669 668
 // WARNING:
670 669
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
671 670
 // Use with caution and do your homework.
672 671
 //
672
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
673
+
674
+//
675
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
676
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
677
+//
673 678
 #define Z_MIN_PROBE_ENDSTOP
674 679
 
675 680
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -678,12 +683,6 @@
678 683
 
679 684
 // To use a probe you must enable one of the two options above!
680 685
 
681
-// This option disables the use of the Z_MIN_PROBE_PIN
682
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
683
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
684
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
685
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
686
-
687 686
 // Enable Z Probe Repeatability test to see how accurate your probe is
688 687
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
689 688
 

+ 10
- 11
Marlin/example_configurations/delta/kossel_mini/Configuration.h Wyświetl plik

@@ -643,9 +643,6 @@
643 643
 
644 644
 #endif // Z_PROBE_ALLEN_KEY
645 645
 
646
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
647
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
648
-//
649 646
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
650 647
 //
651 648
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -664,15 +661,23 @@
664 661
 //
665 662
 // Normally-closed switches are advised and are the default.
666 663
 //
664
+
665
+//
667 666
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
668 667
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
669
-// default pin for all RAMPS-based boards. Some other boards map differently.
670
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
668
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
669
+// To use a different pin you can override it here.
671 670
 //
672 671
 // WARNING:
673 672
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
674 673
 // Use with caution and do your homework.
675 674
 //
675
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
676
+
677
+//
678
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
679
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
680
+//
676 681
 //#define Z_MIN_PROBE_ENDSTOP
677 682
 
678 683
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -681,12 +686,6 @@
681 686
 
682 687
 // To use a probe you must enable one of the two options above!
683 688
 
684
-// This option disables the use of the Z_MIN_PROBE_PIN
685
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
686
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
687
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
688
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
689
-
690 689
 // Enable Z Probe Repeatability test to see how accurate your probe is
691 690
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
692 691
 

+ 10
- 11
Marlin/example_configurations/delta/kossel_pro/Configuration.h Wyświetl plik

@@ -644,9 +644,6 @@
644 644
 
645 645
 #endif // Z_PROBE_ALLEN_KEY
646 646
 
647
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
648
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
649
-//
650 647
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
651 648
 //
652 649
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -665,15 +662,23 @@
665 662
 //
666 663
 // Normally-closed switches are advised and are the default.
667 664
 //
665
+
666
+//
668 667
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
669 668
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
670
-// default pin for all RAMPS-based boards. Some other boards map differently.
671
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
669
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
670
+// To use a different pin you can override it here.
672 671
 //
673 672
 // WARNING:
674 673
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
675 674
 // Use with caution and do your homework.
676 675
 //
676
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
677
+
678
+//
679
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
680
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
681
+//
677 682
 //#define Z_MIN_PROBE_ENDSTOP
678 683
 
679 684
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -682,12 +687,6 @@
682 687
 
683 688
 // To use a probe you must enable one of the two options above!
684 689
 
685
-// This option disables the use of the Z_MIN_PROBE_PIN
686
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
687
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
688
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
689
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
690
-
691 690
 // Enable Z Probe Repeatability test to see how accurate your probe is
692 691
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
693 692
 

+ 10
- 11
Marlin/example_configurations/delta/kossel_xl/Configuration.h Wyświetl plik

@@ -646,9 +646,6 @@
646 646
 
647 647
 #endif // Z_PROBE_ALLEN_KEY
648 648
 
649
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
650
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
651
-//
652 649
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
653 650
 //
654 651
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -667,15 +664,23 @@
667 664
 //
668 665
 // Normally-closed switches are advised and are the default.
669 666
 //
667
+
668
+//
670 669
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
671 670
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
672
-// default pin for all RAMPS-based boards. Some other boards map differently.
673
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
671
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
672
+// To use a different pin you can override it here.
674 673
 //
675 674
 // WARNING:
676 675
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
677 676
 // Use with caution and do your homework.
678 677
 //
678
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
679
+
680
+//
681
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
682
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
683
+//
679 684
 #define Z_MIN_PROBE_ENDSTOP
680 685
 
681 686
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -684,12 +689,6 @@
684 689
 
685 690
 // To use a probe you must enable one of the two options above!
686 691
 
687
-// This option disables the use of the Z_MIN_PROBE_PIN
688
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
689
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
690
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
691
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
692
-
693 692
 // Enable Z Probe Repeatability test to see how accurate your probe is
694 693
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
695 694
 

+ 10
- 11
Marlin/example_configurations/makibox/Configuration.h Wyświetl plik

@@ -559,9 +559,6 @@
559 559
 // Allen Key Probe is defined in the Delta example configurations.
560 560
 //
561 561
 
562
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
563
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
564
-//
565 562
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
566 563
 //
567 564
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -580,15 +577,23 @@
580 577
 //
581 578
 // Normally-closed switches are advised and are the default.
582 579
 //
580
+
581
+//
583 582
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
584 583
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
585
-// default pin for all RAMPS-based boards. Some other boards map differently.
586
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
584
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
585
+// To use a different pin you can override it here.
587 586
 //
588 587
 // WARNING:
589 588
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
590 589
 // Use with caution and do your homework.
591 590
 //
591
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
592
+
593
+//
594
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
595
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
596
+//
592 597
 //#define Z_MIN_PROBE_ENDSTOP
593 598
 
594 599
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -597,12 +602,6 @@
597 602
 
598 603
 // To use a probe you must enable one of the two options above!
599 604
 
600
-// This option disables the use of the Z_MIN_PROBE_PIN
601
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
602
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
603
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
604
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
605
-
606 605
 // Enable Z Probe Repeatability test to see how accurate your probe is
607 606
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
608 607
 

+ 10
- 11
Marlin/example_configurations/tvrrug/Round2/Configuration.h Wyświetl plik

@@ -552,9 +552,6 @@
552 552
 // Allen Key Probe is defined in the Delta example configurations.
553 553
 //
554 554
 
555
-// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
556
-// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
557
-//
558 555
 // *** PLEASE READ ALL INSTRUCTIONS BELOW FOR SAFETY! ***
559 556
 //
560 557
 // To continue using the Z-min-endstop for homing, be sure to disable Z_SAFE_HOMING.
@@ -573,15 +570,23 @@
573 570
 //
574 571
 // Normally-closed switches are advised and are the default.
575 572
 //
573
+
574
+//
576 575
 // The Z_MIN_PROBE_PIN sets the Arduino pin to use. (See your board's pins file.)
577 576
 // Since the RAMPS Aux4->D32 pin maps directly to the Arduino D32 pin, D32 is the
578
-// default pin for all RAMPS-based boards. Some other boards map differently.
579
-// To set or change the pin for your board, edit the appropriate pins_XXXXX.h file.
577
+// default pin for all RAMPS-based boards. Most boards use the X_MAX_PIN by default.
578
+// To use a different pin you can override it here.
580 579
 //
581 580
 // WARNING:
582 581
 // Setting the wrong pin may have unexpected and potentially disastrous consequences.
583 582
 // Use with caution and do your homework.
584 583
 //
584
+//#define Z_MIN_PROBE_PIN X_MAX_PIN
585
+
586
+//
587
+// Enable Z_MIN_PROBE_ENDSTOP to use _both_ a Z Probe and a Z-min-endstop on the same machine.
588
+// With this option the Z_MIN_PROBE_PIN will only be used for probing, never for homing.
589
+//
585 590
 //#define Z_MIN_PROBE_ENDSTOP
586 591
 
587 592
 // Enable Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN to use the Z_MIN_PIN for your Z_MIN_PROBE.
@@ -590,12 +595,6 @@
590 595
 
591 596
 // To use a probe you must enable one of the two options above!
592 597
 
593
-// This option disables the use of the Z_MIN_PROBE_PIN
594
-// To enable the Z probe pin but disable its use, uncomment the line below. This only affects a
595
-// Z probe switch if you have a separate Z min endstop also and have activated Z_MIN_PROBE_ENDSTOP above.
596
-// If you're using the Z MIN endstop connector for your Z probe, this has no effect.
597
-//#define DISABLE_Z_MIN_PROBE_ENDSTOP
598
-
599 598
 // Enable Z Probe Repeatability test to see how accurate your probe is
600 599
 //#define Z_MIN_PROBE_REPEATABILITY_TEST
601 600
 

+ 1
- 1
Marlin/pins.h Wyświetl plik

@@ -361,7 +361,7 @@
361 361
 //
362 362
 // Disable unused endstop / probe pins
363 363
 //
364
-#if ENABLED(DISABLE_Z_MIN_PROBE_ENDSTOP) || DISABLED(Z_MIN_PROBE_ENDSTOP) // Allow code to compile regardless of Z_MIN_PROBE_ENDSTOP setting.
364
+#if DISABLED(Z_MIN_PROBE_ENDSTOP)
365 365
   #undef Z_MIN_PROBE_PIN
366 366
   #define Z_MIN_PROBE_PIN    -1
367 367
 #endif

Ładowanie…
Anuluj
Zapisz