idex_modes: Improved restoring position in RESTORE_DUAL_CARRIAGE_STATE

Previous implementation could crash the idex carriages into each other.
The new code moves the idex carriages together, eliminating this risk
and decreasing the time needed to restore the carriages positions.

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
Dmitry Butyugin
2024-07-14 20:12:32 +02:00
committed by KevinOConnor
parent 13c75ea876
commit ba2a149e9a
3 changed files with 41 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ pid_Kd: 114
min_temp: 0
max_temp: 250
[gcode_macro PARK_extruder0]
[gcode_macro PARK_extruder]
gcode:
G90
G1 X0

View File

@@ -17,6 +17,18 @@ G1 X190 F6000
SET_DUAL_CARRIAGE CARRIAGE=0
G1 X20 F6000
# Save dual carriage state
SAVE_DUAL_CARRIAGE_STATE
G1 X50 F6000
# Go back to alternate carriage
SET_DUAL_CARRIAGE CARRIAGE=1
G1 X170 F6000
# Restore dual carriage state
RESTORE_DUAL_CARRIAGE_STATE
# Test changing extruders
G1 X5
T1