Pressure advance causing underextrusion/motor madness
-
@bberger Hmm. So no retraction on layer change? Do you notice any difference in print speed with low extruder jerk and PA? This is something that other users have reported.
Maybe, as you indicated, there is also some interaction with dynamic acceleration - I don't use it so I have no experience. It would be interesting to see a comparison of PA with and without dynamic acceleration. Or are the blobs themselves a nasty bi-product of using dynamic acceleration?
-
Yeah, sure. Print time probably is +50% with XY300 and E600 jerk.
Will test more on the weekend. I'm a bit too busy with work right now and the baby is asleep, so no more printing before the weekend
Will experiment a bit more with DA when the time comes. Really want to keep it as it helps with print speed a lot. Without I have to go down to about 1k acceleration or even lower to avoid ringing/ghosting..
-
@bberger I meant just extruder jerk. But that made me go back and re-read your original post because I missed the fact that your were changing XY jerk as well as extruder jerk. I also overlooked that you are using 9k acceleration. With so many variables being changed at once, it's hard to make an informed judgement on what might be the cause of your problems.
This statement stands out though
"From what I understand is: shouldn't PA do less instead of more when cornering speed increases? I would understand it at high accel and low jerk, but 9k acc/3k jerk on XY at 100mms shouldn't end up in retracting more than extruding with PA on - should it?"
For any given move, the amount of extrusion should always be the same with or without PA. What PA does is advance the extruder at the start of a move (accelerate it faster) but retard the extruder by an equivalent amount at the end of a move (decelerate it faster).
Also this statement caught my eye
"Is it somehow possible to keep PA from retracting at all or at least set a limit?"
This is related to the above. That is to say, if the acceleration is high at the beginning of a move and/or the PA value is high, then the amount of retardation necessary at the end of a move to maintain the required quantity of extruded filament for that move, may be such that the extruder has to run backwards. By way of illustration, assume that a move consists of 1mm of extruded filament during both the acceleration and deceleration phases and 10 mm of filament during the steady state phase, so 12mm in total. If the amount of pressure compensation is such that the extruder advance leads to 2.5mm of filament being extruded during the acceleration phase, the steady state phase remains unchanged at 10mm giving a total of 12.5mm so the amount of retardation needed at the end of the move during the deceleration phase has to be minus 0.5mm to bring the overall extrusion amount back to the 12mm.
So if you limit the amount or retardation, then you would end up with over extrusion. Unless you also limit the advance by the same amount (i.e. use a lower value PA).
-
Thank you for revisiting my post. I think we are on the same page here. I think I understand how PA should work (exactly as you described).
My special issue that I was relating to was that scenario:
50mm wall. What happened was: it ended up extruding and retracting so much that it basically tried to extrude 25mm and then directly rectracted the same 25mm so on and so forth. In the end nothing came out of the nozzle anymore and all that was happening was constant extruding/retracting.
That happened (repeatable and verifyable at the time) with:
- 9k XY accel with DA on around 48Hz (don't know about DA off yet)
- 3k XY jerk
- 3K E-Jerk
- at about 0.30 PA (+/- 0.05) on a 25cm bowden (flying extruder)
- 120 mms print speed
- 2 walls, no retraction on layer change and also in vase mode on another object (the one that's typically used for dynamic acc. tuning)
When I turned down the E-Jerk to 300 and left all the other variables as-is - the results is that the print of course slowed down - but the PA results were as expected (gradually becoming better before becoming worse over 0.35PA).
My take was: why would PA try to compensate more if there should actually be less pressure buildup. (Faster cornering speed should equal less pressure buildup as it has less speed difference and less acceleration and deceleration stretches, right?). Looking at the status page it's still consistently reaching 120mms on the 50mm walls, even with 300XY jerk and/or 300 E-Jerk. Lowering E-Jerk to about 2000 actually was enough to not have that "constantly extruding and retracting the same amount", but the quality results still were questionable at best as and described above (not really getting better until it suddenly massively underextrudes).
As I said: I will try to recreate what I mentioned above this weekend.
PS: on the point of limiting the rectraction on PA: I could live with small blobs in most cases as they can be postprocessed. But underextrusion and missing/open walls is a lot more problematic.
I never had such phenomenons with Linear Advance on Marlin (I don't think LA 1.5 ever retracts, but only slows down the extruder to minimize pressure, however it's been quite some time since I last used Marlin and I also never want to go back). LA was just more easy to tune with (in my case) excellent results. With PA I've been struggling now for the better of a month and I just can't find the solution
PPS: sorry about some missing words and hard to understand English in the paragraphs above, typing on the phone is a pain..
-
@bberger That is indeed very strange behaviour. Especially this:
"...............it basically tried to extrude 25mm and then directly rectracted the same 25mm so on and so forth. In the end nothing came out of the nozzle anymore and all that was happening was constant extruding/retracting."
I've never witnessed that sort of behaviour but then again, because of my exceedingly high moving mass, I don't use anything like 9K acceleration. Unfortunately I don't have any more ideas (I'm just an end user like you). If it is repeatable as you say it is, then hopefully DC42 or one of the other Duet team members may come up with something. The only thing I could suggest is that you try without dynamic acceleration. If it makes a difference, then at least we might be able to narrow the problem down, which will help the firmware developers come up with a fix if that is what is required.
-
@deckingman It's a clone, but the extruder works fine by hand and I've checked the grub screws are good.
I found my pressure advance value by doing this ringing print https://www.thingiverse.com/thing:4169896 and found that somewhere between 0.3 and 0.4 was my good value. You can see that the ringing is reduced on the Xs, but at 0.4 and 0.5 the corners start to go inconsistent.
So you're suggesting that setting extruder jerk low is just mitigating the problem and isn't actually solving it, as extruder jerk shouldn't be the limiting factor?
At extruder jerk of 300 I still can't get it to be consistent, it's only at 100 that I get better results, but that is extremely slow.
@bberger said in Pressure advance causing underextrusion/motor madness:
50mm wall. What happened was: it ended up extruding and retracting so much that it basically tried to extrude 25mm and then directly rectracted the same 25mm so on and so forth. In the end nothing came out of the nozzle anymore and all that was happening was constant extruding/retracting.
This is similar to the issue I'm ending up with. At a point where it is underextruding, it's as if it's ended up doing more retractions than it has unretractions, as the filament is no longer at the end of the nozzle. It then feels like it "catches up" and produces a blob. I have had issues with this in the past even with PA off, but I thought I'd fixed that. PA seems to make it far worse.
At the point where it produces a big blob, I can hear the "pop" sound you get when the filament first comes out of the nozzle.I'll try using a Titan extruder instead and see if that makes any difference.
(I'm also running with DAA off)
-
@bberger I've had a thought. It's just a theory. Could it be with your high accelerations that you are hitting the step pulse frequency limit with the extruders (they have high steps per mm compared to axes)? Maybe what happens is that with PA enabled, during the acceleration phase the extruder speeds up to the point where it misses steps so you don't get the extra extrusion at the start of a move, but the steady state and deceleration phases are below the step pulse frequency limit so you do get the retardation?
It's just a wild guess. But you could test it by using your high acceleration and jerk, then sending M122 and looking at the hiccup count. If it's high then reduce the acceleration or jerk, run it again then see if the hiccup count comes down.
-
@Dezdoghound said in Pressure advance causing underextrusion/motor madness:
So you're suggesting that setting extruder jerk low is just mitigating the problem and isn't actually solving it, as extruder jerk shouldn't be the limiting factor?
That was my original hypothesis but having read @bbergers' post, now I'm not so sure.
-
@deckingman I've just done a run of a print where it's been doing the blobbing, and didn't get any hiccups recorded
Just a shot in the dark really, what setting do you have the thumbscrew on for your BMGs with PLA? The instructions said to tighten all the way and undo 1.5 turns, but that seems far too tight?
-
@Dezdoghound said in Pressure advance causing underextrusion/motor madness:
Just a shot in the dark really, what setting do you have the thumbscrew on for your BMGs with PLA? The instructions said to tighten all the way and undo 1.5 turns, but that seems far too tight?
It doesn't seem to make much difference. Unlike say an E3D Titan where too much tension combined with multiple retractions will grind through the filament, the distance between the two hobbed bolts on a BMG is pretty much fixed. So tension is far less important.
I did an extreme retraction torture test back in 2018 https://somei3deas.wordpress.com/2018/05/11/bondtech-bmg-vs-e3d-titan-extreme-retraction-torture-test/
The Titan completely ground though the filament after about 7,000 cycles but the BMGs showed hardly any sign of filament "grinding" after 26,000 cycles. -
@deckingman said in Pressure advance causing underextrusion/motor madness:
@bberger I've had a thought. It's just a theory. Could it be with your high accelerations that you are hitting the step pulse frequency limit with the extruders (they have high steps per mm compared to axes)? Maybe what happens is that with PA enabled, during the acceleration phase the extruder speeds up to the point where it misses steps so you don't get the extra extrusion at the start of a move, but the steady state and deceleration phases are below the step pulse frequency limit so you do get the retardation?
It's just a wild guess. But you could test it by using your high acceleration and jerk, then sending M122 and looking at the hiccup count. If it's high then reduce the acceleration or jerk, run it again then see if the hiccup count comes down.
It's an interesting idea, but I don't think at that shape and speeds it's near the limit of what the Duet can handle.
Afaik it should be able to handle up to 150kHz, so assuming the following:
160 steps / mm on XYZ @ say an average of 120mm/s over all 3 axes (we're pretty much in the middle of the printbed, so not too much movement at all): 160 * 120 * 3 = 57.3kHz
415 esteps/mm at it's absolute limit (100mms): 41.5kHzEven in that absolute worst case scenario I'm not even above 100kHz, so I'd say it's unlikely. I'm also not seeing any hiccups in movement that would support that.
That being said: I'll keep an eye on it and report back.
-
Sorry, can't edit the formatting of the post above - Akismet is acting up..
-
@bberger Yes - and no. It was the extruders hitting the step pulse frequency limit that I was wondering about. The steps per mm are much higher than axes, For "normal" printing it's never a problem because extrusion amounts are typically single digit percentages of axes travel, so extruders run much slower. BUT, when you do extruder only moves such as retractions, they do move a lot faster. So I was wondering if the extruder advance that PA uses pushes the extruder speed up to the limit. If you observe what the extruders do with PA enabled and fairly high value, they make some pretty alarming moves.
With a mixing hot end, it is necessary to run high extruder micro-stepping to get the desired resolution, because one or more extruders might only be single digit percentages of the entire amount of material to be extruded. With earlier firmwares, I could run micro stepping at 128x and still use 60mm/sec retraction, but this is much less now because the step pulse frequency has been reduced significantly (although nobody will tell me what it actually is now).
But doing the maths, my wild theory is probably wrong. With 415 steps per mm and assuming the step pulse frequency limit is as low as 100k, then extruders would still be able to hit 241 mm/sec and I doubt that PA is causing them to get anywhere near that.
But it might be interesting just for the hell of it, to change the micro-stepping for the extruder to (say) 8X and see what happens?
-
IMO your E jerk is way too high.
I run a bowden extruder, sometimes with PA as high as 1.4. My E jerk has to be down in the area of 4 (mm/s), but I can run the acceleration high at 4000 (mm/s/s). This is a custom design, geared stepper using Bondtech gears.
-
@CCS86 doesn't a jerk setting that low really slow down your print? I see lots of other people using 3000 jerk on the same extruder is the thing too.
-
@Dezdoghound there is a balance to be found between stepper jerk and real-world capability. IE stepper motors attached to extruders can't accurately "jerk" as fast as some people wish them to. So, if speed is your main concern, and slightly inaccurate movement is acceptable to you, go for higher jerk. The inaccuracy of the movement is quite low -- it's still gonna be pretty damn close to what you asked for, perhaps just a bit noisy and sloppy.
If accuracy is your main concern, then slow the jerk down to the point that you are guaranteed accurate movement every time, with little noise.
-
@Dezdoghound said in Pressure advance causing underextrusion/motor madness:
@CCS86 doesn't a jerk setting that low really slow down your print? I see lots of other people using 3000 jerk on the same extruder is the thing too.
If you are specifying jerk with M566, it is in mm/min. So, 3000 mm/min = 50 mm/s; which is still very high. It is probably higher than the max speed for E, so that effectively disables any attempt for planned acceleration.
I don't see how that is a benefit at any time. It just increases the chances of skipping E steps and chewing up filament.
Once you turn on PA, the demands on E change dramatically. High jerk is even less appropriate.
-
@CCS86 exactly this. To make matters worse, with the standard jerk policy (and perhaps even jerk policy 1, I'm not sure) the E axis almost never uses the jerk value. Jerk normally ONLY comes into play with pressure advance. So, having an excessively high E jerk value can be hidden until PA is enabled.
-
I still struggle to find a use case other than pressure advance, when extruder jerk actually gets applied - unless it's set really low so that it is the limiting factor in any G1 XY E move. Extruders generally run a lot slower than axes during print moves, so it's likely that the lower of either X or Y jerk would determine the speed at direction change - unless extruder jerk is really low and the combined XY E move has to slow down to the extruder jerk speed, rather the X or Y jerk speed. That's mainly why I set extruder jerk "silly high" - so that it doesn't impact on carriage speed. One could say that extruder jerk gets applied to retraction moves. BUT, in RRF (at least until very recently) jerk is/was never applied to the start of a move from rest - only on direction change. I seem to recall having this discussion with DC and I think (but could be wrong) that jerk does not get applied to retraction moves. If all of that is true (and it may not be), then extruder jerk is never used unless it is so low that it affects XY E direction changes. BUT, something strange happens with the interaction between extruder jerk and PA which cannot be explained by the "normal rules" for instantaneous speed threshold (jerk), because even a moderately low value will slow down the overall print speed more than can be explained by the application of extruder jerk alone.
-
@bot Yes, I think we are in agreement on this.