Noob question: Is there a g-code / command for repetier host / pronterface that

Noob question:

Is there a g-code / command for repetier host / pronterface that allows you to change the speed / extrusion setting mid-way from a print.

E.g. I want the first three layers to print at a 120% speed and 80% extrusion (my 1mm nozzle tends to overextruding) and then print the rest at 100% extrusion and maybe even faster speed.

This could also be used to reduce the speed at the top of the print where the model thins out.

I’m on my phone ATM, but there is a whole list of gcodes on http://reprap.org that I use all the time. I just search for whatever I need to do. I think it’s just http://reprap.org/gcode.

I did search there, but couldn’t find anything that changed the multipliers (must be searching for the wrong thing).

Searched again - should have searched for override instead of multiplier - looks like M220 and M221 are going to be my new friends.

Take a look at M220 and M221 (careful, there are two definitions for that on http://reprap.org/wiki/gcode since BFB/RapMan redefines those for something completely unrelated - thanks to whoever decided on that…)

Warning - quick hack method!

I have had success with combining multiple printer settings in one print, with different settings beginning at different layers, by exporting the full g-code for each of the different settings.

After the full g-code files are exported, look for the layer changes in the g-code and manually splice together a new file made up of the combination of different layers from each file.

I didn’t do this for speed, but I did find that the newly combined g-code file worked just fine.

It isn’t too hard to locate each layer change. Look for lines starting with G1 Z…, like this:

G1 Z0.3 F4500

That’s the start of the first layer.

For 0.3 mm layers, the next layer transition will be something like:

G1 Z0.6 F4500

For a couple of settings changes it shouldn’t take more than 5 minutes to build the new file.

If you decide to give this quick hack a try, please let us know how you went!