SoftFever / OrcaSlicer

G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)
https://discord.gg/P4VE9UY9gJ
GNU Affero General Public License v3.0
6.68k stars 785 forks source link

Wrong extrusion width in gcode? #2793

Closed RomSunZ closed 10 months ago

RomSunZ commented 10 months ago

OrcaSlicer Version

1.8.0

OS version

Windows 10

Additional system information

No response

Printer

Custom build

How to reproduce

  1. Place a cube 25x25x5mm on build plate.
  2. Set perimeters to 1, infill to 0, top layers 0, bottom layers 0
  3. Set extrusion width for all parts to 0.45mm
  4. Slice a cube.

Actual results

Here is a sliced gcode that I got

;LAYER_CHANGE ;Z:1 ;HEIGHT:0.2 ;BEFORE_LAYER_CHANGE ;1 G92 E0 G10 ; retract EXCLUDE_OBJECT_END NAME=Куб_id_0_copy_0 ;AFTER_LAYER_CHANGE ;1 ;_SET_FAN_SPEED_CHANGING_LAYER ; printing object Куб id:0 copy 0 SET_VELOCITY_LIMIT ACCEL=20000 EXCLUDE_OBJECT_START NAME=Куб_id_0_copy_0 M73 P53 R0 G1 X212.236 Y212.236 Z1 F30000 G11 ; unretract SET_VELOCITY_LIMIT ACCEL=10000 G1 F2700 G1 X187.764 Y212.236 E1.02638 M73 P54 R0 G1 X187.764 Y187.764 E1.02638 M73 P55 R0 G1 X212.236 Y187.764 E1.02638 M73 P56 R0 G1 X212.236 Y200 E.51319 M73 P57 R0 G1 X212.236 Y212.196 E.51151 ; stop printing object Куб id:0 copy 0 ;LAYER_CHANGE

Now, if you calculate a travel you will get: Y212.236-Y187.764=24.472. Our cube length is 25mm, so the outer perimeter width is 25-24.472=0.528 instead of 0.45mm that I set up in slicer. And this width I get when measure the printed cube with a caliper

Expected results

I expect to get perimeter width that I set up in slicer, but instead of that I get much thicker perimeters. Is this a bug or feature?

Project file & Debug log uploads

cube.zip

Checklist of files to include

RomSunZ commented 10 months ago

One more thing. If I set up extrusion width to 100% for all parts (nozzle is 0.4mm) I get width 0.478mm for outer perimeter in gcode. It looks like the slicer automatically adds approx. 20% to the value I set up in slicer.

RomSunZ commented 10 months ago

It's my fault. I forgot about shrinkage compensation parameter in filament setting.