Browse Source

Allow BL-Touch users to control heaters during probe event (#6485)

The Configuration.h file entries for BL-Touch have been updated to:
```cpp
//#define BLTOUCH
//#define BLTOUCH_DELAY 375      // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are
turned off during probe event
```
pull/1/head
Roxy-3D 8 years ago
committed by GitHub
parent
commit
4075b95519
  1. 1
      Marlin/Configuration.h
  2. 8
      Marlin/Marlin_main.cpp
  3. 1
      Marlin/example_configurations/Cartesio/Configuration.h
  4. 1
      Marlin/example_configurations/Felix/Configuration.h
  5. 1
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  6. 1
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h
  7. 1
      Marlin/example_configurations/Hephestos/Configuration.h
  8. 1
      Marlin/example_configurations/Hephestos_2/Configuration.h
  9. 1
      Marlin/example_configurations/K8200/Configuration.h
  10. 1
      Marlin/example_configurations/K8400/Configuration.h
  11. 1
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  12. 1
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  13. 1
      Marlin/example_configurations/RigidBot/Configuration.h
  14. 1
      Marlin/example_configurations/SCARA/Configuration.h
  15. 1
      Marlin/example_configurations/TAZ4/Configuration.h
  16. 1
      Marlin/example_configurations/TinyBoy2/Configuration.h
  17. 1
      Marlin/example_configurations/WITBOX/Configuration.h
  18. 1
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  19. 1
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  20. 1
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  21. 1
      Marlin/example_configurations/delta/generic/Configuration.h
  22. 1
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  23. 1
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  24. 1
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  25. 1
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h
  26. 1
      Marlin/example_configurations/makibox/Configuration.h
  27. 1
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  28. 1
      Marlin/example_configurations/wt150/Configuration.h

1
Marlin/Configuration.h

@ -577,6 +577,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

8
Marlin/Marlin_main.cpp

@ -2067,10 +2067,11 @@ static void clean_up_after_endstop_or_probe_move() {
//
// The BL-Touch probes have a HAL effect sensor. The high currents switching
// on and off cause big magnetic fields that can affect the reliability of the
// on and off cause big magnetic fields that can affect the repeatability of the
// sensor. So, for BL-Touch probes, we turn off the heaters during the actual probe.
// And then we quickly turn them back on after we have sampled the point
//
#if ENABLED(BLTOUCH_HEATERS_OFF)
void turn_heaters_on_or_off_for_bltouch(const bool deploy) {
static int8_t bltouch_recursion_cnt=0;
static millis_t last_emi_protection=0;
@ -2105,9 +2106,12 @@ static void clean_up_after_endstop_or_probe_move() {
}
}
}
#endif
void set_bltouch_deployed(const bool deploy) {
#if ENABLED(BLTOUCH_HEATERS_OFF)
turn_heaters_on_or_off_for_bltouch(deploy);
#endif
if (deploy && TEST_BLTOUCH()) { // If BL-Touch says it's triggered
bltouch_command(BLTOUCH_RESET); // try to reset it.
bltouch_command(BLTOUCH_DEPLOY); // Also needs to deploy and stow to
@ -2143,8 +2147,10 @@ static void clean_up_after_endstop_or_probe_move() {
#endif
#if ENABLED(BLTOUCH)
#if ENABLED(BLTOUCH_HEATERS_OFF)
turn_heaters_on_or_off_for_bltouch(deploy);
#endif
#endif
if (endstops.z_probe_enabled == deploy) return false;

1
Marlin/example_configurations/Cartesio/Configuration.h

@ -576,6 +576,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/Felix/Configuration.h

@ -560,6 +560,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/Felix/DUAL/Configuration.h

@ -560,6 +560,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h

@ -580,6 +580,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/Hephestos/Configuration.h

@ -568,6 +568,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/Hephestos_2/Configuration.h

@ -571,6 +571,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/K8200/Configuration.h

@ -606,6 +606,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/K8400/Configuration.h

@ -577,6 +577,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/K8400/Dual-head/Configuration.h

@ -577,6 +577,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h

@ -577,6 +577,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/RigidBot/Configuration.h

@ -576,6 +576,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/SCARA/Configuration.h

@ -592,6 +592,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/TAZ4/Configuration.h

@ -597,6 +597,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/TinyBoy2/Configuration.h

@ -628,6 +628,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/WITBOX/Configuration.h

@ -568,6 +568,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/adafruit/ST7565/Configuration.h

@ -577,6 +577,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h

@ -651,6 +651,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h

@ -652,6 +652,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/delta/generic/Configuration.h

@ -641,6 +641,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/delta/kossel_mini/Configuration.h

@ -634,6 +634,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/delta/kossel_pro/Configuration.h

@ -635,6 +635,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/delta/kossel_xl/Configuration.h

@ -654,6 +654,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h

@ -591,6 +591,7 @@
*/
#define BLTOUCH
#define BLTOUCH_DELAY 500 // (ms) Enable and increase if needed
#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/makibox/Configuration.h

@ -580,6 +580,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/tvrrug/Round2/Configuration.h

@ -573,6 +573,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

1
Marlin/example_configurations/wt150/Configuration.h

@ -582,6 +582,7 @@
*/
//#define BLTOUCH
//#define BLTOUCH_DELAY 375 // (ms) Enable and increase if needed
//#define BLTOUCH_HEATERS_OFF // if defined the printer's heaters are turned off during probe event
/**
* BLTouch WARNING - ONLY APPLIES TO VERSIONS OF MARLIN BEFORE 15 FEB 2017

Loading…
Cancel
Save