MMU2S virtual endstop problem

Hello all,
Quick background I’m trying to run a SKR MINI E3 V3 as a second MCU for a MMU2s. I’m trying to use a virtual endstop for one of the motors. I’m having difficulty trying to get it to work. I’ve tried multiple syntaxes ( _ ) and even renamed the following motor to make it less confusing, I have comm with the motor and can command it where to go I just can’t get the virtual endstop to function. Any help would be greatly appreciated as I couldn’t find anything except for z probes… When I try to do anything I get the following message “Unknown pin chip name 'tmc2209_manual_stepper_selector_stepper”

Z : MMU2S color selector

[manual_stepper selector_stepper]
step_pin: mmboard:PB0
dir_pin: !mmboard:PC5
enable_pin: !mmboard:PB1

80 step/mm

microsteps: 16
rotation_distance: 4
velocity: 30 #35
accel: 100
#endstop_pin: ^mmboard:PC2 # ENDSTOP SENSE
endstop_pin: tmc2209_manual_stepper_selector_stepper:virtual_endstop
homing_retract_dist: 0

[tmc2209 manual_stepper selector_stepper]
uart_pin: mmboard:PC11
tx_pin: mmboard:PC10
uart_address: 1
run_current: 1.000
sense_resistor: 0.110
stealthchop_threshold: 999999
diag_pin: ^mmboard:PC2
driver_SGTHRS:50

Looks like i might have found a solution here Define a virtual_endstop for manual_stepper - #4 by jakep_82

If it works I’ll delete this post
Looks like you leave the manual_stepper out when you reference the motor if this is the case it might be helpful to update the klipper documentation to reference for manual steppers

So hopefully it will look like endstop:tmc2209_selector_stepper:virtual_endstop

Hello @mattr254 !

You may keep this online for others who have that problem.
In that case you may append MMU2S to the title for specify the topic a bit more.

1 Like

Nope, didn’t work :frowning: I’ll have to keep digging and figure it out

Can you post your klippy.log?

So the solution I found that works is to declare the tmc 2209 FIRST and the define the parameters as such
[tmc2209 manual_stepper selector_stepper]
uart_pin: mmboard:PC11
tx_pin: mmboard:PC10
uart_address: 1
run_current: 1.000
sense_resistor: 0.110
stealthchop_threshold: 999999
diag_pin: ^mmboard:PC2
driver_SGTHRS:50

[manual_stepper selector_stepper]
step_pin: mmboard:PB0
dir_pin: !mmboard:PC5
enable_pin: !mmboard:PB1
microsteps: 16
rotation_distance: 4
velocity: 30
accel: 100
endstop_pin: tmc2209_selector_stepper:virtual_endstop
homing_retract_dist: 0

Klipper took the changes and verified endstop working

1 Like