Some gcode help?

Here you have your T0 commands.

And at the end is also a T1:

M107 T0
M104 S0
M104 S0 T1

You may check your slicer start and end scripts.

2 Likes

I really appreciate this. with my start/stop scripts at the first post I made, what do I change. I would imagine that my 1 extruder would be extruder0 (T0).

Does that mean I remove the T1 references? The error that I get (posted above also) says T0 is the problem so I am still a bit confused.

You just remove the T0s and the T1.
These parameters only come to use when your firmware is setup for more than one extruder (of any kind).
If there is only one extruder the Tx parameter can cause issues.

1 Like

Do I take the T0 off of this:

M109 S{material_print_temperature_layer_0} T0

Yes, remove "all" T0 and T1 parameters from your start and end gcode.

When I manually enter a T0 or a T1 command (not as a parameter, but just the command), I get an error message that references T1.

When I manually enter M104 S0 T1 I get the same error message but it references T0.

I believe this is the source of the confusion. Note that M107 doesn't even have a T parameter (the Marlin documentation is a good site to bookmark).

1 Like

Ok folks. I think I got it. Can someone confirm if this looks correct?:

START GCODE

G21
G90
M82
M107 
M190 S{material_bed_temperature_layer_0}
M109 S{material_print_temperature_layer_0}
G28
G92 E0
G0 E0 F200
G92 E0

M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X-40 Y-110 Z0.28 F5000.0 ;Move to start position
G1 X40 Y-110 Z0.28 F1500.0 E15 ;Draw the first line
G1 X40 Y-109 Z0.28 F5000.0 ;Move to side a little
G1 X-40 Y-109 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up

STOP GCODE:

M107
M104 S0
M104 S0
M140 S0
G92 E0
G91
G1 E0 F300
G1 Z+0.5 E-1 X-20 Y-20 F9000
G28 X0 Y0
M84 ;steppers off
G90 ;absolute positioning```
1 Like

What you have should work but I would remove the extra M104 S0 from the end code and I would change the M190 S{material_bed_temperature_layer_0} to M140 S{material_bed_temperature_layer_0} and add M190 S{material_bed_temperature_layer_0} after the M109 S{material_print_temperature_layer_0}. This allows the bed and the nozzle to both heat at the same time so it will save you some time.

Also, remove the first G28, G92 E0, G0 E0 F200, and G92 E0 as they are repeated later.

As I mentioned before, https://marlinfw.org/meta/gcode/ is an excellent resource. Go there and lookup each and every command in your start and end gcode so that you can begin to understand what each command does. The more you understand, the better you will become at 3D printing.

Hey I thank you for the help. I am familiar with the site for commands. I also have the "marlin Gcode Doc" plug-in installed.

I am for sure a gcode novice and I'm just nervous I'm gonna crash the machine. Or something else. the commands you said to remove were an oversight on my part as I just recently added the purge line code and didnt see the dups.

One more time, can I get an amen on this start stop?

START:

G21
G90
M82
M107 
M140 S{material_bed_temperature_layer_0}
M109 S{material_print_temperature_layer_0}
M190 S{material_bed_temperature_layer_0}

M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X-40 Y-110 Z0.28 F5000.0 ;Move to start position
G1 X40 Y-110 Z0.28 F1500.0 E15 ;Draw the first line
G1 X40 Y-109 Z0.28 F5000.0 ;Move to side a little
G1 X-40 Y-109 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up

STOP:

M107
M104 S0
M140 S0
G92 E0
G91
G1 E0 F300
G1 Z+0.5 E-1 X-20 Y-20 F9000
G28 X0 Y0
M84 ;steppers off
G90 ;absolute positioning

They look good to me.

1 Like

Thanks for all the help!

You guys have really helped my whole work flow with this thread. I just have one more issue I cant seem to figure out.

Post print ooze.
The PLA oozes out a bit at the end of a print and/or as it heats up for the next print.
I have a purge line thanks to yall and that is working, but this lil blob sometimes doesnt come off even with the purge line and then gets stuck during the 1st layer. super annoying.

I have done what I think is some more post print retraction. is it not enough? maybe I need more pre-print?
Anyway here is my start/stop g code ..one more time :slight_smile: hopefully someone can make some sense of this for me.

START:

G21
G90
M82
M107
M140 S{material_bed_temperature_layer_0}
M109 S{material_print_temperature_layer_0}
M190 S{material_bed_temperature_layer_0}

M220 S100 ;Reset Feedrate
M221 S100 ;Reset Flowrate
G28 ;Home
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up
G1 X-40 Y-110 Z0.28 F5000.0 ;Move to start position
G1 X40 Y-110 Z0.28 F1500.0 E15 ;Draw the first line
G1 X40 Y-109 Z0.28 F5000.0 ;Move to side a little
G1 X-40 Y-109 Z0.28 F1500.0 E30 ;Draw the second line
G92 E0 ;Reset Extruder
G1 Z2.0 F3000 ;Move Z Axis up

STOP

M107
M104 S0
M140 S0
G92 E0
G91
G1 E-1 F300 ;remove some pressure from the nozzle
G1 Z+0.5 E-5.5 X-20 Y-20 F9000 ;Pull back even more on the nizzle (-5mm) to stop oozing on new print
G28 X0 Y0
M84 ;steppers off
G90 ;absolute positioning

How much is that bit?
Usually this happens to almost every FDM printer due to gravity.

Your stop gcode looks reasonable. It should leave the filament retracted a bit. Since your start gcode purges 45mm of filament, you could retract a bit more in your stop gcode. Where does G28 X0 Y0 leave the nozzle? I don't have any experience with a delta printer.

Instead of a purge line, I always print a skirt. I increase the line count to 2 or 3, increase the distance to maybe 5, and increase the minimum length. This gets the nozzle moving in both x and y which usually knocks off any ooze.

I have some old business cards (thick card stock) and I can sometimes knock the ooze off of the nozzle while it is getting ready to print.

You might try lowering your material temperatures a bit. This can help with oozing. Of course its a tradeoff with getting a good print so you can't change it too much.