Browse Source

Update configs for new servo deactivation

Scott Lahteine 9 years ago
parent
commit
391386dd94

+ 12
- 11
Marlin/Configuration.h View File

@@ -767,17 +767,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
767 767
 //
768 768
 //#define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
769 769
 
770
-// If DEACTIVATE_SERVOS_AFTER_MOVE is defined, the servos will be turned on only during movement and then turned off to avoid jitter
771
-// SERVO_DEACTIVATION_DELAY is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
772
-// If your servo does not reach the requested position, enlarge the time.
773
-// You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
774
-//
775
-//#define DEACTIVATE_SERVOS_AFTER_MOVE
776
-
777
-#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
778
-  #define SERVO_DEACTIVATION_DELAY 300
779
-#endif
780
-
781 770
 // Servo Endstops
782 771
 //
783 772
 // This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.
@@ -786,6 +775,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
786 775
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
787 776
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
788 777
 
778
+// Servo deactivation
779
+//
780
+// With this option servos are powered only during movement, then turned off to prevent jitter.
781
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
782
+
783
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
784
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
785
+  // 300ms is a good value but you can try less delay.
786
+  // If the servo can't reach the requested position, increase it.
787
+  #define SERVO_DEACTIVATION_DELAY 300
788
+#endif
789
+
789 790
 /**********************************************************************\
790 791
  * Support for a filament diameter sensor
791 792
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 7
- 0
Marlin/SanityCheck.h View File

@@ -85,6 +85,13 @@
85 85
   #endif
86 86
 
87 87
   /**
88
+   * Servo deactivation depends on servo endstops
89
+   */
90
+  #if defined(DEACTIVATE_SERVOS_AFTER_MOVE) && !defined(SERVO_ENDSTOPS)
91
+    #error SERVO_ENDSTOPS is required for DEACTIVATE_SERVOS_AFTER_MOVE.
92
+  #endif
93
+
94
+  /**
88 95
    * Required LCD language
89 96
    */
90 97
   #if !defined(DOGLCD) && defined(ULTRA_LCD) && !defined(DISPLAY_CHARSET_HD44780_JAPAN) && !defined(DISPLAY_CHARSET_HD44780_WESTERN)&& !defined(DISPLAY_CHARSET_HD44780_CYRILLIC)

+ 12
- 7
Marlin/configurator/config/Configuration.h View File

@@ -503,13 +503,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
503 503
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
504 504
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
505 505
 
506
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
507
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
508
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
509
-
510
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
511
-
512
-
513 506
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
514 507
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
515 508
 
@@ -781,6 +774,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
781 774
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
782 775
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
783 776
 
