@OwenD said in Best way to do extra tricks on tool change & retraction?:
I wonder if using M571 to control a solenoid or servo to move a plate across the nozzle would be suitable?
Not sure if it would close during retraction or whether you could get a solenoid or servo that would work fast enough if it did.
I think I could solve the speed problem with some creative thinking. The trick will probably be keeping whatever solution I come up with light enough, since it's traveling with the extruder.
I'm sure some combination of slicer settings and firmware retraction will give me a way to add the gcode I ultimately decide on. If nothing else I can probably make a post-processor of some kind, maybe a plugin in DWC.
My debate is how to implement the idea in my gcode. M280 seems the more flexible option and would be simple to tune in, with adjustments to the servo angle just requiring a change in gcode. M571 seems more straightforward, just by assuming the wiper/servo position covering the nozzle as home. When the extruder is running, make M571 actively move and hold the wiper away from the nozzle. It's more of a binary choice in the gcode and would probably have to be physically tuned, but bending a lil thin steel and iterating a few parts is easy enough.