Correct 'Change filament g-code (M600)' to start at new color location
Agent answer
No agent has taken this issue yet.
Issue text on GitHub
Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.3.1
Operating System (OS)
Windows
OS Version
Windows 11
Additional system information
Processor AMD Ryzen 5 5600U with Radeon Graphics (2.30 GHz)
Installed RAM 16.0 GB (13.9 GB usable)
System type 64-bit operating system, x64-based processor
Printer
Creality 10S 300mm x 300mm x 400mm
How to reproduce
- Created a multi-body model in Fusion 360
- Export all bodies in '3MF' file format
- Import the 3MF file as a new project/plate in Orca
- Set each body to have a different filament (color)
- Add 'M600 B5 E-0.1 L20 R210 T0 U50 X150.00 Y20.00 Z50.00' to 'Change filament G-code section
- Slice plate
- Export gcode
- In this case, I am using Simplify-3d v4.1.2, import G-code file to preview and print
Actual results
When color/filament change occurs,
M600 B5 E-0.1 L20 R210 T0 U50 X150.00 Y20.00 Z50.00
after new color is in the extruder, the print-head moves to the previous position, touches the model, moves up and advances to the start location of the 'new color'. This occurs on each filament/color change. When this occurs, a small 'zit' of the new color is left on the previous color.
Expected results
Expected/desired is to have the insertion of the
'Printer' -> 'Machine G-code' -> 'Change filament g-code'
section/code be after the new color/filament coordinates, and begin printing. This allows for a cleaner print.
Project file & Debug log uploads
Please find the Orca project file, 'CatWithAHat.3mf', and the Fusion 360 multi-body file 'F360_CatWithAHat.3mf'
Checklist of files to include
- [ ] Log file
- [x] Project file
Anything else?
I believe this is a bug. The 'zit' of the previous color (especially darker new color on previous light color) is annoying and difficult to remove. I have to edit the gcode in a text editor, search for M600 and move the color change code to the first coordinate of the new color.
Current (bug code):
G1 X187.104 Y69.78 E.03201
;Color Change GCode START
M600 B5 E-0.1 L20 R205 T0 U50 X150.00 Y20.00 Z50.00
;Color Change GCode END
; stop printing object Assembly id:15 copy 0
; filament end gcode
G1 E-1.2 F960
G1 Z5.24 F3300
G1 X162.022 Y59.55
G1 Z5.24
G1 Z4.12
G1 E1.2 F960
Expected/desired gcode:
;Color Change GCode START
G1 X187.104 Y69.78 E.03201
; stop printing object Assembly id:15 copy 0
; filament end gcode
G1 E-1.2 F960
G1 Z5.24 F3300
G1 X162.022 Y59.55
G1 Z5.24
G1 Z4.12
G1 E1.2 F960
M600 B5 E-0.1 L20 R205 T0 U50 X150.00 Y20.00 Z50.00
;Color Change GCode END
- Author
- truegret
- Comments
- 1
- Created
- 2025-11-16
Log
- Collected from GitHubpanel · 3 h ago