Syringe Dispensing + conditional Gcode + Object model?
-
I'm using an E3D toolchanger with a syringe dispensing tool. I'll be slicing models normally, but I'll need to post-process the gcode to add commands at the appropriate points to turn a pneumatic pump on and off.
Then I thought, maybe I can avoid post-processing and use conditional gcode to turn the pump on/off based on a state (or set of states) in the object model.
For instance, the pump should be off during travel moves, so can I reference the object model when the print speed is above a certain threshold and use a conditional loop to turn the pump off.
Post-processing still seems like a good choice, I just wanted to check this idea with you all.
-
@hebigt you can't use conditional GCode to distinguish between travel moves and printing moves. But you may be able to use M571. See the GCode Wiki page for details.
-
@hebigt
If it's a single layer application the running in laser mode should be easy enough.
Not sure about maintaining consistent line width at start/finish though.
If it's a multi layer additive manufacturing process the it's going to require either some post processing or a slicer that can output an S parameter in G1 -
https://duet3d.dozuki.com/Wiki/Gcode#Section_M571_Set_output_on_extrude
No need for post processing.
-
Thank you! This gives me a good starting point.