Browse Source

Add cleanups needed for #1772

Scott Lahteine 9 years ago
parent
commit
a469d796e1

+ 1
- 0
Marlin/Conditionals.h View File

389
   #define HAS_Z_MAX (PIN_EXISTS(Z_MAX))
389
   #define HAS_Z_MAX (PIN_EXISTS(Z_MAX))
390
   #define HAS_Z2_MIN (PIN_EXISTS(Z2_MIN))
390
   #define HAS_Z2_MIN (PIN_EXISTS(Z2_MIN))
391
   #define HAS_Z2_MAX (PIN_EXISTS(Z2_MAX))
391
   #define HAS_Z2_MAX (PIN_EXISTS(Z2_MAX))
392
+  #define HAS_Z_PROBE (PIN_EXISTS(Z_PROBE))
392
   #define HAS_SOLENOID_1 (PIN_EXISTS(SOL1))
393
   #define HAS_SOLENOID_1 (PIN_EXISTS(SOL1))
393
   #define HAS_SOLENOID_2 (PIN_EXISTS(SOL2))
394
   #define HAS_SOLENOID_2 (PIN_EXISTS(SOL2))
394
   #define HAS_SOLENOID_3 (PIN_EXISTS(SOL3))
395
   #define HAS_SOLENOID_3 (PIN_EXISTS(SOL3))

+ 13
- 13
Marlin/Configuration.h View File

499
 
499
 
500
   #endif
500
   #endif
501
 
501
 
502
-// Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
503
-// If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
504
-// If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
505
-// WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
506
-// To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
507
-// If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
508
-// RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
509
-// for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
510
-// The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
511
-// D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
512
-// WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
513
-
514
-//  #define Z_PROBE_ENDSTOP
502
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
503
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
504
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
505
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
506
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
507
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
508
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
509
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
510
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
511
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
512
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
513
+
514
+  //#define Z_PROBE_ENDSTOP
515
 
515
 
516
 #endif // ENABLE_AUTO_BED_LEVELING
516
 #endif // ENABLE_AUTO_BED_LEVELING
517
 
517
 

+ 13
- 13
Marlin/Marlin_main.cpp View File

1226
       
1226
       
1227
       st_synchronize();
1227
       st_synchronize();
1228
 
1228
 
1229
-    #if defined(Z_PROBE_ENDSTOP)
1229
+    #ifdef Z_PROBE_ENDSTOP
1230
       bool z_probe_endstop = (READ(Z_PROBE_PIN) != Z_PROBE_ENDSTOP_INVERTING);
1230
       bool z_probe_endstop = (READ(Z_PROBE_PIN) != Z_PROBE_ENDSTOP_INVERTING);
