aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-12 19:07:54 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-07-16 10:32:48 -0400
commitacefe26e0fa725b40c09f51d652289e5ff203656 (patch)
treebffb32c31b8d17512bb8cb2ebea975ffc162edaa /config
parent0025fbf10d81555b0c417941d70650d7c625045c (diff)
downloadkutter-acefe26e0fa725b40c09f51d652289e5ff203656.tar.gz
kutter-acefe26e0fa725b40c09f51d652289e5ff203656.tar.xz
kutter-acefe26e0fa725b40c09f51d652289e5ff203656.zip
idle_timeout: Move timeout handling from toolhead.py to new extras module
Move the "motor_off_timeout" tracking to a new module in the extras/ directory. This makes it easier to customize the idle timeout behavior. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config')
-rw-r--r--config/example-extras.cfg11
-rw-r--r--config/example.cfg3
-rw-r--r--config/kit-voron2-2018.cfg4
-rw-r--r--config/printer-anycubic-kossel-2016.cfg4
-rw-r--r--config/printer-anycubic-kossel-plus-2017.cfg4
5 files changed, 20 insertions, 6 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index 84d8a05a..e6c0adae 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -165,6 +165,17 @@
# default is 120.
+# Idle timeout. An idle timeout is automatically enabled - add an
+# explicit idle_timeout config section to change the default settings.
+#[idle_timeout]
+#gcode:
+# A list of G-Code commands (one per line) to execute on an idle
+# timeout. The default is to run "M84".
+#timeout: 600
+# Idle time (in seconds) to wait before running the above G-Code
+# commands. The default is 600 seconds.
+
+
# Multi-stepper axes. On a cartesian style printer, the stepper
# controlling a given axis may have additional config blocks defining
# steppers that should be stepped in concert with the primary
diff --git a/config/example.cfg b/config/example.cfg
index d8ca95fa..025f6b71 100644
--- a/config/example.cfg
+++ b/config/example.cfg
@@ -293,9 +293,6 @@ max_z_accel: 30
# mm/s^2) of movement along the z axis. It limits the acceleration
# of the z stepper motor on cartesian printers. The default is to
# use max_accel for max_z_accel.
-#motor_off_time: 600
-# Time (in seconds) of idle time before the printer will try to
-# disable active motors. The default is 600 seconds.
#square_corner_velocity: 5.0
# The maximum velocity (in mm/s) that the toolhead may travel a 90
# degree corner at. A non-zero value can reduce changes in extruder
diff --git a/config/kit-voron2-2018.cfg b/config/kit-voron2-2018.cfg
index 674d1ad4..b48890b7 100644
--- a/config/kit-voron2-2018.cfg
+++ b/config/kit-voron2-2018.cfg
@@ -216,5 +216,7 @@ max_velocity: 500
max_accel: 3000
max_z_velocity: 100
max_z_accel: 50
+
+[idle_timeout]
# high motor off time so I don't have to relevel gantry often
-motor_off_time: 6000
+timeout: 6000
diff --git a/config/printer-anycubic-kossel-2016.cfg b/config/printer-anycubic-kossel-2016.cfg
index d3c50bd1..53ef9f81 100644
--- a/config/printer-anycubic-kossel-2016.cfg
+++ b/config/printer-anycubic-kossel-2016.cfg
@@ -71,9 +71,11 @@ kinematics: delta
max_velocity: 500
max_accel: 3000
max_z_velocity: 150
-motor_off_time: 360
delta_radius: 99.8
+[idle_timeout]
+timeout: 360
+
#[delta_calibrate]
#radius: 50
#manual_probe:
diff --git a/config/printer-anycubic-kossel-plus-2017.cfg b/config/printer-anycubic-kossel-plus-2017.cfg
index 30b8c0d6..cc8b64a3 100644
--- a/config/printer-anycubic-kossel-plus-2017.cfg
+++ b/config/printer-anycubic-kossel-plus-2017.cfg
@@ -80,11 +80,13 @@ kinematics: delta
max_velocity: 200
max_accel: 3000
max_z_velocity: 200
-motor_off_time: 360
delta_radius: 115
# if you want to DELTA_CALIBRATE you may need that
#minimum_z_position: -5
+[idle_timeout]
+timeout: 360
+
#[delta_calibrate]
#radius: 115
#manual_probe: