Incorrect extrusion amount on slow and/or small axis moves
-
@ardenpm said in Incorrect extrusion amount on slow and/or small axis moves:
At least I think I am doing that right. This is how my B-axis is defined:
M584 B9 R0 S0
I think that's right. That's E6 on the DueX5?
-
I would still try changing to U just in case the R and S parameters are not actually doing what the documentation says they do.
Frederick
-
@fcwilt I can certainly test on U, though if it does the same thing with the X axis it seems unlikely that would make a difference. It's a bit of a pain to switch over given all of the config but will test.
@tfjield @deckingman Yes, correct, it's on a DuetX5 which is why the high motor number. Relative positioning is not really appropriate for my use case since I would then need to track the current position between tool changes due to differing tool heights. It's not an issue to keep track of with absolute since the tool change scripts are always moving the axis back to the same position and offsets are then used between tools.
Full configuration is attached below.
-
@ardenpm I've had a look at your config.g. I see from that, that this is a tool changer. Can you confirm that you are using Bowden tubes rather than direct drive? Can you do one quick test which is to remove the filament from the hot end and try your G1 Bnn Enn F480 without the hot end connected? My thinking is that 480mm/min being 8mm/sec is quite fast, especially if you use a 0.4mm nozzle and a standard hot end. So it might simply be that you are trying to push filament in faster than the hot end can melt and extrude it (or you may have a partial blockage). Either way, taking the hot end out of the equation will eliminate one possible cause.
-
@deckingman I will do some further experiments tomorrow when back at my printer. I have all direct drive Hemera extruders, thsoe under test do have 0.4mm nozzles however I haven't had any issues extruding that amount of filament at 480mm/m into free air when not including the other axis in the movement. I will try this again to double check though. Unfortunately since it's not a bowden I can't easily take the hotend out of the equation. I will say though that when the Hemera skips steps, it's usually fairly obvious. I could temporarily connect a bowden to that axis to be sure of course.
-
@ardenpm Thinking about this some more, if we say G1 B2 E50 F480, what we are actually saying is move the B axis by 2 mm at a feed rate of 480mm/minute while extruding 50mm of filament. Check my maths but a feed rate of 480mm/minute is 8mm /sec so a 2mm move will take 0.25 seconds. But then if we look at the extruder, because the extruder move and axis move are synchronised, we are saying move the extruder 50mm in 0.25 seconds which is a (crazy for a hot end) feed rate of 200 mm/sec or 12,000 mm/minute. But this will be capped to 3,600 mm/minute by your M203 setting for the extruders so the entire move will slow down by a factor of about 4. But 3,600mm/minute is 60mm/sec which is too fast I would suggest.
Essentially, if the feed rate applies to the axis and the extruder is in sync with the axis (in that it must start and stop it's move at the same time) then the feed rate for the extruder must vary proportionally with the ratio between the axis movement and the extruder movement - in this case 25 times higher.
Usually, extruder move lengths are significantly less than axis move lengths so the extruder usually moves much slower than the axis, but in this (unusual) case, the extruder move is greater than the carriage move by a factor of 25:1.
I guess what you would need to do is determine the maximum extruder feedrate for your hot end then divide this by 25 (or whatever the ratio of extruder move to axis move is) to determine the feedrate for the axis. Or you could change your M203 for the extruder to equate to the maximum feedrate but this might be unwise if you later changed to a bigger nozzle or higher melt rate capability extruder. Or you could just just use a slow feedrate
-
@ardenpm said in Incorrect extrusion amount on slow and/or small axis moves:
My guess is I am also fundamentally misunderstanding something about how G1 moves are made. I would have thought, if I am positioned at X0 Y0 and call
G1 X10 F1
the extruder would move at a maximum of 1mm/m so the move should take at least 10 minutes (likely longer due to acceleration etc). However the moves are much faster than that, it is of course very slow but doesn't take anywhere near minutes to complete).I found this question interesting and did a little searching. Turns out there is a minimum allowed feedrate for G1 (found in the docs for G1):
- For CNC users especially: RRF has a default minimum movement speed of 0.5mm/sec. In firmware 2.03 and later this can be changed using the I ('i') parameter of the M203 command.
And under M203 it's confirmed:
- Innn Minimum overall movement speed (firmware 2.03 and later), default 30mm/min
So your
G1 X10 F1
is essentiallyG1 X10 F30
and should take about 20 seconds. Does that sound right? -
@deckingman I'm following this thread with interest!
Everything you said makes sense to me. You said that because his extrusion rate is capped the entire move will slow down. Silly question, but do we know that that is actually what happens? Is it possible that the move just extrudes less material because it extrudes at 3,600 mm/min for 0.25 sec? But if that were the case, even at a feedrate of 250 mm/min it would still only extrude 28.8 mm of filament...
-
@tfjield No. The cap is on the feedrate so it will slow down. It will (should) still extrude 50 mm of filament but it'll take roughly 4 times as long to do so because the feedrate is capped at 3600 but to extrude 50mm in 0.25 seconds needs a feedrate of 12,000. Because the B axis has to be kept in sync with the extruder, then that too will be slowed down by the same proportion. At least, to that's how it should work.
For our purposes, we can think of the extruder as simply being another axis, just like XY and Z. So for a G1 Xn Yn En move, X,Y and E will all start to move at the same time, and they will all finish at the same time. But because the distances may be different, then the speed of each axis (and extruder) will have to be different.
It's not quite as simple as that because if you think about a G1 Xn Yn En Fn move which axis does the the feedrate (F) apply to? Is it X, Y or E? The answer is neither (or all 3 depending on your point of view). It is actually the feedrate in multi dimensional space with the number of dimensions being the number of axes. (At least, that's how I think of it). -
@deckingman Yes, that all makes sense, and that's how I would expect it to operate. I'm just trying to figure out why the OP isn't getting the full 50 mm of filament on his
G1 B42 E50 F480
move. Unless he's just grinding filament...@ardenpm Can you confirm that
G1 E50 F3600
gives you the full 50 mm of filament? -
@tfjield said in Incorrect extrusion amount on slow and/or small axis moves:
@deckingman Yes, that all makes sense, and that's how I would expect it to operate. I'm just trying to figure out why the OP isn't getting the full 50 mm of filament on his
G1 B42 E50 F480
move. Unless he's just grinding filament...I would think that must be the case. Some time back I did some melt rate testing and high speed printing using a 1.5mm diameter nozzle with a dual heat zone, 6 input hot end (fed with 6 extruders). https://www.youtube.com/watch?v=gc8AciHjf4I and achieved a volumetric flow rate of 72.3 mm^3/sec.
To put that into perspective, the print consumed 131.7 metre of filament in 73 minutes which gives an extruder feed rate of 1804 mm/minute. So there is no way that a single input, single heater hot end with 0.4mm nozzle could achieve double that at 3600 mm/min.
Edit. To put it another way, 1.75mm diameter filament has a cross sectional area of almost exactly 3mm^2. So if you could extrude that at 60m/sec (3600mm/minute) then you would be looking at a volumetric flow rate of around 180mm^3/sec or 10,800 mm^3 /minute which is about double what an E3D volcano with large nozzle and elevated temperatures could achieve.
-
@deckingman said in Incorrect extrusion amount on slow and/or small axis moves:
It's not quite as simple as that because if you think about a G1 Xn Yn En Fn move which axis does the the feedrate (F) apply to?
The max speeds for each axis will end up determining how long each axis needs to complete it's move.
Correct?
The axis needing the longest time would then impose a limit on all the others axes so they would complete in that time.
Correct?
One or more axes might be able to complete their move in that time and have a feedrate that would exceed the specified feedrate F.
Correct?
Then that feedrate F would impose its limit on those axes and the feedrate for all other axes would be adjusted so all moves completed at the same time.
Correct?
Frederick
-
@fcwilt Almost but not exactly. If you think about a 3 dimensional move from a point in space defined as Xa Ya Za and at the end of that move it ends up at a point in space defined as Xb Yb Zb. The we can draw a straight line between Xa Ya Za to Xb Yb Zb. The specified feed rate applies to that (diagonal) line. So unless there is a move purely in one direction with no other direction components, then the actual feed rate for all the individual axes will be lower than the specified feed rate (because the individual axis components would be shorter than the 3 dimensional, "diagonal" line).
Where it gets hard to comprehend is that the extruder forms a 4th dimension as do any other axes such as my CoreXYUVAB (7 axes plus 6 extruders =13 dimensions).
Edit - At least I think that's right - but I might be wrong about the extruder(s) - we'd need to ask DC.
-
@deckingman said in Incorrect extrusion amount on slow and/or small axis moves:
@fcwilt Almost but not exactly. If you think about a 3 dimensional move from a point in space defined as Xa Ya Za and at the end of that move it ends up at a point in space defined as Xb Yb Zb. The we can draw a straight line between Xa Ya Za to Xb Yb Zb. The specified feed rate applies to that (diagonal) line. So unless there is a move purely in one direction with no other direction components, then the actual feed rate for all the individual axes will be lower than the specified feed rate (because the individual axis components would be shorter than the 3 dimensional, "diagonal" line).
Understand about the diagonal and how the feed rate F applies to it.
But the extruder needs to complete it's "move" at the same time as the moves of all the other axes.
Correct?
So wouldn't it's feed rate limit possibly limit all the other axes?
Frederick
Frederick
-
@fcwilt said in Incorrect extrusion amount on slow and/or small axis moves:
Understand about the diagonal and how the feed rate F applies to it.
But the extruder needs to complete it's "move" at the same time as the moves of all the other axes.
Correct?
So wouldn't it's feed rate limit possibly limit all the other axes?
Yes - and I said as much a few posts further up. But what is the point you are trying to make?
In the example above, the OP is moving B by 2mm and the extruder by 50mm. The extruder speed is limited to 3600 mm/minute or 60mm/sec so (ignoring the acceleration and deceleration phases) 50mm at 60mm/sec will take 1.2 seconds. Yet we know that the specified feed rate is 480mm/minute or 8mm/sec. If we apply that 8mm/sec feedrate to the B axis then a 2mm move should take 0.25 seconds. But the move has to take 1.2 seconds in order to extrude 50mm at the limit of 3600 mm/minute or 60mm/sec (assuming the hot end is capable of achieving that sort of melt rate which I've have demonstrated is so improbable as to be unbelievable). So the B axis will have to be slowed down too, i.e the entire move will take longer than 0.25 seconds (about 1.2 seconds) which is what I said a few posts further up.
But none of that detracts from the fact that it is highly unlikely that a single input, single heat zone, hot end with a 0.4mm nozzle could extrude 10,800 mm^3/sec which is what it would have to do if the extruder feedrate was 3600 mm/minute. Hence the OP is getting under extrusion.
-
@deckingman said in Incorrect extrusion amount on slow and/or small axis moves:
Yes - and I said as much a few posts further up. But what is the point you are trying to make?
Just trying to understand what is going on and how it all works.
Thanks.
Frederick
-
I'm glad I'm not going crazy and that what goes on behind a G1 is actually more complex that it first seems, enough to provoke some discussion.
@tfjield I believe the G1 feedrate cap only applies to CNC mode doesn't it, i.e., if you have issued an
M453
to switch to CNC mode? That should not affect the Duet if in regular 3D printing mode.@deckingman to answer your question
G1 E50 F3600
will absolutely grind filament. However extruder feedrate maximums are often set much higher than the maximum printable feedrate so that a higher rate can be used during retraction, which isn't subject to the same pushing plastic limitations. I don't recall if there is a seperate retraction limit that can be set somewhere.8mm/s is doable on a Hemera with a 0.4mm nozzle, though probably not across a whole print, for priming into air it does fine though, much higher will have issues in my experience.
My (possibly incorrect) assumption was that in a G1 move, the movements of the axes would need to be slowed down to accommodate the slowest of any axis (including the extruder) and not just the movement axes. If this is not the case then it would explain why the short travel move forces the extruder to go faster, though I do not believe it is reaching 3600mm/m as that would make a huge honking noise and mess as it grinds away.
I think it comes down to the fundamental question, what is the expected behaviour of
G1
when the extruder is commanded to move a distance that is greater than the movement axes with such a feedrate that the axes move would complete prior to the extruder move if not slowed down.To my thinking this issue could come up when using a very wide extrusion width with a large nozzle as well, though I haven't looked at that. I guess in those cases you're probably printing more slowly (in movement speed, of course volumetric flow would be higher) anyway.
More testing to come though. I'll switch to pure tests in air over the bed and the X-axis just to remove some more variables.
Of course, in the end, for my use case I can just slow down, priming at 250mm/m instead of 480mm/m is going to make no real difference, however I do want to get to the bottom of what is happening just for my own understanding.
-
@ardenpm The way I read it, it always applies, but it's especially important for CNC mode. But that's just my interpretation. I'll run a test when I get a chance.
-
Good point about retractions.
however I do want to get to the bottom of what is happening just for my own understanding.
I thought I'd explained it. A G1 En Fn, there is no axis movement involved so the feed rate will apply only to the extruder. However, a G1 (Axis)n En Fn move will apply the feed rate to the axis. Because your extruder move length is 25 times greater than the axis move length, and because the extruder move must start and end at the same time as the axis move, then the feed rate for the extruder must necessarily be 25 times higher than that of the axis.
For info, I too use a purge and wipe system on my 6 input hot end (but without moving an axis concurrently). I purge 100mm at a feed rate of 300 (5mm/sec). In my case that's in the format G1 E100:0:0:0:0:0 F300. So with your 25:1 ratio of extruder to axis move length, if I used G1 B4 E100:0:0:0:0:0 I'd need to use a feed rate of 12 which would give me 300 for the extruder.
-
@deckingman Yes I understand your description but my understanding was that is what you were assuming what is happening rather than what is intended to happen. To me it is surprising that the extruder limits are overridden by the axis limits, to me that is a fundamental property of G1 that should be describe somewhere (if it isn't already).
Testing just now I think what I am definitely seeing is the extruder racing up to its limits in order to try and match the movement axes, exactly as @deckingman describes. To me this seems counterintuitive and I would have expected the slowest axis to dictate the movement regardless of whether it is the extruder.
On review I am also seeing some skipping at 480mm/m which I didn't notice before so I'll probably cap that at 300mm/m, though even at that speed the axes are two far out of sync to stop the extruder racing away.
One option might be to reduce the maximum speed on the B axis temporarily in my prime Gcode to prevent this, I guess I can work out how much time the extruder needs to properly extrude the amount of filament I want then work out the fastest I can allow that axis to move while covering the distance needed.
@tfjield looks like you are correct, I just dropped minimum down with
M203 I1
and did a move of 1mm and that now takes around a minute as expected instead of 2 seconds. So ifG1
was working how I originally though (which it seems it is not) then it would have only been able to slow the axis to 30mm/m at the most, which is still pretty slow but no where near slow enough to extrude 50mm of filament.