aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-24 19:59:36 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-12-10 14:24:32 -0500
commitfcee27fc190fbba2b8d1278c1ee2c4dddc50342b (patch)
treeaadd6e2954a2d0c09bb0814feb2d7329ef68e978 /test
parentc06618193d3c58521e45a0c2241278268664030e (diff)
downloadkutter-fcee27fc190fbba2b8d1278c1ee2c4dddc50342b.tar.gz
kutter-fcee27fc190fbba2b8d1278c1ee2c4dddc50342b.tar.xz
kutter-fcee27fc190fbba2b8d1278c1ee2c4dddc50342b.zip
gcode: Remove builtin T0/T1/T2/... command support
The builtin Tn command is not sufficiently flexible to control some multi-extruder printers. Remove the command and encourage users to define individual gcode_macros for each Tn instance. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test')
-rw-r--r--test/klippy/dual_carriage.cfg20
1 files changed, 16 insertions, 4 deletions
diff --git a/test/klippy/dual_carriage.cfg b/test/klippy/dual_carriage.cfg
index fff7673a..a9d3746e 100644
--- a/test/klippy/dual_carriage.cfg
+++ b/test/klippy/dual_carriage.cfg
@@ -55,10 +55,16 @@ pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 250
-deactivate_gcode:
+
+[gcode_macro PARK_extruder0]
+gcode:
G90
G1 X0
-activate_gcode:
+
+[gcode_macro T0]
+gcode:
+ PARK_{printer.toolhead.extruder}
+ ACTIVATE_EXTRUDER EXTRUDER=extruder
SET_DUAL_CARRIAGE CARRIAGE=0
[extruder1]
@@ -77,12 +83,18 @@ pid_Ki: 1.08
pid_Kd: 114
min_temp: 0
max_temp: 250
-deactivate_gcode:
+
+[gcode_macro PARK_extruder1]
+gcode:
SET_SERVO SERVO=my_servo angle=100
G90
G1 X200
-activate_gcode:
+
+[gcode_macro T1]
+gcode:
+ PARK_{printer.toolhead.extruder}
SET_SERVO SERVO=my_servo angle=50
+ ACTIVATE_EXTRUDER EXTRUDER=extruder1
SET_DUAL_CARRIAGE CARRIAGE=1
[servo my_servo]