Is it possible to command servo/extruder in g-code with tool change
I have a Prusa i3 with dual extruders with (own make) moving nozzles. Most parts were printed by the printer servo holder, part for moving the extruders and the extruder holder. The nozzles went up and down by a servo (command M340 P0 S720 for T0 and M340 P0 S1200 for T1). The other nozzle does the opposite (coupled). There is a free way (nozzle down) to adjust the high exactly. This works very well when I put in lines by hand in the g-code at tool change. Can this be done automatically? I use Slic3r and Repetier-Host V2.0.5
Thanks
Thanks
Comments
The problem is that I can only put the M340 P0 S720 R2000 or M340 P0 S1200 R2000 at the <Tool change G-code> in Printer settings. If I put both lines there, both are executed. What I need is choose A or B with Tool change. See above. Like IF THAN.
At the <Extruder 1> or <Extruder 2> tab in Printer Settings there is no possibility to fill in something.
Hope you can help.
/** You can run any GCODE command on extruder deselect/select. Separate multiple commands with a new line \n.
That way you can execute some mechanical components needed for extruder selection or retract filament or whatever you need.
The codes are only executed for multiple extruder when changing the extruder. */
#define EXT0_SELECT_COMMANDS "M117 Extruder 1"
#define EXT0_DESELECT_COMMANDS ""
So you have one script per extruder, no overlapping.Again THANX.