Browse Source

Config file cleanup for Z_PROBE_AND_ENDSTOP support.

Chris Roadfeldt 9 years ago
parent
commit
6125124d6c
1 changed files with 14 additions and 23 deletions
  1. 14
    23
      Marlin/Configuration.h

+ 14
- 23
Marlin/Configuration.h View File

309
 #define ENDSTOPPULLUP_XMIN
309
 #define ENDSTOPPULLUP_XMIN
310
 #define ENDSTOPPULLUP_YMIN
310
 #define ENDSTOPPULLUP_YMIN
311
 #define ENDSTOPPULLUP_ZMIN
311
 #define ENDSTOPPULLUP_ZMIN
312
+#define ENDSTOPPULLUP_ZPROBE
312
 
313
 
313
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
314
 // Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
314
 const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
315
 const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
317
 const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
318
 const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
318
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
319
 const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
319
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
320
 const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
321
+const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
320
 
322
 
321
 //#define DISABLE_MAX_ENDSTOPS
323
 //#define DISABLE_MAX_ENDSTOPS
322
 //#define DISABLE_MIN_ENDSTOPS
324
 //#define DISABLE_MIN_ENDSTOPS
325
+// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
326
+// This only affects a Z Probe Endstop if you have separate Z min endstop as well and have
327
+// activated Z_PROBE_AND_ENDSTOP below. If you are using the Z Min endstop on your Z Probe,
328
+// this has no effect.
329
+//#define DISABLE_Z_PROBE_ENDSTOP
323
 
330
 
324
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
331
 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
325
 #define X_ENABLE_ON 0
332
 #define X_ENABLE_ON 0
484
 
491
 
485
   #endif
492
   #endif
486
 
493
 
487
-// Z Probe and Z endstop support
494
+// Seaparte concurrent Z Probe and Z min endstop support
488
 // Added by Chris Roadfeldt 3-28-2015
495
 // Added by Chris Roadfeldt 3-28-2015
489
-// If you have a Z Probe in addition to endstop(s) for Z Homing, uncomment the #define Z_PROBE_AND_ENDSTOP line below and configure Z Probe settings.
490
-// Only use this if you have both a Z PROBE and Z HOMING ENDSTOP(S). If you are using Z_SAFE_HOMING above, then you probably don't need this unless you want to make use of
491
-// a non-default pin for your Z Probe.
492
-// Note: It's expected that your Z Probe triggers in the direction towards your bed. If your Z Probe does not trigger when traveling towards you bed, it will trigger when it's moving
493
-// away from the bed.
494
-
495
-//  #define Z_PROBE_AND_ENDSTOP
496
-
497
-  #ifdef Z_PROBE_AND_ENDSTOP
498
-
499
-// As of 3-28-2015, there are NO Z Probe pins defined in any board config files.
500
-// Z_PROBE_PIN is for the signal pin only. 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 for the signal.
496
+// If you have a Z Probe in addition to a Z min endstop, uncomment the #define Z_PROBE_AND_ENDSTOP line below and configure Z Probe settings.
497
+// Only use this if you have both a Z PROBE and Z Min ENDSTOP.
498
+// Note: It's expected that your Z Probe triggers in the direction towards your bed.
499
+// In order to use this, you must have a Z_PROBE_PIN defined in the pins.h file for your control board.
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 for the signal.
501
 // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. The 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
 // The D32 pin in Aux 4 on RAMPS maps to the Arduino D32 pin. The 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.
502
 // D32 is currently selected in the RAMPS 1.3/1.4 pin file. Update the pins.h file for your control board to make use of this. Not doing so nullifies Z_PROBE_AND_ENDSTOP
502
 // D32 is currently selected in the RAMPS 1.3/1.4 pin file. Update the pins.h file for your control board to make use of this. Not doing so nullifies Z_PROBE_AND_ENDSTOP
503
 // WARNING: Setting the wrong pin may have unexpected and disastrous outcomes. Use with caution and do your homework.
503
 // WARNING: Setting the wrong pin may have unexpected and disastrous outcomes. Use with caution and do your homework.
504
-
505
-// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
506
-    const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
507
-
508
-// The pullups are needed if you directly connect a mechanical endstop between the signal and ground pins.
509
-    #define ENDSTOPPULLUP_ZPROBE
510
-
511
-// If you want to enable the Z Probe pin, but disable its use, uncomment the line below.
512
-//    #define DISABLE_Z_PROBE_ENDSTOP
513
-  #endif
504
+//  #define Z_PROBE_AND_ENDSTOP
514
 
505
 
515
 #endif // ENABLE_AUTO_BED_LEVELING
506
 #endif // ENABLE_AUTO_BED_LEVELING
516
 
507
 

Loading…
Cancel
Save