diff options
author | Jiri Dobry <jdobry@centrum.cz> | 2018-11-14 15:38:09 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-11-14 09:38:09 -0500 |
commit | e541466591a507b50d5b3c48fc0e17660acda4dc (patch) | |
tree | 76b486a1b7a3cacf74edcce1fadf8467ce3e0310 /docs/G-Codes.md | |
parent | 31730fa031c7692780bb0bb830a221fef94069ec (diff) | |
download | kutter-e541466591a507b50d5b3c48fc0e17660acda4dc.tar.gz kutter-e541466591a507b50d5b3c48fc0e17660acda4dc.tar.xz kutter-e541466591a507b50d5b3c48fc0e17660acda4dc.zip |
servo: This patch create ability to enable/disable attached servo. (#880)
Cheap mechanical servos have small flickering. When this servo stay on one position, this flickering slowly destroy internal potentiometer and make servo unusable. Many mechanisms need servo only to change position. Therefore I create this minor path to enable/disable servo. It stop pulses for this servo, that's all.
Corresponding G-code is:
SET_SERVO SERVO=config_name [WIDTH=] [ENABLE=<0|1>]
SET_SERVO SERVO=config_name [ANGLE=] [ENABLE=<0|1>]
For example:
SET_SERVO SERVO=touch ANGLE=80 ENABLE=1 ; enable servo and set position
G4 P200 ; wait 200ms
SET_SERVO SERVO=touch ENABLE=0 ; disable servo
This patch add one option to servo configuration:
enable: <False/True> # default True
It not have impact to user code existing already because it is optional parameter and default value is same as original behavior.
Signed-off-by: Jiri Dobry <jdobry@centrum.cz>
Diffstat (limited to 'docs/G-Codes.md')
-rw-r--r-- | docs/G-Codes.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 38ae2ca3..fd5291b4 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -142,8 +142,8 @@ is enabled: The following commands are available when a "servo" config section is enabled: -- `SET_SERVO SERVO=config_name WIDTH=<seconds>` -- `SET_SERVO SERVO=config_name ANGLE=<degrees>` +- `SET_SERVO SERVO=config_name [WIDTH=<seconds>] [ENABLE=<0|1>]` +- `SET_SERVO SERVO=config_name [ANGLE=<degrees>] [ENABLE=<0|1>]` ## Probe |