Help! Retraction issue March 07, 2014 08:56AM |
Registered: 9 years ago Posts: 10 |
Re: Help! Retraction issue March 07, 2014 09:23AM |
Registered: 9 years ago Posts: 578 |
Re: Help! Retraction issue March 07, 2014 09:24AM |
Registered: 9 years ago Posts: 10 |
Re: Help! Retraction issue March 07, 2014 09:27AM |
Registered: 9 years ago Posts: 2,472 |
Quote
stoodle
Hi All
Just got my Ormerod built, trying to print the ormaxis (well, just the gauge for a start). I loaded the gauge.stl into Slic3r, (settings appear to be what others have posted on the forum). I've then exported the g code, loaded in Pronterface and set it going.
It all starts off nicely, builds 1.73 up, then decides to retract about 2 metres of filament!!
Any one have any ideas? Using dc42's firmware.
Cheers
Stu
Re: Help! Retraction issue March 07, 2014 09:32AM |
Registered: 9 years ago Posts: 2,472 |
Re: Help! Retraction issue March 07, 2014 09:42AM |
Registered: 9 years ago Posts: 10 |
Re: Help! Retraction issue March 07, 2014 10:53AM |
Registered: 9 years ago Posts: 578 |
Re: Help! Retraction issue March 07, 2014 11:16AM |
Registered: 9 years ago Posts: 14,646 |
Quote
rayhicks
ps - dc42: have you analysed what it would take to provide support for absolute extruder distances in the firmware? I think it would save a lot of grief for people starting out if RRP or you took a look at it
Re: Help! Retraction issue March 07, 2014 11:45AM |
Registered: 9 years ago Posts: 2,472 |
Quote
dc42
Quote
rayhicks
ps - dc42: have you analysed what it would take to provide support for absolute extruder distances in the firmware? I think it would save a lot of grief for people starting out if RRP or you took a look at it
I think the issue may be that the Duet uses floating point maths for all distances, including extruder distances, so there are only about 7 decimal digits of precision. slic3r outputs extruder distances to 5 decimal places. So with absolute E distances, rounding error would degrade print accuracy once you extrude about 100m of filament, which is not impossible for a large print. But I haven't looked at it in detail.
Re: Help! Retraction issue March 07, 2014 12:39PM |
Registered: 9 years ago Posts: 2,472 |
Re: Help! Retraction issue March 07, 2014 02:11PM |
Registered: 9 years ago Posts: 578 |
Re: Help! Retraction issue March 07, 2014 02:33PM |
Registered: 9 years ago Posts: 14,646 |
Re: Help! Retraction issue March 07, 2014 04:08PM |
Registered: 9 years ago Posts: 578 |
G0 X116.93 Y13.24 G0 X117.09 Y13.15 G1 F4500 X109.35 Y5.41 E19360.20614 G0 F3600 X109.26 Y5.58 G0 X111.67 Y7.14 G0 X111.79 Y6.99 G1 F4500 X115.49 Y10.70 E19360.48865 G1 F2400 E19355.48865 G0 F3600 X97.16 Y3.40 G1 F2400 E19360.48865 G92 E0 G1 F4500 X96.88 Y3.54 E0.01115 G1 X95.94 Y3.45 E0.04542 G1 X96.32 Y4.25 E0.09300 G0 F3600 X95.89 Y4.67 G1 F4500 X94.91 Y3.70 E0.16733 G0 F3600 X94.25 Y3.89 G1 F4500 X95.47 Y5.10 E0.25969 G0 F3600 X95.04 Y5.52 G1 F4500 X93.62 Y4.10 E0.36816
f(gb->Seen(gCodeLetters)) { float moveArg = gb->GetFValue()*distanceScale; if(drivesRelative || doingG92) moveBuffer = moveArg; else { float absE = moveArg; moveBuffer = absE - lastPos[i - AXES]; lastPos[i - AXES] = absE; }I'll see if I can fix it when I'm next at my machine - unless you'd care to dc42
Re: Help! Retraction issue March 07, 2014 05:23PM |
Registered: 9 years ago Posts: 14,646 |
Re: Help! Retraction issue March 07, 2014 06:03PM |
Registered: 9 years ago Posts: 578 |
Re: Help! Retraction issue March 07, 2014 06:36PM |
Registered: 9 years ago Posts: 2,472 |
Re: Help! Retraction issue March 07, 2014 06:49PM |
Registered: 9 years ago Posts: 578 |
Re: Help! Retraction issue March 09, 2014 09:07AM |
Registered: 9 years ago Posts: 48 |
Quote
dc42
I think the issue may be that the Duet uses floating point maths for all distances, including extruder distances, so there are only about 7 decimal digits of precision. slic3r outputs extruder distances to 5 decimal places. So with absolute E distances, rounding error would degrade print accuracy once you extrude about 100m of filament, which is not impossible for a large print. But I haven't looked at it in detail.
Re: Help! Retraction issue March 09, 2014 10:25AM |
Registered: 9 years ago Posts: 14,646 |
Quote
Flyskyhy
If it is a problem with accumulating rounding errors, then we should have a problem with relative distances and not with absolution distances. Right?
Re: Help! Retraction issue March 09, 2014 02:29PM |
Registered: 9 years ago Posts: 48 |
Aha, now I understand! I assumed it calculated the absolute amount of steps needed, and subtract the previous amount from that.Quote
dc42
No. If the Duet is given a relative extruder distance, it just has to multiply that distance by the extruder steps/mm to get the number of steps. If it is told to extrude to an absolute distance, it has to subtract the current extrusion amount from that distance (which is where the rounding error occurs), then multiply that difference by steps/mm to get steps.
Re: Help! Retraction issue March 09, 2014 04:03PM |
Registered: 12 years ago Posts: 1,611 |