moggieuk / Happy-Hare

MMU software driver for Klipper (ERCF, Tradrack, Prusa)
GNU General Public License v3.0
395 stars 94 forks source link

Add Encoder Checking to EREC? #295

Open markleaf131313 opened 1 month ago

markleaf131313 commented 1 month ago

Sometimes when going to do the cut action for the EREC addon, the filament doesn't make it outside to the cutter. So it ends up cutting nothing without giving any error. Would it be possible to include encoder checks for the moves to ensure that filament made it out?

moggieuk commented 1 month ago

Can you attach mmu.log to really understand what is happening. Note that EREC is fully implemented in a macro (means it can't use the normal HH mechanism. Still possible, just pointing that out).

markleaf131313 commented 1 month ago

I don't have the log and am having trouble getting it working reliably so I don't have it connected at the moment. There wouldn't really be anything in the log though. The filament gets stuck and doesn't go into the encoder, or it sprung back too far and can't be engaged anymore. So there are no errors. The cut action is run which doesn't push anything into the encoder, so nothing ends up being cut and it continues on since there is no error checking until it comes back to the gate on the next swap. It gives an error then when it sees it isn't pulling any filament.