From 9ec97424844c76bbc0c5604e15aa195282b6c955 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 29 Jan 2022 19:13:31 -0500 Subject: extruder: Add support for reversing the direction of extruder stepper movement Extend SET_EXTRUDER_ROTATION_DISTANCE to support reversing the direction of extruder movement. Signed-off-by: Kevin O'Connor --- test/klippy/extruders.test | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/klippy/extruders.test') diff --git a/test/klippy/extruders.test b/test/klippy/extruders.test index ff7c5917..889d5e34 100644 --- a/test/klippy/extruders.test +++ b/test/klippy/extruders.test @@ -13,9 +13,13 @@ G1 X20 Y20 Z1 G1 X25 Y25 E7.5 # Update step_distance -SET_EXTRUDER_STEP_DISTANCE EXTRUDER=extruder DISTANCE=.005 +SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder DISTANCE=33.2 G1 X30 Y30 E8.0 +# Reverse step_distance +SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder DISTANCE=-33.1 +G1 X30 Y30 E8.2 + # Disable extruder stepper motor SYNC_STEPPER_TO_EXTRUDER STEPPER=extruder EXTRUDER= G1 X35 Y35 E8.5 -- cgit v1.2.3-70-g09d2