Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 01:46PM |
Registered: 6 years ago Posts: 6 |
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 01:55PM |
Registered: 6 years ago Posts: 262 |
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 02:39PM |
Registered: 6 years ago Posts: 6 |
Quote
JustSumGuy
Instead of moving the target material wouldn't it be easier to move the syringes?
mount the two syringes side by side on the carriage just like the hotend would be on standard printer, the duet would be programed for this offset.
The carriage would then move on x/y to each target and perform its duties, syringe one squeeze, then #2 and then move to another target.
Put the Z movement on the bed and it only has to move maybe 20mm X axis could be several meters long with Y axis being either stable or offset by enough to do several rows...
I assume this would be put together in a hood for environmental control?
As far as pausing etc that's all going to be manual gcode programming, not hard but will take a little learning's
I don't know of any GUI or easy interface for such a thing....
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 04:30PM |
Registered: 6 years ago Posts: 262 |
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 04:50PM |
Registered: 6 years ago Posts: 6 |
Quote
JustSumGuy
I see the gcode file as the print job itself not as a macro to be run within the print job.
Do you need this to run in a loop until interrupted?
Or as a start-run-finish type job....
This is somewhat interesting to me, I did a little looking and found that conditional logic can be applied to gcode.
[www.cnccookbook.com]
I did not know you could do that
Question are you familiar with 3d printing or are you just starting learning how gcode works?
In 3d printing the gcode 'macro' is fully the print job from start to finish. You upload the gcode file to the print server (integrated in the case of the duet) and tell the print server to start the job.
The print server then starts handing gcode line by line to the print controller.
The print controller performs each action and waits for the next line of gcode to be delivered.
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 05:09PM |
Registered: 6 years ago Posts: 262 |
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 06:30PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 22, 2018 06:59PM |
Registered: 6 years ago Posts: 262 |
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 23, 2018 12:02PM |
Registered: 6 years ago Posts: 6 |
Quote
dc42
It's just a T command on a line by itself to switch tools:
T0 ; Use tool 0
...
T1 ; Use tool 1
The firmware on the Duet will automatically run tool change macro files when you do a tool change.
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 23, 2018 12:05PM |
Registered: 6 years ago Posts: 6 |
Quote
JustSumGuy
Ahh I see then, Thanx DC42
So just as a test if I understand it:
set the tool offset via G10 then just switch them up something like this:
G10 P1 X20 Y0 Z0 (tool #2 is 20mm from Tool #0 on X with xero offset from y axis or z axis)
G28 (home all axis)
T0 (set tool 0)
G1 X100 Y20 (move head on X axis 100mm and Y axis 20mm)
G1 E10 (push 10mm on extruder #0 as set by ??)
G1 Z10 (drop bed 10mm)
T1 (set tool #2)
G1 X100 (move head on X axis 100mm) -NOTE because the firmware knows we have switched to tool #1 it automatically adds the 20mm offset into the move???
g1 z-10 (return bed to orig hight)
G1 E10 (push 10mm on extruder #1 as set by ??)
How would the G1 E10 line know to use the second extruder (syringe in this case) motor?
NVM I just found M563 to setup the tool, specify extruder for tool here
Something like that?
P.S. hopefully my learning is helping the OP, I did not mean to hijack, sorry
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 23, 2018 01:03PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 24, 2018 02:22PM |
Registered: 6 years ago Posts: 6 |
Quote
dc42
If you use a slicer to generate a multi-material print file, then the GCode file it produces will have the T commands in it.
I wrote a blog entry in July 2014 about multi-material printing on a particular printer, including how the tool change files operate. Although the details have changed, the basic principles remain the same. See [miscsolutions.wordpress.com].
Re: Duet Ethernet - Dual Extruders - Macros/Switching Extruders February 24, 2018 05:38PM |
Registered: 10 years ago Posts: 14,672 |
Quote
blandified
I would like to clarify a few things on the link you sent:
1.) So when a material needs to change, in the gcode a T command is inserted at that point automatically by the slicer program. When the gcode reaches this T command, it stops in the gcode file and then runs tfree.g then tpre.g and then tpost.g in the /sys folder on the SD card. Is this correct so far?
2.) Assuming this to be correct, and I am on tool 1 wanting to switch to tool 2: You mention first tfree file for the outgoing nozzle/tool is run, and then the tpre for the new nozzle/tool is run, and then the tpost for the new nozzle/tool is run. Does this mean tfree1.g -> tpre2.g -> tpost2.g ?
3.) Assuming 2.) to be true, when I want to switch from tool 2 to tool 1: Does this mean tfree2.g -> tpre1.g -> tpost1.g ?