-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
140 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#### | ||
# Improved M84 turns of individual axis. | ||
# | ||
# Will work for upto 4 Z steppers automaticly. Intended for use with idle_timeout.cfg | ||
# | ||
### | ||
[gcode_macro M84] | ||
description: Can disable a subset of steppers, M84 X Y E leaves Z enabled. M84 XY (no spaces) is invalid and disables all steppers. | ||
rename_existing: M84.1 | ||
gcode: | ||
{% if 'X' in params %} | ||
{action_respond_info("Stepper X turned off")} | ||
SET_STEPPER_ENABLE stepper=stepper_x enable=0 | ||
{% endif %} | ||
|
||
{% if 'Y' in params %} | ||
{action_respond_info("Stepper Y turned off")} | ||
SET_STEPPER_ENABLE stepper=stepper_y enable=0 | ||
{% endif %} | ||
|
||
{% if 'E' in params %} | ||
{action_respond_info("Extruder turned off")} | ||
SET_STEPPER_ENABLE stepper=extruder enable=0 | ||
{% endif %} | ||
|
||
{% if 'Z' in params %} | ||
SET_STEPPER_ENABLE stepper=stepper_z enable=0 | ||
{action_respond_info("Stepper Z turned off")} | ||
{% if printer.configfile.settings.stepper_z1 %} | ||
{action_respond_info("Stepper Z1 turned off")} | ||
SET_STEPPER_ENABLE stepper=stepper_z1 enable=0 | ||
{% endif %} | ||
{% if printer.configfile.settings.stepper_z2 %} | ||
{action_respond_info("Stepper Z2 turned off")} | ||
SET_STEPPER_ENABLE stepper=stepper_z2 enable=0 | ||
{% endif %} | ||
{% if printer.configfile.settings.stepper_z3 %} | ||
{action_respond_info("Stepper Z3 turned off")} | ||
SET_STEPPER_ENABLE stepper=stepper_z3 enable=0 | ||
{% endif %} | ||
{% endif %} | ||
|
||
{% if 'X' not in params and 'Y' not in params and 'E' not in params and 'Z' not in params%} | ||
{action_respond_info("All steppers turned off")} | ||
M84.1 | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters