supermerill / SuperSlicer

G-code generator for 3D printers (Prusa, Voron, Creality, etc.)
4.03k stars 516 forks source link

M83 not being generated #4296

Closed james56b closed 2 weeks ago

james56b commented 3 weeks ago

What happened?

When generating a single layer square and with the 'Use Relative E Distances' checked, the slicer does not generate the M83 command in the GCode leading to no extrusion. When manually adding the M83 to the 'Start GCode' field it works without issue. Toggling the 'Use Relative E distances' off or off/on does not change the situation.

Without M83 in GCode

With Manual M83 in Start Code

Project file & How to reproduce

M83 not generated.3mf.zip

Version

2.5.59.10

Operating system

Latest windows 11 & MacOS both

Printer model

Ratrig VC3 - RatOS RC 2.1

supermerill commented 3 weeks ago

as you have only custom start g-code enabled, M83 isn't written in the gocde file, as these may be written in a firmware macro, or somewhere else. In your custom start g-code, you may want to add:

G21 ; set units to millimeters
G90 ; use absolute coordinates
{if use_relative_e_distances}M83{else}M82{endif}
G92 E0 ; reset extrusion distance
james56b commented 2 weeks ago

Thanks Merill. That was indeed a solution. With some help an alternative was also to set the 'Gcode Flavor' to 'Klipper'. This generated the G21,G90, and M83 as well.

Pertinal commented 2 weeks ago

Thanks Merill. That was indeed a solution. With some help an alternative was also to set the 'Gcode Flavor' to 'Klipper'. This generated the G21,G90, and M83 as well.

Small correction - it did not. Have had to manually add the m83, g21, and g90 to the start gcode for ratrig printers.