ソースを参照

Merge pull request #11772 from SJ-Innovation/bf2_ClosedLoopController_Support

Scott Lahteine 7年前
コミット
5d5cd1332d
コミッターのメールアドレスに関連付けられたアカウントが存在しません
63個のファイルの変更517行の追加1行の削除
  1. 7
    0
      Marlin/Configuration_adv.h
  2. 6
    0
      Marlin/src/Marlin.cpp
  3. 7
    0
      Marlin/src/config/default/Configuration_adv.h
  4. 7
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  5. 7
    0
      Marlin/src/config/examples/Anet/A2/Configuration_adv.h
  6. 7
    0
      Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h
  7. 7
    0
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  8. 7
    0
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  9. 7
    0
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  10. 7
    0
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  11. 7
    0
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
  12. 7
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  13. 7
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  14. 7
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  15. 7
    0
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  16. 7
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  17. 7
    0
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  18. 7
    0
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  19. 7
    0
      Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
  20. 7
    0
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  21. 7
    0
      Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h
  22. 7
    0
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  23. 7
    0
      Marlin/src/config/examples/Einstart-S/Configuration_adv.h
  24. 7
    0
      Marlin/src/config/examples/Felix/Configuration_adv.h
  25. 7
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  26. 7
    0
      Marlin/src/config/examples/Formbot/T-Rex_2+/Configuration_adv.h
  27. 7
    0
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h
  28. 7
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  29. 7
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  30. 7
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  31. 7
    0
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  32. 7
    0
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  33. 7
    0
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  34. 7
    0
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  35. 7
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  36. 7
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  37. 7
    0
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  38. 7
    0
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  39. 7
    0
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  40. 7
    0
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  41. 7
    0
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  42. 7
    0
      Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h
  43. 7
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  44. 7
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  45. 7
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  46. 7
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  47. 7
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  48. 7
    0
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  49. 7
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  50. 7
    0
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  51. 7
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  52. 7
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  53. 7
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  54. 7
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  55. 7
    0
      Marlin/src/config/examples/makibox/Configuration_adv.h
  56. 7
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  57. 7
    0
      Marlin/src/config/examples/wt150/Configuration_adv.h
  58. 41
    0
      Marlin/src/feature/closedloop.cpp
  59. 25
    0
      Marlin/src/feature/closedloop.h
  60. 36
    0
      Marlin/src/gcode/calibrate/M12.cpp
  61. 4
    0
      Marlin/src/gcode/gcode.cpp
  62. 5
    0
      Marlin/src/gcode/gcode.h
  63. 8
    1
      Marlin/src/module/planner.cpp

+ 7
- 0
Marlin/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 6
- 0
Marlin/src/Marlin.cpp ファイルの表示

@@ -40,6 +40,8 @@
40 40
 #include "sd/cardreader.h"
41 41
 #include "module/configuration_store.h"
42 42
 #include "module/printcounter.h" // PrintCounter or Stopwatch
43
+#include "feature/closedloop.h"
44
+
43 45
 #ifdef ARDUINO
44 46
   #include <pins_arduino.h>
45 47
 #endif
@@ -903,6 +905,10 @@ void setup() {
903 905
   #if ENABLED(USE_WATCHDOG) // Reinit watchdog after HAL_get_reset_source call
904 906
     watchdog_init();
905 907
   #endif
908
+
909
+  #if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
910
+    init_closedloop();
911
+  #endif
906 912
 }
907 913
 
