Add Command `M600` in Your G-Code File

Step 1, Find the layers in Snapmaker Luban.

After you generate G-code in Snapmaker Luban, you can see the number of layers in the 3D printing section.


Please find the layers in which you want to change the colour.

Step 2, Insert M600 in G-code file

You can find use Ctrl + F to find the layers, in which you want to switch the filament, and then insert M600 before the layers start.

For example, if you want to switch the filament in layer 11, you need to insert M600 when layer 10 ends.

6 Likes

This is a great start, but is there any way to add a terminal so we can enter the changes to G-Code in the window rather than opening a code editor and saving?

The big new thing is the ability to run the code M600!
In other slicing software the color change code can be added automatically.

So I’ve entered M600 properly. The printer stopped and allowed me to switch the filament which I did but how will it resume? It just stays in place once switching?

@nissguy @rojaljelly
Sorry that I was out of the office yesterday.

Our software team is planning to add the automatically switch layer feature. We have been aware that the change-filament feature means a lot to users.

Sorry for the inconvenience.

Happy International Labors’ Day.

Edwin

You can load the new filament and then resume the print via the touchscreen.

It is the same mechanism with the filament run-out feature.

Edwin

Works as advertised-I tried a couple of experiments with this over the weekend:

This was 2 colour changes manually added to the gcode, which is a little more obvious in profile (the ball at the top was printed separately and glued on):

2 Likes

Nice work. Thank you for sharing your print.

We plan to add this feature in Snapnamaker Luban so that you can insert the M600 in the software.

Edwin

1 Like

Hi,

Thanks to the Team for the new command, very useful.

I did modify a script for Ultimaker CURA.

Unzip the script file and save it in the folder “C:\Users\USER\AppData\Roaming\cura\4.9\scripts” (change the path to reflect the name of your “USER” on your computer).

Start or Restart CURA.
To use the script in CURA, go to “Extensions” then “Post Processing” then “Add a script”. Select the script “Filament Change SnapMaker 2” in the list.

You can now enter the layer number at which the change(s) will occur (at the beginning of the layer).
You can enter multiple layers changes with a coma (,). For example you can set “5,10,15,30” to have 4 filament changes.

This is just a cleaning of unnecessary parameters in the original Ultimaker script, but I will add the possibility to change temperature in the next release, to print Multimaterials as it was my first use case and done it manualy.

Edit : Rewrite it all now that i have the possibility to attach files.

Interested in using the M600 but having not used VS Code before how do you get the Layer list column on the left and the G-Code in the column on the right, I just get the G-Code when I open it.

The left column is the result of doing a search for “layer”
ctrl-F shortcut (on Windows & Linux at least)

You’ll get something similar in any text editor. It doesn’t have to be VSCode