Dual Switching Hotend - not switching with g-code

Basic Information:

Printer Model: Makertech Proforge 3.5 with DSH (Dual Switching Hotend)
MCU / Printerboard: BTT SKR 2
klippy.log

I have a DSH (Dual Switching Hotend). Think IDEX, but instead of (2) separate extruders, I have (2) hotends on a rotating switch mechanism. (see link)
DSH

I’m using PrusaSlicer.
The hotends are not switching during printing.
I do have (2) extruders/hotends setup in Prusaslicer.
Slicing the model shows correctly in Prusaslicer.
I can manually switch them with macros and/or the control on the Klipper screen.

Here’s a test print for dual extruders I’m using.
DSH test.gcode (315.2 KB)

Thanks for helping.

I can only insert 2 links at a time.

variables.cfg (102 Bytes)
printer.cfg (7.5 KB)

macros.cfg (2.5 KB)
klippy.log.zip (861.2 KB)

Do the commands T0 and T1 work in standby mode, so not during printing?

You also can put more than one file into a zip file :wink:

Yes. T0 and T1 work properly in standby mode.

I would try this:

[gcode_macro ARM_POSITION]
gcode: 
   SET_PIN PIN=servo_power VALUE=1                                  # Power on servo via relay switch
   {% set serv_angle=params.A|default(0)|float %}
   SET_SERVO SERVO=extruder ANGLE={serv_angle}          # Move servo arm
   G4 P1500                                                                               # Allow time to make move

   # SET_PIN PIN=servo_power VALUE=0                              # Power down servo via relay switch

maybe the problem is in the timing of the mcu when printing and before the flip happens, the power to the servo is turned off. the same can be the case with SET_PIN PIN=servo_power VALUE=1 - before turning on the power _servo, the angle setting will take place.

I have a similar print head and I never turn off the power to the servo - there is no reason.

maybe also cancel the “float” servo will never be accurate, a whole number is enough

Thanks for the help.
I like your switching extruder.
Is that your own invention?
Do you have files and instructions for building it?

cheers

Hi, the video shows version 2. which I’m testing.

Version 1. + upgrade is on mine:

It’s actually an improvement on this suggestion:

Macros for Klipper are on my GitHub:

Dual rocking extruder - Direct extrusion with a single stepper motor.

-Petr

I wanted to let you know that this mod seems to be working.
Thank you for the help!

Cheers,
David