aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorDmitry Butyugin <dmbutyugin@google.com>2023-08-01 18:23:52 +0200
committerGitHub <noreply@github.com>2023-08-01 12:23:52 -0400
commit36be1cfc5109355fb50cececedee936905fc6c7d (patch)
treee83c37a40214ee1ce001728fbf13e1d61c698e3d /config
parentea330717cde4c05e8952ae3fbb4bec2f11e7672f (diff)
downloadkutter-36be1cfc5109355fb50cececedee936905fc6c7d.tar.gz
kutter-36be1cfc5109355fb50cececedee936905fc6c7d.tar.xz
kutter-36be1cfc5109355fb50cececedee936905fc6c7d.zip
idex_modes: COPY and MIRROR mode implementation (#6297)
COPY and MIRROR mode implementation Correctly apply input shaper params to new dual_carriage Added SAVE_/RESTORE_IDEX_STATE commands Documentation updates for the new IDEX modes Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'config')
-rw-r--r--config/sample-idex.cfg36
1 files changed, 36 insertions, 0 deletions
diff --git a/config/sample-idex.cfg b/config/sample-idex.cfg
index d6c70a2f..b7a562a5 100644
--- a/config/sample-idex.cfg
+++ b/config/sample-idex.cfg
@@ -62,6 +62,8 @@ endstop_pin: ^ar2
position_endstop: 200
position_max: 200
homing_speed: 50
+# A minimum distance between the carriages to enforce
+safe_distance: 40
[extruder1]
step_pin: ar36
@@ -94,3 +96,37 @@ gcode:
ACTIVATE_EXTRUDER EXTRUDER=extruder1
SET_DUAL_CARRIAGE CARRIAGE=1
SET_GCODE_OFFSET Y=15
+
+# A helper script to activate copy mode
+[gcode_macro ACTIVATE_COPY_MODE]
+gcode:
+ SET_DUAL_CARRIAGE CARRIAGE=0 MODE=PRIMARY
+ G1 X0
+ ACTIVATE_EXTRUDER EXTRUDER=extruder
+ SET_DUAL_CARRIAGE CARRIAGE=1 MODE=PRIMARY
+ G1 X100
+ SET_DUAL_CARRIAGE CARRIAGE=1 MODE=COPY
+ SYNC_EXTRUDER_MOTION EXTRUDER=extruder1 MOTION_QUEUE=extruder
+
+# A helper script to activate mirror mode
+[gcode_macro ACTIVATE_MIRROR_MODE]
+gcode:
+ SET_DUAL_CARRIAGE CARRIAGE=0 MODE=PRIMARY
+ G1 X0
+ ACTIVATE_EXTRUDER EXTRUDER=extruder
+ SET_DUAL_CARRIAGE CARRIAGE=1 MODE=PRIMARY
+ G1 X200
+ SET_DUAL_CARRIAGE CARRIAGE=1 MODE=MIRROR
+ SYNC_EXTRUDER_MOTION EXTRUDER=extruder1 MOTION_QUEUE=extruder
+
+## An optional input shaper support
+#[input_shaper]
+## The section is intentionally empty
+#
+#[delayed_gcode init_shaper]
+#initial_duration: 0.1
+#gcode:
+# SET_DUAL_CARRIAGE CARRIAGE=1
+# SET_INPUT_SHAPER SHAPER_TYPE_X=<dual_carriage_shaper> SHAPER_FREQ_X=<dual_carriage_freq> SHAPER_TYPE_Y=<y_shaper> SHAPER_FREQ_Y=<y_freq>
+# SET_DUAL_CARRIAGE CARRIAGE=0
+# SET_INPUT_SHAPER SHAPER_TYPE_X=<primary_carriage_shaper> SHAPER_FREQ_X=<primary_carriage_freq> SHAPER_TYPE_Y=<y_shaper> SHAPER_FREQ_Y=<y_freq>