aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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]