Error: Attempting to extrude with no tool selected.
-
hey lovely community,
Since long time I have this Error, but I want to install a tool switch so that I have to solve this Issue I guess.
Everything is working fine, what I have not expected.here my config.
Tpost 0 is empty
tpre1 and tfree1 is the same with different numbers. Thanks a lot !!!
; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Mon Aug 02 2021 16:15:35 GMT+0200 (Mitteleuropäische Sommerzeit) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"General G." ; set printer name M552 s1 M587 S"AndroidAPebc3_EXT" P"hhhhhhhh" G4 S4 M574 C1 S3 M574 C0 Z0 M915 P0.5 C S0 F0 R1 ; Drives ;closed loop M569.1 P20.0 T2 C5 R200 I0 D0 H30 ; Configure the 1HCL board at CAN address.20quadrature encoder 128 steps/motor full M569.1 P21.0 T2 C5 R200 I0 D0 H30 ; Configure the 1HCL board at CAN address.21quadrature encoder 128 steps/motor full step. M569.1 P30.0 T2 C5 R100 I0 D0 H30 ; Configure the 1HCL board at CAN address.21quadrature encoder 128 steps/motor full step. M569 P20.0 D4 S0 ; Configure the motor on the 1HCL at can address 20 as being in closed-loop drive mode (D4) and not reversed (S1) M569 P21.0 D4 S1 ; Configure the motor on the 1HCL at can address 21 as being in closed-loop drive mode (D4) and not reversed (S1) M569 P30.0 D4 S0 ; Configure the motor on the 1HCL at can address 21 as being in closed-loop drive mode (D4) and not reversed (S1) Other drives; open loop; M569 P0.0 S1 ; physical drive 0.0 goes forwards M569 P0.1 S1 ; physical drive 0.2 goes forwards M569 P0.2 S1 ; physical drive 0.2 goes forwards M569 P0.3 S1 M569 P0.5 S0 M569 P100.0 S0 ; physical drive 0.2 goes forwards M569 P110.0 S0 ; physical drive 0.2 goes forwards M584 X30.0 Y20.0:21.0 Z0.0:0.1:0.2:0.3 C0.5 E100.0:110.0 ; set drive mapping M350 X32 Y32 Z128 E16:16:16 I1 ; configure microstepping with interpolation M92 X80.00 Y80.00 Z5120.00 C91.022 E397.00:397.00:397.00 ; set steps per mm M566 X1200.00 Y1200.00 Z60.00 C3000 E1000.00:1000.00:1000.00 ; set maximum instantaneous speed changes (mm/min) M203 X12000.00 Y12000.00 Z500.00 C10000 E6000.00:6000.00:6000.00 ; set maximum speeds (mm/min) M201 X1600.00 Y1600.00 Z500.00 C400 E2500.00:2500.00 ; set accelerations (mm/s^2) M906 X1700 Y1800:1800 Z2300:2300:2300:2300 C550 E1000:1000 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S300 ; Set idle timeout M671 X-100:-100:1180:1180 Y-100:1180:1180:-100 S20 ; leadscrews at front left1 and n´back2. back rigth3 and front4 ; Axis Limits M208 X0 Y-100 Z0 S1 ; set axis minima M208 X1000 Y1030 Z850 S0 ; set axis maxima ; Endstops M574 X2 S1 P"^30.io1.in" ; configure active-high endstop for high end on X via pin ^io3.in M574 Y2 S1 P"^20.io1.in+21.io1.in" ; configure active-high endstop for high end on Y via pin ^io1.in ; Z probe M558 P5 C"0.io1.in" H8 F2000 I0 T5000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds G31 P200 X5 Y30 Z0 ; Set Z probe trigger value, offset and trigger height; Z probe M556 S50 X0 Y0 Z0 ; set orthogonal axis compensation parameters M557 X50:800 Y50:800 S37.5 ; define mesh grid ; Heaters M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 B0 R0.243 C586.2 D33.87 S1.00 V0 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 M143 H0 S120 M308 S1 P"100.temp1" Y"thermistor" T100000 B4138 ; configure sensor 1 as PT1000 on pin 121.temp0 M950 H1 C"100.out0" T1 ; create nozzle heater output on out1 and map it to sensor 1 M307 H1 B0 R1.553 C487.8 D10.35 S1.00 V0 ; disable bang-bang mode for heater and set PWM limit M143 H1 S250 M308 S2 P"110.temp0" Y"thermistor" T100000 B4138 ; configure sensor 2 as PT1000 on pin 121.temp0 M950 H2 C"110.out0" T2 ; create nozzle heater output on out1 and map it to sensor 2 M307 H2 B0 R1.553 C487.8 D10.35 S1.00 V0 ; disable bang-bang mode for heater and set PWM limit M143 H2 S250 ; set temperature limit for heater 1 to 250C ; set temperature limit for heater 1 to 250C ; Fans M950 F0 C"100.out1" Q500 ; create fan 0 on pin 100.out1 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off M563 P0 D0 H1 ; tool uses extruder 0, heater 1 M950 F1 C"100.out2" Q500 ; create fan 1 on pin 100.out2 and set its frequency M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on M563 P0 D0 H1 F1 ; tool uses extruder 0, heater 1 M950 F2 C"110.out1" Q500 ; create fan 2 on pin 101.out1 and set its frequency M106 P2 S1 H-1 ; set fan 2 value. Thermostatic control is turned off M563 P1 D1 H2 ; tool uses extruder 0, heater 2 M950 F3 C"110.out2" Q500 ; create fan 3 on pin 101.out2 and set its frequency M106 P3 S1 H2 T45 ; set fan 3 value. Thermostatic control is turned on M563 P1 D1 H2 F2 ; tool uses extruder 1, heater 2 ; Magnete M950 F8 C"2.out8" Q500 CMagnet0 ; create magnet 0 on pin out9 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off M950 F9 C"2.out7" Q500 CMagnet1 ; create magnet 0 on pin out9 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off M950 F10 C"20.out0" Q500 CMagnet2 ; create magnet 0 on pin out9 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off M950 F11 C"20.out1" Q500 CMagnet3 ; create magnet 0 on pin out9 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off ; Tools M563 P0 D0 H1 F0 ; define tool 0 G10 P0 X-9 Y-39 Z-40.56 ; set initial tool 0 active and standby temperatures to 0C G10 P0 R0 S0 M563 P1 D1 H2 F2 ; define tool 1 ; set initial tool 0 active and standby temperatures to 0C G10 P1 X-76.9 Y-78.7 Z-40.36 G10 P1 R0 S0 ; Miscellaneous M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
; tpre0.g ; called before tool 0 is selected ;brush cooler M106 P0 S0 ;Move in G1 X164.4 Y30 F5000 ;Collect G1 X164.4 Y-22 F4000 ;Close Coupler M98 P"/macros/Coupler - Lock" M116 P0 ;Magnet 0 prozent M106 P10 S0 M106 P11 S0 M116 H1 S3 G92 E1 G1 F800 E0.1 G92 E0 ;WARNING! WARNING! WARNING! WARNING! WARNING! WARxred enough BEFORE undocking the tool! G91 G1 Z10 F400 G90 ;Move Out G1 X164.4 Y30 F2000
; tfree1.g
; called when tool 1 is freed;brush cooler
M106 P2 S1;Move In
G53 G1 X442 Y30 F12000;Magnet 100 prozent
M106 P8 S1
M106 P9 S1;touch
G53 G1 X442 Y-22 F4000;Open Coupler
M98 P"/macros/Coupler - Unlock";fan off
M106 P2 S0;Move Out
G53 G1 X442 Y30 F7000;magnet 50 prozent
M106 P8 S0.5
M106 P9 S0.5 -
Try adding
T0
to the end of your config.g so that a tool is selected at startup. Or remember to manually select a tool in DWC before extruding. -
@phaedrux
T0 at the end is not the solution.
What do you mean with remember in dwc?Another option?
-
@index4d When exactly do you see the error? What is it you do just before the error appears? As @Phaedrux has alluded, you need to have a tool selected (i.e. active) before you can extrude with it - that's exactly what the message is telling you. So if you try to extrude with tool 0, you need to select tool 0 first. Likewise if you try to extrude with tool 1, you need to select tool 1 first.
-
Another option?
Yes: study your macros! The error message appears when the Duet wants to extrude (e.g. print) but misses a tool it can use for that.
So, follow the macros involved, look where a tool is selected (e.g.
T0
,T1
, …) or deselected (T-1
). You might want to look for invalid tool numbers, too, but that’s freestyle.It’s just a matter of T commands, and instead of having us to scan all your macros, you could do that as well.
One final note: initially, that is after executing the config.g, there is no tool selected at all. That’s why @Phaedrux advised you to add a
T0
- just to be sure. -
@infiniteloop
scam with all of my macros?
I tried to solve the problem months ago with no solution. At this thread somebody advised me to post my macros/t-files. I´m sorry
Where can I find a list for the actual rules for this forum? I don´t want to make anybody angry.I would have done it my myself like many other problems. Sorry for asking - after spending tousands of euros in duet boards.
-
the error appears directly after tpost has bin finished. But it´s no problem to extrude. I mean I can print just normally.
Problem is that the tool switch isn´t working with this IssueSorry for asking you. I just couldn´t find my mistake.
Thanks
R.G. -
@index4d said in Error: Attempting to extrude with no tool selected.:
I don´t want to make anybody angry.
You didn't
And there is no need to be sorry for asking. That's perfectly ok. The thing is: you posted two of your macros, and they do not tell the whole story. If the addition of a
T0
in config.g doesn't help either, we can only guess - that's why @deckingman asked for a hint where exactly you get the error.If I run into such a problem, I try to narrow down on it with two methods:
-
I scan the macros for occurrences of gCodes who can possibly lead to the error I get - in your case, that's just the
T…
commands. This gives me an idea of the control flow: where do I select a tool, where do I deselect all of them, or where do I switch to another one … -
I insert debug messages into the macros. This tells me which macros are called before the error occurs.
You can add simple debug messages with a line like this:
echo "this is my macro XY"
More elaborate messages are possible, but as I just read, your <real> problem is different: your tool switch doesn't work? Could you be a bit more specific on this? If extrusion works (as you just say), is it with the wrong tool? Please keep in mind that we are miles away from your printer, we can't imagine what really happens.
-
-
@infiniteloop
Ok, I´ll try to put in the echo etc. and write back asapI know sometimes it´s hard to solve Problems from another place.
I think I´ll install the tool switch by myself like loots of issues with the duet boards.
But pls make a suggestion if I should describe my plan for a tool switch.like that
Thanks
R.G. -
Edit
When I turn on the Printers, it says it´s changing tool. -
@index4d With multiple tools and tool change macros, you need to put T0 P0 in your config.g and not simply T0. The "P0" will suppress the tool change macros from running.
-
@index4d said in Error: Attempting to extrude with no tool selected.:
But pls make a suggestion if I should describe my plan for a tool switch.
… Which lets me ask whether your tool switching works, at least 'somehow'. I don't have the faintest idea what mechanism you use to alternate between T0 and T1. In my case, I use tfree to move a tool out of the way and tpost to activate it. You use tpre instead, but at least the
M116
gCodes should be in tpost. As far as I can see, you happily mixed up commands to release one tool with others to prepare the other one: it's better to keep them separate. Did you read and follow the - well written - guidelines?After you got your gCodes sorted into the proper macros, it's time to test them, one at a time. If you call such a macro from the command line with
M98 P"myFancyMacro.g"
, you receive messages on syntactical errors. In addition, you can focus on your coupling mechanism - I think you call this with
M98 P"/macros/Coupler - Lock"
Did you test this one?
BTW, there's yet another way to test a macro: comment-out all lines you don't need in the first place, e.g. some moves and all heater commands. By this, you can add functionality step by step, which makes it easy to spot problems.