A way to enable/disable tool change macros on a per print basis



  • I have no idea if this a feasible but here goes anyway.

    I'm working on a purge mechanism that would be applied when a new tool is selected. Basically it just moves the print head, squirts some filament into a "bucket" and then moves back and resumes the print. However, this is only necessary on prints where the purge cannot otherwise happen during infill for example. As it increases the print time and wastes filament I only want to use it when I have no other choice. If I use tpre, then I'd have to edit that file depending on what I want to print. So it'd be kind of handy if I could add something to the start gcode that tells Duet whether to use tpre or not for this particular print. Or some other mechanism that would achieve the same effect. Basically to be able to toggle the use of tool change macros on and off. To expand on it further, I guess it would be handy to be able select from 2 or 3 different tpre macros but that's maybe asking too much.

    It's not a huge deal. The way I'm doing it at the moment is via a post processing script that inserts the relevant commands into the gcode file, rather than using tool change macros. It works but is a bit "clunky".

    Ian


  • administrators

    The T command accepts an optional P parameter that defines which of the 3 macros are run on a tool change. The default is to run them all. Maybe what you need is a default that you can change using a GCode?



  • @dc42:

    The T command accepts an optional P parameter that defines which of the 3 macros are run on a tool change. The default is to run them all. Maybe what you need is a default that you can change using a GCode?

    Yes, something like that would work I'd have thought. This is low priority so just add it your list if it's doable. Thanks


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.