Hello, I found the following code on youtube. It is to allow for changing the filament color at a selected layer. It seems to work for the most part except the first thing it does is raise the Z height by 5 cm and when it comes back to print the Z height does not come back down to the original height. Also it doesn't currently pause to give time to change the filament but I will add a G4 with time to get that done. I don't see where it is raising Z height. I am using the Anet A8 factory file as is with just some basic mods like speed and layer height, ect. I did see in the firmware tab there is code in Macro 1 with a line saying G1 something that will raise the Z height by 5 cm. Is this getting called? I'm not sure about this Macro business yet. Any help would be appreciated.
{REPLACE "\n; layer 7, Z = " "; layer 7\nG28 Y0 X0\nM300\nM25\nM17\nG92 E0\nG28 Y0 X0\nG92 E0\nG1 F200 E25\nG92 E0\n; layer 7 "}