777
+// Servo deactivation
778
+//
779
+// With this option servos are powered only during movement, then turned off to prevent jitter.
780
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
781
+
782
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
783
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
784
+  // 300ms is a good value but you can try less delay.
785
+  // If the servo can't reach the requested position, increase it.
786
+  #define SERVO_DEACTIVATION_DELAY 300
787
+#endif
788
+
784 789
 /**********************************************************************\
785 790
  * Support for a filament diameter sensor
786 791
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/Felix/Configuration.h View File

@@ -486,13 +486,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
486 486
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
487 487
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
488 488
 
489
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
490
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
491
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
492
-
493
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
494
-
495
-
496 489
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
497 490
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
498 491
 
@@ -765,6 +758,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
765 758
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
766 759
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
767 760
 
761
+// Servo deactivation
762
+//
763
+// With this option servos are powered only during movement, then turned off to prevent jitter.
764
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
765
+
766
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
767
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
768
+  // 300ms is a good value but you can try less delay.
769
+  // If the servo can't reach the requested position, increase it.
770
+  #define SERVO_DEACTIVATION_DELAY 300
771
+#endif
772
+
768 773
 /**********************************************************************\
769 774
  * Support for a filament diameter sensor
770 775
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -512,13 +512,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
512 512
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
513 513
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
514 514
 
515
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
516
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
517
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
518
-
519
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
520
-
521
-
522 515
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
523 516
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
524 517
 
@@ -790,6 +783,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
790 783
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
791 784
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
792 785
 
786
+// Servo deactivation
787
+//
788
+// With this option servos are powered only during movement, then turned off to prevent jitter.
789
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
790
+
791
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
792
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
793
+  // 300ms is a good value but you can try less delay.
794
+  // If the servo can't reach the requested position, increase it.
795
+  #define SERVO_DEACTIVATION_DELAY 300
796
+#endif
797
+
793 798
 /**********************************************************************\
794 799
  * Support for a filament diameter sensor
795 800
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/K8200/Configuration.h View File

@@ -520,13 +520,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
520 520
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
521 521
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
522 522
 
523
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
524
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
525
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
526
-
527
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
528
-
529
-
530 523
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
531 524
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
532 525
 
@@ -798,6 +791,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
798 791
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
799 792
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
800 793
 
794
+// Servo deactivation
795
+//
796
+// With this option servos are powered only during movement, then turned off to prevent jitter.
797
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
798
+
799
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
800
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
801
+  // 300ms is a good value but you can try less delay.
802
+  // If the servo can't reach the requested position, increase it.
803
+  #define SERVO_DEACTIVATION_DELAY 300
804
+#endif
805
+
801 806
 /**********************************************************************\
802 807
  * Support for a filament diameter sensor
803 808
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -504,13 +504,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
504 504
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
505 505
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
506 506
 
507
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
508
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
509
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
510
-
511
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
512
-
513
-
514 507
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
515 508
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
516 509
 
@@ -782,6 +775,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
782 775
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
783 776
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
784 777
 
778
+// Servo deactivation
779
+//
780
+// With this option servos are powered only during movement, then turned off to prevent jitter.
781
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
782
+
783
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
784
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
785
+  // 300ms is a good value but you can try less delay.
786
+  // If the servo can't reach the requested position, increase it.
787
+  #define SERVO_DEACTIVATION_DELAY 300
788
+#endif
789
+
785 790
 /**********************************************************************\
786 791
  * Support for a filament diameter sensor
787 792
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/RigidBot/Configuration.h View File

@@ -503,13 +503,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
503 503
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
504 504
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
505 505
 
506
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
507
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
508
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
509
-
510
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
511
-
512
-
513 506
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
514 507
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
515 508
 
@@ -782,6 +775,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
782 775
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
783 776
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
784 777
 
778
+// Servo deactivation
779
+//
780
+// With this option servos are powered only during movement, then turned off to prevent jitter.
781
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
782
+
783
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
784
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
785
+  // 300ms is a good value but you can try less delay.
786
+  // If the servo can't reach the requested position, increase it.
787
+  #define SERVO_DEACTIVATION_DELAY 300
788
+#endif
789
+
785 790
 /**********************************************************************\
786 791
  * Support for a filament diameter sensor
787 792
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -545,13 +545,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
545 545
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
546 546
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
547 547
 
548
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
549
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
550
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
551
-
552
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
553
-
554
-
555 548
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
556 549
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
557 550
 
@@ -823,6 +816,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
823 816
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
824 817
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
825 818
 
819
+// Servo deactivation
820
+//
821
+// With this option servos are powered only during movement, then turned off to prevent jitter.
822
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
823
+
824
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
825
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
826
+  // 300ms is a good value but you can try less delay.
827
+  // If the servo can't reach the requested position, increase it.
828
+  #define SERVO_DEACTIVATION_DELAY 300
829
+#endif
830
+
826 831
 /**********************************************************************\
827 832
  * Support for a filament diameter sensor
828 833
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -512,13 +512,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
512 512
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
513 513
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
514 514
 
515
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
516
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
517
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
518
-
519
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
520
-
521
-
522 515
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
523 516
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
524 517
 
@@ -790,6 +783,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
790 783
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
791 784
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
792 785
 
786
+// Servo deactivation
787
+//
788
+// With this option servos are powered only during movement, then turned off to prevent jitter.
789
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
790
+
791
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
792
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
793
+  // 300ms is a good value but you can try less delay.
794
+  // If the servo can't reach the requested position, increase it.
795
+  #define SERVO_DEACTIVATION_DELAY 300
796
+#endif
797
+
793 798
 /**********************************************************************\
794 799
  * Support for a filament diameter sensor
795 800
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -503,13 +503,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
503 503
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
504 504
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
505 505
 
506
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
507
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
508
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
509
-
510
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
511
-
512
-
513 506
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
514 507
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
515 508
 
@@ -781,6 +774,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
781 774
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
782 775
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
783 776
 
777
+// Servo deactivation
778
+//
779
+// With this option servos are powered only during movement, then turned off to prevent jitter.
780
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
781
+
782
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
783
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
784
+  // 300ms is a good value but you can try less delay.
785
+  // If the servo can't reach the requested position, increase it.
786
+  #define SERVO_DEACTIVATION_DELAY 300
787
+#endif
788
+
784 789
 /**********************************************************************\
785 790
  * Support for a filament diameter sensor
786 791
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/delta/biv2.5/Configuration.h View File

@@ -624,13 +624,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
624 624
     #define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE HOMING_FEEDRATE_Z
625 625
   #endif
626 626
 
627
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
628
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
629
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
630
-
631
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
632
-
633
-
634 627
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
635 628
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
636 629
 
@@ -909,6 +902,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
909 902
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
910 903
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
911 904
 
905
+// Servo deactivation
906
+//
907
+// With this option servos are powered only during movement, then turned off to prevent jitter.
908
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
909
+
910
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
911
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
912
+  // 300ms is a good value but you can try less delay.
913
+  // If the servo can't reach the requested position, increase it.
914
+  #define SERVO_DEACTIVATION_DELAY 300
915
+#endif
916
+
912 917
 /**********************************************************************\
913 918
  * Support for a filament diameter sensor
914 919
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -624,13 +624,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
624 624
     //#define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE HOMING_FEEDRATE_Z
625 625
   #endif
626 626
 
627
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
628
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
629
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
630
-
631
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
632
-
633
-
634 627
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
635 628
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
636 629
 
@@ -909,6 +902,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
909 902
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
910 903
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
911 904
 
905
+// Servo deactivation
906
+//
907
+// With this option servos are powered only during movement, then turned off to prevent jitter.
908
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
909
+
910
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
911
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
912
+  // 300ms is a good value but you can try less delay.
913
+  // If the servo can't reach the requested position, increase it.
914
+  #define SERVO_DEACTIVATION_DELAY 300
915
+#endif
916
+
912 917
 /**********************************************************************\
913 918
  * Support for a filament diameter sensor
914 919
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -628,13 +628,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
628 628
     //#define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE HOMING_FEEDRATE_Z
629 629
   #endif
630 630
 
631
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
632
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
633
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
634
-
635
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
636
-
637
-
638 631
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
639 632
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
640 633
 
@@ -913,6 +906,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
913 906
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
914 907
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
915 908
 
909
+// Servo deactivation
910
+//
911
+// With this option servos are powered only during movement, then turned off to prevent jitter.
912
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
913
+
914
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
915
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
916
+  // 300ms is a good value but you can try less delay.
917
+  // If the servo can't reach the requested position, increase it.
918
+  #define SERVO_DEACTIVATION_DELAY 300
919
+#endif
920
+
916 921
 /**********************************************************************\
917 922
  * Support for a filament diameter sensor
918 923
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/delta/kossel_pro/Configuration.h View File

@@ -641,13 +641,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
641 641
     #define Z_PROBE_ALLEN_KEY_STOW_3_FEEDRATE HOMING_FEEDRATE_Z
642 642
   #endif
643 643
 
644
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
645
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
646
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
647
-
648
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
649
-
650
-
651 644
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
652 645
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
653 646
 
@@ -936,6 +929,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
936 929
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
937 930
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
938 931
 
932
+// Servo deactivation
933
+//
934
+// With this option servos are powered only during movement, then turned off to prevent jitter.
935
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
936
+
937
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
938
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
939
+  // 300ms is a good value but you can try less delay.
940
+  // If the servo can't reach the requested position, increase it.
941
+  #define SERVO_DEACTIVATION_DELAY 300
942
+#endif
943
+
939 944
 /**********************************************************************\
940 945
  * Support for a filament diameter sensor
941 946
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/makibox/Configuration.h View File

@@ -507,13 +507,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
507 507
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
508 508
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
509 509
 
510
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
511
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
512
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
513
-
514
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
515
-
516
-
517 510
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
518 511
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
519 512
 
@@ -785,6 +778,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
785 778
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
786 779
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
787 780
 
781
+// Servo deactivation
782
+//
783
+// With this option servos are powered only during movement, then turned off to prevent jitter.
784
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
785
+
786
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
787
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
788
+  // 300ms is a good value but you can try less delay.
789
+  // If the servo can't reach the requested position, increase it.
790
+  #define SERVO_DEACTIVATION_DELAY 300
791
+#endif
792
+
788 793
 /**********************************************************************\
789 794
  * Support for a filament diameter sensor
790 795
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 12
- 7
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -509,13 +509,6 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
509 509
   //#define Z_PROBE_SLED // turn on if you have a z-probe mounted on a sled like those designed by Charles Bell
510 510
   //#define SLED_DOCKING_OFFSET 5 // the extra distance the X axis must travel to pickup the sled. 0 should be fine but you can push it further if you'd like.
511 511
 
512
-  //If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk
513
-  //The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.
514
-  // You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.
515
-
516
-//  #define PROBE_SERVO_DEACTIVATION_DELAY 300
517
-
518
-
519 512
 //If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,
520 513
 //it is highly recommended you let this Z_SAFE_HOMING enabled!!!
521 514
 
@@ -791,6 +784,18 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
791 784
 //#define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
792 785
 //#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 70,0} // X,Y,Z Axis Extend and Retract angles
793 786
 
787
+// Servo deactivation
788
+//
789
+// With this option servos are powered only during movement, then turned off to prevent jitter.
790
+//#define DEACTIVATE_SERVOS_AFTER_MOVE
791
+
792
+#ifdef DEACTIVATE_SERVOS_AFTER_MOVE
793
+  // Delay (in microseconds) before turning the servo off. This depends on the servo speed.
794
+  // 300ms is a good value but you can try less delay.
795
+  // If the servo can't reach the requested position, increase it.
796
+  #define SERVO_DEACTIVATION_DELAY 300
797
+#endif
798
+
794 799
 /**********************************************************************\
795 800
  * Support for a filament diameter sensor
796 801
  * Also allows adjustment of diameter at print time (vs  at slicing)

+ 2
- 2
Marlin/servo.cpp View File

@@ -35,8 +35,8 @@
35 35
 
36 36
  write()     - Sets the servo angle in degrees.  (invalid angle that is valid as pulse in microseconds is treated as microseconds)
37 37
  writeMicroseconds() - Sets the servo pulse width in microseconds
38
- move(pin, angel) - Sequence of attach(pin), write(angel),
39
-                    if DEACTIVATE_SERVOS_AFTER_MOVE is defined waits SERVO_DEACTIVATION_DELAY, than detaches.
38
+ move(pin, angel) - Sequence of attach(pin), write(angel).
39
+                    With DEACTIVATE_SERVOS_AFTER_MOVE it waits SERVO_DEACTIVATION_DELAY and detaches.
40 40
  read()      - Gets the last written servo pulse width as an angle between 0 and 180.
41 41
  readMicroseconds()   - Gets the last written servo pulse width in microseconds. (was read_us() in first release)
42 42
  attached()  - Returns true if there is a servo attached.

+ 1
- 1
Marlin/servo.h View File

@@ -41,7 +41,7 @@
41 41
    attached()  - Returns true if there is a servo attached.
42 42
    detach()    - Stops an attached servos from pulsing its i/o pin.
43 43
    move(pin, angel) - Sequence of attach(pin), write(angel),
44
-                      if DEACTIVATE_SERVOS_AFTER_MOVE is defined waits SERVO_DEACTIVATION_DELAY, than detaches.
44
+                      With DEACTIVATE_SERVOS_AFTER_MOVE it waits SERVO_DEACTIVATION_DELAY and detaches.
45 45
  */
46 46
 
47 47
 #ifndef servo_h

Loading…
Cancel
Save