908 914
 /**

+ 7
- 0
Marlin/src/config/default/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Anet/A2/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Anet/A6/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Anet/A8/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Cartesio/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Einstart-S/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Felix/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Formbot/T-Rex_2+/Configuration_adv.h ファイルの表示

@@ -291,6 +291,13 @@
291 291
 
292 292
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
293 293
 
294
+// Employ an external closed loop controller. Override pins here if needed.
295
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
296
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
297
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
298
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
299
+#endif
300
+
294 301
 /**
295 302
  * Dual Steppers / Dual Endstops
296 303
  *

+ 7
- 0
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h ファイルの表示

@@ -291,6 +291,13 @@
291 291
 
292 292
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
293 293
 
294
+// Employ an external closed loop controller. Override pins here if needed.
295
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
296
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
297
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
298
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
299
+#endif
300
+
294 301
 /**
295 302
  * Dual Steppers / Dual Endstops
296 303
  *

+ 7
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/MakerParts/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 #define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/RigidBot/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/SCARA/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/TheBorg/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h ファイルの表示

@@ -300,6 +300,13 @@
300 300
 
301 301
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
302 302
 
303
+// Employ an external closed loop controller. Override pins here if needed.
304
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
305
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
306
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
307
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
308
+#endif
309
+
303 310
 /**
304 311
  * Dual Steppers / Dual Endstops
305 312
  *

+ 7
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/delta/generic/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h ファイルの表示

@@ -292,6 +292,13 @@
292 292
 
293 293
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
294 294
 
295
+// Employ an external closed loop controller. Override pins here if needed.
296
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
297
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
298
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
299
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
300
+#endif
301
+
295 302
 /**
296 303
  * Dual Steppers / Dual Endstops
297 304
  *

+ 7
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/makibox/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 7
- 0
Marlin/src/config/examples/wt150/Configuration_adv.h ファイルの表示

@@ -287,6 +287,13 @@
287 287
 
288 288
 //#define Z_LATE_ENABLE // Enable Z the last moment. Needed if your Z driver overheats.
289 289
 
290
+// Employ an external closed loop controller. Override pins here if needed.
291
+//#define EXTERNAL_CLOSED_LOOP_CONTROLLER
292
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
293
+  //#define CLOSED_LOOP_ENABLE_PIN        -1
294
+  //#define CLOSED_LOOP_MOVE_COMPLETE_PIN -1
295
+#endif
296
+
290 297
 /**
291 298
  * Dual Steppers / Dual Endstops
292 299
  *

+ 41
- 0
Marlin/src/feature/closedloop.cpp ファイルの表示

@@ -0,0 +1,41 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#include "../inc/MarlinConfig.h"
23
+
24
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
25
+
26
+#if !PIN_EXISTS(CLOSED_LOOP_ENABLE) || !PIN_EXISTS(CLOSED_LOOP_MOVE_COMPLETE)
27
+  #error "CLOSED_LOOP_ENABLE_PIN and CLOSED_LOOP_MOVE_COMPLETE_PIN are required for EXTERNAL_CLOSED_LOOP_CONTROLLER."
28
+#endif
29
+
30
+#include "closedloop.h"
31
+
32
+void init_closedloop() {
33
+  OUT_WRITE(CLOSED_LOOP_ENABLE_PIN, LOW);
34
+  SET_INPUT_PULLUP(CLOSED_LOOP_MOVE_COMPLETE_PIN);
35
+}
36
+
37
+void set_closedloop(const byte val) {
38
+  OUT_WRITE(CLOSED_LOOP_ENABLE_PIN, val);
39
+}
40
+
41
+#endif // EXTERNAL_CLOSED_LOOP_CONTROLLER

+ 25
- 0
Marlin/src/feature/closedloop.h ファイルの表示

@@ -0,0 +1,25 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#pragma once
23
+
24
+void init_closedloop();
25
+void set_closedloop(const byte val);

+ 36
- 0
Marlin/src/gcode/calibrate/M12.cpp ファイルの表示

@@ -0,0 +1,36 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#include "../../inc/MarlinConfigPre.h"
23
+
24
+#if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
25
+
26
+#include "../gcode.h"
27
+#include "../../module/planner.h"
28
+#include "../../feature/closedloop.h"
29
+
30
+void GcodeSuite::M12() {
31
+  planner.synchronize();
32
+  if (parser.seenval('S'))
33
+    set_closedloop(parser.value_int()); // Force a CLC set
34
+}
35
+
36
+#endif

+ 4
- 0
Marlin/src/gcode/gcode.cpp ファイルの表示

@@ -292,6 +292,10 @@ void GcodeSuite::process_parsed_command(
292 292
         case 5: M5(); break;                                      // M5 - turn spindle/laser off
293 293
       #endif
294 294
 
295
+      #if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
296
+        case 12: M12(); break;                                    // M12: Synchronize and optionally force a CLC set
297
+      #endif
298
+
295 299
       case 17: M17(); break;                                      // M17: Enable all stepper motors
296 300
 
297 301
       #if ENABLED(SDSUPPORT)

+ 5
- 0
Marlin/src/gcode/gcode.h ファイルの表示

@@ -76,6 +76,7 @@
76 76
  * M3   - Turn laser/spindle on, set spindle/laser speed/power, set rotation to clockwise
77 77
  * M4   - Turn laser/spindle on, set spindle/laser speed/power, set rotation to counter-clockwise
78 78
  * M5   - Turn laser/spindle off
79
+ * M12  - Set up closed loop control system. More features coming soon. (Requires EXTERNAL_CLOSED_LOOP_CONTROLLER)
79 80
  * M17  - Enable/Power all stepper motors
80 81
  * M18  - Disable all stepper motors; same as M84
81 82
  * M20  - List SD card. (Requires SDSUPPORT)
@@ -438,6 +439,10 @@ private:
438 439
     static void M5();
439 440
   #endif
440 441
 
442
+  #if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
443
+    static void M12();
444
+  #endif
445
+
441 446
   static void M17();
442 447
 
443 448
   static void M18_M84();

+ 8
- 1
Marlin/src/module/planner.cpp ファイルの表示

@@ -1539,7 +1539,14 @@ float Planner::get_axis_position_mm(const AxisEnum axis) {
1539 1539
 /**
1540 1540
  * Block until all buffered steps are executed / cleaned
1541 1541
  */
1542
-void Planner::synchronize() { while (has_blocks_queued() || cleaning_buffer_counter) idle(); }
1542
+void Planner::synchronize() {
1543
+  while (
1544
+    has_blocks_queued() || cleaning_buffer_counter
1545
+    #if ENABLED(EXTERNAL_CLOSED_LOOP_CONTROLLER)
1546
+      || !READ(CLOSED_LOOP_MOVE_COMPLETE_PIN)
1547
+    #endif
1548
+  ) idle();
1549
+}
1543 1550
 
1544 1551
 /**
1545 1552
  * Planner::_buffer_steps

読み込み中…
キャンセル
保存