1231
-      if (z_probe_endstop) {
1231
+      if (z_probe_endstop)
1232
     #else
1232
     #else
1233
       bool z_min_endstop = (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING);
1233
       bool z_min_endstop = (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING);
1234
-      if (z_min_endstop) {
1234
+      if (z_min_endstop)
1235
     #endif
1235
     #endif
1236
+      {
1236
         if (!Stopped) {
1237
         if (!Stopped) {
1237
           SERIAL_ERROR_START;
1238
           SERIAL_ERROR_START;
1238
           SERIAL_ERRORLNPGM("Z-Probe failed to engage!");
1239
           SERIAL_ERRORLNPGM("Z-Probe failed to engage!");
1300
       
1301
       
1301
       st_synchronize();
1302
       st_synchronize();
1302
 
1303
 
1303
-    #if defined(Z_PROBE_ENDSTOP)
1304
+    #ifdef Z_PROBE_ENDSTOP
1304
       bool z_probe_endstop = (READ(Z_PROBE_PIN) != Z_PROBE_ENDSTOP_INVERTING);
1305
       bool z_probe_endstop = (READ(Z_PROBE_PIN) != Z_PROBE_ENDSTOP_INVERTING);
1305
-      if (!z_probe_endstop) {
1306
+      if (!z_probe_endstop)
1306
     #else
1307
     #else
1307
       bool z_min_endstop = (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING);
1308
       bool z_min_endstop = (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING);
1308
-      if (!z_min_endstop) {
1309
+      if (!z_min_endstop)
1309
     #endif
1310
     #endif
1311
+      {
1310
         if (!Stopped) {
1312
         if (!Stopped) {
1311
           SERIAL_ERROR_START;
1313
           SERIAL_ERROR_START;
1312
           SERIAL_ERRORLNPGM("Z-Probe failed to retract!");
1314
           SERIAL_ERRORLNPGM("Z-Probe failed to retract!");
2778
 #if defined(ENABLE_AUTO_BED_LEVELING) && defined(Z_PROBE_REPEATABILITY_TEST)
2780
 #if defined(ENABLE_AUTO_BED_LEVELING) && defined(Z_PROBE_REPEATABILITY_TEST)
2779
 
2781
 
2780
   // This is redudant since the SanityCheck.h already checks for a valid Z_PROBE_PIN, but here for clarity.
2782
   // This is redudant since the SanityCheck.h already checks for a valid Z_PROBE_PIN, but here for clarity.
2781
-  #if defined (Z_PROBE_ENDSTOP)
2782
-    #if (! defined (Z_PROBE_PIN) || Z_PROBE_PIN == -1)
2783
+  #ifdef Z_PROBE_ENDSTOP
2784
+    #if !HAS_Z_PROBE
2783
       #error "You must have a Z_PROBE_PIN defined in order to enable calculation of Z-Probe repeatability."
2785
       #error "You must have a Z_PROBE_PIN defined in order to enable calculation of Z-Probe repeatability."
2784
     #endif
2786
     #endif
2785
-  #else
2786
-    #if (Z_MIN_PIN == -1)
2787
-      #error "You must have a Z_MIN_PIN defined in order to enable calculation of Z-Probe repeatability."
2788
-    #endif
2787
+  #elif !HAS_Z_MIN
2788
+    #error "You must have a Z_MIN_PIN defined in order to enable calculation of Z-Probe repeatability."
2789
   #endif
2789
   #endif
2790
 
2790
 
2791
   /**
2791
   /**
3515
     SERIAL_PROTOCOLPGM(MSG_Z2_MAX);
3515
     SERIAL_PROTOCOLPGM(MSG_Z2_MAX);
3516
     SERIAL_PROTOCOLLN(((READ(Z2_MAX_PIN)^Z2_MAX_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
3516
     SERIAL_PROTOCOLLN(((READ(Z2_MAX_PIN)^Z2_MAX_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
3517
   #endif
3517
   #endif
3518
-  #if defined(Z_PROBE_PIN) && Z_PROBE_PIN > -1
3518
+  #if HAS_Z_PROBE
3519
     SERIAL_PROTOCOLPGM(MSG_Z_PROBE);
3519
     SERIAL_PROTOCOLPGM(MSG_Z_PROBE);
3520
     SERIAL_PROTOCOLLN(((READ(Z_PROBE_PIN)^Z_PROBE_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
3520
     SERIAL_PROTOCOLLN(((READ(Z_PROBE_PIN)^Z_PROBE_ENDSTOP_INVERTING)?MSG_ENDSTOP_HIT:MSG_ENDSTOP_OPEN));
3521
   #endif
3521
   #endif

+ 14
- 0
Marlin/configurator/config/Configuration.h View File

519
 
519
 
520
   #endif
520
   #endif
521
 
521
 
522
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
523
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
524
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
525
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
526
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
527
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
528
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
529
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
530
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
531
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
532
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
533
+
534
+  //#define Z_PROBE_ENDSTOP
535
+
522
 #endif // ENABLE_AUTO_BED_LEVELING
536
 #endif // ENABLE_AUTO_BED_LEVELING
523
 
537
 
524
 
538
 

+ 14
- 0
Marlin/example_configurations/Felix/Configuration.h View File

469
 
469
 
470
   #endif
470
   #endif
471
 
471
 
472
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
473
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
474
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
475
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
476
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
477
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
478
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
479
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
480
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
481
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
482
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
483
+
484
+  //#define Z_PROBE_ENDSTOP
485
+
472
 #endif // ENABLE_AUTO_BED_LEVELING
486
 #endif // ENABLE_AUTO_BED_LEVELING
473
 
487
 
474
 
488
 

+ 14
- 0
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

469
 
469
 
470
   #endif
470
   #endif
471
 
471
 
472
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
473
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
474
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
475
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
476
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
477
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
478
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
479
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
480
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
481
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
482
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
483
+
484
+  //#define Z_PROBE_ENDSTOP
485
+
472
 #endif // ENABLE_AUTO_BED_LEVELING
486
 #endif // ENABLE_AUTO_BED_LEVELING
473
 
487
 
474
 
488
 

+ 14
- 0
Marlin/example_configurations/Hephestos/Configuration.h View File

492
 
492
 
493
   #endif
493
   #endif
494
 
494
 
495
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
496
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
497
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
498
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
499
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
500
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
501
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
502
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
503
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
504
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
505
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
506
+
507
+  //#define Z_PROBE_ENDSTOP
508
+
495
 #endif // ENABLE_AUTO_BED_LEVELING
509
 #endif // ENABLE_AUTO_BED_LEVELING
496
 
510
 
497
 
511
 

+ 14
- 0
Marlin/example_configurations/K8200/Configuration.h View File

497
 
497
 
498
   #endif
498
   #endif
499
 
499
 
500
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
501
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
502
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
503
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
504
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
505
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
506
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
507
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
508
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
509
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
510
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
511
+
512
+  //#define Z_PROBE_ENDSTOP
513
+
500
 #endif // ENABLE_AUTO_BED_LEVELING
514
 #endif // ENABLE_AUTO_BED_LEVELING
501
 
515
 
502
 
516
 

+ 14
- 0
Marlin/example_configurations/SCARA/Configuration.h View File

521
 
521
 
522
   #endif
522
   #endif
523
 
523
 
524
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
525
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
526
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
527
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
528
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
529
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
530
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
531
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
532
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
533
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
534
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
535
+
536
+  //#define Z_PROBE_ENDSTOP
537
+
524
 #endif // ENABLE_AUTO_BED_LEVELING
538
 #endif // ENABLE_AUTO_BED_LEVELING
525
 
539
 
526
 
540
 

+ 14
- 0
Marlin/example_configurations/WITBOX/Configuration.h View File

491
 
491
 
492
   #endif
492
   #endif
493
 
493
 
494
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
495
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
496
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
497
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
498
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
499
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
500
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
501
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
502
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
503
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
504
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
505
+
506
+  //#define Z_PROBE_ENDSTOP
507
+
494
 #endif // ENABLE_AUTO_BED_LEVELING
508
 #endif // ENABLE_AUTO_BED_LEVELING
495
 
509
 
496
 
510
 

+ 14
- 0
Marlin/example_configurations/delta/generic/Configuration.h View File

537
 
537
 
538
   #endif
538
   #endif
539
 
539
 
540
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
541
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
542
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
543
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
544
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
545
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
546
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
547
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
548
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
549
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
550
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
551
+
552
+  //#define Z_PROBE_ENDSTOP
553
+
540
 #endif // ENABLE_AUTO_BED_LEVELING
554
 #endif // ENABLE_AUTO_BED_LEVELING
541
 
555
 
542
 
556
 

+ 14
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

541
 
541
 
542
   #endif
542
   #endif
543
 
543
 
544
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
545
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
546
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
547
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
548
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
549
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
550
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
551
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
552
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
553
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
554
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
555
+
556
+  //#define Z_PROBE_ENDSTOP
557
+
544
 #endif // ENABLE_AUTO_BED_LEVELING
558
 #endif // ENABLE_AUTO_BED_LEVELING
545
 
559
 
546
 
560
 

+ 14
- 0
Marlin/example_configurations/makibox/Configuration.h View File

489
 
489
 
490
   #endif
490
   #endif
491
 
491
 
492
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
493
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
494
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
495
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
496
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
497
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
498
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
499
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
500
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
501
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
502
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
503
+
504
+  //#define Z_PROBE_ENDSTOP
505
+
492
 #endif // ENABLE_AUTO_BED_LEVELING
506
 #endif // ENABLE_AUTO_BED_LEVELING
493
 
507
 
494
 
508
 

+ 14
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

491
 
491
 
492
   #endif
492
   #endif
493
 
493
 
494
+  // Support for a dedicated Z PROBE endstop separate from the Z MIN endstop.
495
+  // If you would like to use both a Z PROBE and a Z MIN endstop together or just a Z PROBE with a custom pin, uncomment #define Z_PROBE_ENDSTOP and read the instructions below.
496
+  // If you want to still use the Z min endstop for homing, disable Z_SAFE_HOMING above. Eg; to park the head outside the bed area when homing with G28.
497
+  // WARNING: The Z MIN endstop will need to set properly as it would without a Z PROBE to prevent head crashes and premature stopping during a print.
498
+  // To use a separte Z PROBE endstop, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
499
+  // If you are using a servo based Z PROBE, you will need to enable NUM_SERVOS, SERVO_ENDSTOPS and SERVO_ENDSTOPS_ANGLES in the R/C Servo below.
500
+  // RAMPS 1.3/1.4 boards may be able to use the 5V, Ground and the D32 pin in the Aux 4 section of the RAMPS board. Use 5V for powered sensors, otherwise connect to ground and D32
501
+  // for normally closed configuration and 5V and D32 for normally open configurations. Normally closed configuration is advised and assumed.
502
+  // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. Z_PROBE_PIN is setting the pin to use on the Arduino. Since the D32 pin on the RAMPS maps to D32 on Arduino, this works.
503
+  // D32 is currently selected in the RAMPS 1.3/1.4 pin file. All other boards will need changes to the respective pins_XXXXX.h file.
504
+  // WARNING: Setting the wrong pin may have unexpected and potentially disastrous outcomes. Use with caution and do your homework.
505
+
506
+  //#define Z_PROBE_ENDSTOP
507
+
494
 #endif // ENABLE_AUTO_BED_LEVELING
508
 #endif // ENABLE_AUTO_BED_LEVELING
495
 
509
 
496
 
510
 

Loading…
Cancel
Save